Pinecone is a vector database with broad functionality.This notebook shows how to use functionality related to the
Pinecone
vector database.
PineconeSparseVectorStore
you first need to install the partner package, as well as the other packages used throughout this notebook.
pinecone-sparse-english-v0
, we initialize it like so:
add_documents
function.
delete
method, providing it with a list of document IDs to delete.
vector_store
directly via the similarity_search
method:
source=="social"
:
"website"
source. In our latter, filtered, query — this is no longer the case.
(document, score)
tuples. Where the document
is a LangChain Document
object containing our text content and metadata.
VectorStoreRetriever
. To create that, we use the as_retriever
method:
invoke
method: