mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-21 10:31:23 +00:00
@@ -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"})
|
||||
|
Reference in New Issue
Block a user