<langchain_community.vectorstores>:<Fix pinecone.py __init__ docsrting instruction> (#15922)

- **Description:** The pinecone docstring instructs to pass the
embedding query text causing the warning below. It should be the
embeddings object.
warning message: UserWarning: Passing in `embedding` as a Callable is
deprecated. Please pass in an Embeddings object instead.
  - **Issue:** NA
  - **Dependencies:** None


@baskaryan
This commit is contained in:
Yacine 2024-01-12 00:26:33 -05:00 committed by GitHub
parent 112208baa5
commit 782dd44be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ class Pinecone(VectorStore):
pinecone.init(api_key="***", environment="...")
index = pinecone.Index("langchain-demo")
embeddings = OpenAIEmbeddings()
vectorstore = Pinecone(index, embeddings.embed_query, "text")
vectorstore = Pinecone(index, embeddings, "text")
"""
def __init__(