mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-05 19:15:44 +00:00
parent
2984803597
commit
e8531769f7
@ -164,6 +164,7 @@ def format_document(doc: Document, prompt: BasePromptTemplate) -> str:
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
from langchain.schema import Document
|
||||
from langchain.prompts import PromptTemplate
|
||||
doc = Document(page_content="This is a joke", metadata={"page": "1"})
|
||||
|
Loading…
Reference in New Issue
Block a user