mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 12:03:54 +02:00
Add metadata for simple doc (#2212)
This commit is contained in:
@@ -54,6 +54,7 @@ def translate_doc_response_to_simple_doc(
|
||||
highlight for highlight in doc.match_highlights if highlight
|
||||
],
|
||||
source_type=doc.source_type,
|
||||
metadata=doc.metadata,
|
||||
)
|
||||
for doc in doc_response.top_documents
|
||||
]
|
||||
|
@@ -64,6 +64,7 @@ class SimpleDoc(BaseModel):
|
||||
blurb: str
|
||||
match_highlights: list[str]
|
||||
source_type: DocumentSource
|
||||
metadata: dict | None
|
||||
|
||||
|
||||
class ChatBasicResponse(BaseModel):
|
||||
|
Reference in New Issue
Block a user