From c70d1d4bf95eed71bcba391d61611e0ddcd97eeb Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 8 Dec 2025 09:46:34 +0800 Subject: [PATCH] * [misc] change default min similarity to 0.7 on search knowledges. --- module/zai/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zai/control.php b/module/zai/control.php index 81288496dc..ddc93bf6cd 100644 --- a/module/zai/control.php +++ b/module/zai/control.php @@ -216,8 +216,8 @@ class zai extends control if(empty($userPrompt) || empty($filters)) return $this->send(array('result' => 'failed', 'message' => $this->lang->fail)); - $knowledges = $this->zai->searchKnowledgesInCollections($userPrompt, $filters, $type, $limit); - $prompts = array(); + $knowledges = $this->zai->searchKnowledgesInCollections($userPrompt, $filters, $type, $limit, 0.7); + $results = []; foreach($knowledges as $knowledge) { $prompts[] = $knowledge['content'];