Browse Source

调整大模型问答参数

kobe6258 1 week ago
parent
commit
cb6704dfe5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      utils/llm/eta_llm/eta_llm_client.go

+ 3 - 3
utils/llm/eta_llm/eta_llm_client.go

@@ -158,10 +158,10 @@ func (ds *ETALLMClient) FileChat(query string, KnowledgeId string, history []jso
 		Query:          query,
 		KnowledgeId:    KnowledgeId,
 		History:        ChatHistory,
-		TopK:           3,
-		ScoreThreshold: 0.5,
+		TopK:           20,
+		ScoreThreshold: 1,
 		Stream:         false,
-		Temperature:    0.7,
+		Temperature:    0.3,
 		MaxTokens:      0,
 		PromptName:     DEFALUT_PROMPT_NAME,
 	}