Skip to content

Commit

Permalink
fix weird bold issues in docs (langchain-ai#7198)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored and aerrober committed Jul 24, 2023
1 parent 014b7f6 commit 066257a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions langchain/schema/prompt_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 066257a

Please sign in to comment.