Skip to content

Commit

Permalink
fix external retrieval without segment id (#11423)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Dec 6, 2024
1 parent 5093337 commit a8d32f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/app/apps/base_app_generate_response_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _get_simple_metadata(cls, metadata: dict[str, Any]):
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"],
Expand Down

0 comments on commit a8d32f9

Please sign in to comment.