Pinecone is a vector database with broad functionality.This notebook shows how to use functionality related to the
Pinecone
vector database.
Setup
To use thePineconeVectorStore
you first need to install the partner package, as well as the other packages used throughout this notebook.
langchain_community.vectorstores
implementation of Pinecone, you may need to remove your pinecone-client
v2 dependency before installing langchain-pinecone
, which relies on pinecone-client
v6.
Credentials
Create a new Pinecone account, or sign into your existing one, and create an API key to use in this notebook.Initialization
Before initializing our vector store, let’s connect to a Pinecone index. If one namedindex_name
doesn’t exist, it will be created.
Manage vector store
Once you have created your vector store, we can interact with it by adding and deleting different items.Add items to vector store
We can add items to our vector store by using theadd_documents
function.