Skip to main content
Pinecone’s inference API can be accessed via PineconeEmbeddings. Providing text embeddings via the Pinecone service. We start by installing prerequisite libraries:
Next, we sign up / log in to Pinecone to get our API key:
Check the document for available models. Now we initialize our embedding model like so:
From here we can create embeddings either sync or async, let’s start with sync! We embed a single text as a query embedding (ie what we search with in RAG) using embed_query: