mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
fix weird bold issues in docs (#7198)
This commit is contained in:
parent
e27ba9d92b
commit
e18e838aae
@ -146,9 +146,11 @@ def format_document(doc: Document, prompt: BasePromptTemplate) -> str:
|
||||
|
||||
First, this pulls information from the document from two sources:
|
||||
|
||||
1. `page_content`: this takes the information from the `document.page_content`
|
||||
1. `page_content`:
|
||||
This takes the information from the `document.page_content`
|
||||
and assigns it to a variable named `page_content`.
|
||||
2. metadata: this takes information from `document.metadata` and assigns
|
||||
2. metadata:
|
||||
This takes information from `document.metadata` and assigns
|
||||
it to variables of the same name.
|
||||
|
||||
Those variables are then passed into the `prompt` to produce a formatted string.
|
||||
|
Loading…
Reference in New Issue
Block a user