mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-17 16:39:52 +00:00
cr
This commit is contained in:
parent
d39ab27969
commit
4018892f8a
@ -84,6 +84,10 @@ class Pinecone(VectorStore):
|
||||
if self._text_key in metadata:
|
||||
text = metadata.pop(self._text_key)
|
||||
docs.append(Document(page_content=text, metadata=metadata))
|
||||
else:
|
||||
logger.warning(
|
||||
f"Found document with no `{self._text_key}` key. Skipping."
|
||||
)
|
||||
return docs
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user