mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 09:25:14 +03:00
2.1 KiB
2.1 KiB
In [1]:
from langchain.docstore.document import DocumentIn [2]:
text = "..... put the text you copy pasted here......"In [3]:
doc = Document(page_content=text)In [4]:
metadata = {"source": "internet", "date": "Friday"}In [5]:
doc = Document(page_content=text, metadata=metadata)In [ ]: