mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-01 13:51:59 +08:00
Retrieval service optimization (#13849)
This commit is contained in:
parent
bea10b4356
commit
abe5aca3e2
@ -301,7 +301,6 @@ class RetrievalService:
|
||||
DocumentSegment.id,
|
||||
DocumentSegment.content,
|
||||
DocumentSegment.answer,
|
||||
DocumentSegment.doc_metadata,
|
||||
)
|
||||
)
|
||||
.first()
|
||||
@ -362,7 +361,6 @@ class RetrievalService:
|
||||
record = {
|
||||
"segment": segment,
|
||||
"score": document.metadata.get("score"), # type: ignore
|
||||
"segment_metadata": segment.doc_metadata,
|
||||
}
|
||||
records.append(record)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user