fix external retrieval without segment id (#11423)

pull/11433/head
Jyong 1 year ago committed by GitHub
parent 5093337de1
commit a8d32f9964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,7 +82,7 @@ class AppGenerateResponseConverter(ABC):
for resource in metadata["retriever_resources"]:
updated_resources.append(
{
"segment_id": resource["segment_id"],
"segment_id": resource.get("segment_id", ""),
"position": resource["position"],
"document_name": resource["document_name"],
"score": resource["score"],

Loading…
Cancel
Save