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'];