From 829d723dfb7c1eaef52a247639fcc184509b182d Mon Sep 17 00:00:00 2001 From: martsforever Date: Wed, 3 Dec 2025 00:39:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=93=E5=8D=B0milvus=20=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/milvus_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils/milvus_utils.py b/app/utils/milvus_utils.py index 66c99e4..9f43a8d 100644 --- a/app/utils/milvus_utils.py +++ b/app/utils/milvus_utils.py @@ -95,6 +95,9 @@ class MilvusService: retriever = vector_index.as_retriever(filters=filters, similarity_top_k=param.top_k) result_nodes = await retriever.aretrieve(param.question) + + [print(node.node.metadata.get('name', None), node.score) for node in result_nodes] + result_nodes = [node for node in result_nodes if node.score >= 0.3] chain = ChatPromptTemplate.from_template("""