Fixes 14217: database retrieve api and chat-messages api response doc_metadata (#14219)
This commit is contained in:
parent
5f692dfce2
commit
1e3197a1ea
6 changed files with 6 additions and 0 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue