improve docstring of doc formatting (#7162)

so it shows up nice
This commit is contained in:
Harrison Chase
2023-07-04 16:31:29 -07:00
committed by GitHub
parent 2984803597
commit e8531769f7

View File

@@ -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"})