mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 09:25:14 +03:00
cr
This commit is contained in:
1 parent
251b38e3f2
commit
2d2c4e8dd0
1 file changed
+2
@@ -54,6 +54,8 @@ class Pinecone(VectorStore):
|
||||
if isinstance(embeddings, Embeddings):
|
||||
self._embeddings = embeddings
|
||||
else:
|
||||
# This is for backwards compatibility issues. Previously,
|
||||
# embeddings.embed_query was passed in, not the whole class
|
||||
warnings.warn(
|
||||
"passing a function as embeddings is deprecated, "
|
||||
"you should pass an Embedding object directly. "
|
||||
|
||||
Reference in new issue
Block a user