Fixes 14217: database retrieve api and chat-messages api response doc_metadata (#14219)

This commit is contained in:
yuhaowin
2025-02-27 14:56:46 +08:00
committed by GitHub
parent 5f692dfce2
commit 1e3197a1ea
6 changed files with 6 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ class DatasetRetrieval:
"segment_id": segment.id,
"retriever_from": invoke_from.to_source(),
"score": record.score or 0.0,
"doc_metadata": document.doc_metadata,
}
if invoke_from.to_source() == "dev":