From 1d3317b62a33c1f8cc173f9683f0e0a98e41c322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Tue, 23 Jan 2024 11:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/api/docantd.api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/api/docantd.api.ts b/src/pages/api/docantd.api.ts index 8c4e3cb..bdd0bc0 100644 --- a/src/pages/api/docantd.api.ts +++ b/src/pages/api/docantd.api.ts @@ -38,7 +38,8 @@ export default async function handler(request: Request) { controller.enqueue(encoder.encode('')); const searchResult = await qdrantClient.search('test_collection', { vector: embedding || [], - limit: 1, + limit: 2, + score_threshold: 0.2, }); controller.enqueue(