mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-18 17:11:25 +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:
|
if self._text_key in metadata:
|
||||||
text = metadata.pop(self._text_key)
|
text = metadata.pop(self._text_key)
|
||||||
docs.append(Document(page_content=text, metadata=metadata))
|
docs.append(Document(page_content=text, metadata=metadata))
|
||||||
|
else:
|
||||||
|
logger.warning(
|
||||||
|
f"Found document with no `{self._text_key}` key. Skipping."
|
||||||
|
)
|
||||||
return docs
|
return docs
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user