We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54fd20 commit 052c361Copy full SHA for 052c361
langchain/vectorstores/pinecone.py
@@ -17,9 +17,14 @@ class Pinecone(VectorStore):
17
Example:
18
.. code-block:: python
19
20
- import pinecone
21
from langchain.vectorstores import Pinecone
22
- vectorstore = Pinecone(pinecone_index, embedding_function, "text_key")
+ from langchain.embeddings.openai import OpenAIEmbeddings
+ import pinecone
23
+
24
+ pinecone.init(api_key="***", environment="us-west1-gcp")
25
+ index = pinecone.Index("langchain-demo")
26
+ embeddings = OpenAIEmbeddings()
27
+ vectorstore = Pinecone(index, embeddings.embed_query, "text")
28
"""
29
30
def __init__(
0 commit comments