mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 08:38:58 +08:00
fix external retrieval without segment id (#11423)
This commit is contained in:
parent
5093337de1
commit
a8d32f9964
@ -82,7 +82,7 @@ class AppGenerateResponseConverter(ABC):
|
|||||||
for resource in metadata["retriever_resources"]:
|
for resource in metadata["retriever_resources"]:
|
||||||
updated_resources.append(
|
updated_resources.append(
|
||||||
{
|
{
|
||||||
"segment_id": resource["segment_id"],
|
"segment_id": resource.get("segment_id", ""),
|
||||||
"position": resource["position"],
|
"position": resource["position"],
|
||||||
"document_name": resource["document_name"],
|
"document_name": resource["document_name"],
|
||||||
"score": resource["score"],
|
"score": resource["score"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user