mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 03:58:30 +02:00
nit update
This commit is contained in:
committed by
Evan Lohn
parent
25a57e2292
commit
eb227c0acc
@@ -74,7 +74,7 @@ def format_docs(docs: Sequence[InferenceSection]) -> str:
|
|||||||
formatted_doc_list = []
|
formatted_doc_list = []
|
||||||
|
|
||||||
for doc_num, doc in enumerate(docs):
|
for doc_num, doc in enumerate(docs):
|
||||||
title: str | None = doc.center_chunk.title if doc.center_chunk.title else None
|
title: str | None = doc.center_chunk.title
|
||||||
metadata: dict[str, str | list[str]] | None = (
|
metadata: dict[str, str | list[str]] | None = (
|
||||||
doc.center_chunk.metadata if doc.center_chunk.metadata else None
|
doc.center_chunk.metadata if doc.center_chunk.metadata else None
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user