fix multimodal embedding retrival test

This commit is contained in:
jyong 2025-12-26 17:30:51 +08:00
parent 676063890c
commit 44ef3cc27d
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ class RetrievalService:
child_chunks = None
if child_chunks:
child_chunks = sorted(child_chunks, key=lambda x: x.get, reverse=True)
child_chunks = sorted(child_chunks, key=lambda x: x.get("score", 0.0), reverse=True)
# Extract files, ensuring it's a list or None
files = record.get("files")