From 052c36103120bb0f43fd14d0d97faa2cc9512006 Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Thu, 19 Jan 2023 07:02:52 -0800 Subject: [PATCH] pinecone docstring (#654) --- langchain/vectorstores/pinecone.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/langchain/vectorstores/pinecone.py b/langchain/vectorstores/pinecone.py index cc160ca59ab52..1f92f4110e013 100644 --- a/langchain/vectorstores/pinecone.py +++ b/langchain/vectorstores/pinecone.py @@ -17,9 +17,14 @@ class Pinecone(VectorStore): Example: .. code-block:: python - import pinecone from langchain.vectorstores import Pinecone - vectorstore = Pinecone(pinecone_index, embedding_function, "text_key") + from langchain.embeddings.openai import OpenAIEmbeddings + import pinecone + + pinecone.init(api_key="***", environment="us-west1-gcp") + index = pinecone.Index("langchain-demo") + embeddings = OpenAIEmbeddings() + vectorstore = Pinecone(index, embeddings.embed_query, "text") """ def __init__(