Commit 7b388b28 by Coder-Wjt Committed by GitHub

Adjust the parameters of gpt-40-mini model, custom for QA mode Add chunkSize setting input (#2139)

* Adjust the parameters of gpt-40-mini model, custom for QA mode Add chunkSize setting input

* Adjust the parameters of gpt-40-mini model
parent e9ba00d3
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"name": "gpt-4o-mini", // 模型别名 "name": "gpt-4o-mini", // 模型别名
"avatar": "/imgs/model/openai.svg", // 模型的logo "avatar": "/imgs/model/openai.svg", // 模型的logo
"maxContext": 125000, // 最大上下文 "maxContext": 125000, // 最大上下文
"maxResponse": 4000, // 最大回复 "maxResponse": 16000, // 最大回复
"quoteMaxToken": 120000, // 最大引用内容 "quoteMaxToken": 120000, // 最大引用内容
"maxTemperature": 1.2, // 最大温度 "maxTemperature": 1.2, // 最大温度
"charsPointsPrice": 0, // n积分/1k token(商业版) "charsPointsPrice": 0, // n积分/1k token(商业版)
......
...@@ -201,12 +201,13 @@ const DatasetImportContextProvider = ({ children }: { children: React.ReactNode ...@@ -201,12 +201,13 @@ const DatasetImportContextProvider = ({ children }: { children: React.ReactNode
uploadRate: 150 uploadRate: 150
}, },
[TrainingModeEnum.qa]: { [TrainingModeEnum.qa]: {
chunkSizeField: 'embeddingChunkSize' as ChunkSizeFieldType,
chunkOverlapRatio: 0, chunkOverlapRatio: 0,
maxChunkSize: 8000, maxChunkSize: 4096,
minChunkSize: 3000, minChunkSize: 512,
autoChunkSize: agentModel.maxContext * 0.55 || 6000, autoChunkSize: agentModel.maxContext * 0.55 || 6000,
chunkSize: agentModel.maxContext * 0.55 || 6000, chunkSize: embeddingChunkSize || agentModel.maxContext * 0.55 || 6000,
showChunkInput: false, showChunkInput: true,
showPromptInput: true, showPromptInput: true,
charsPointsPrice: agentModel.charsPointsPrice, charsPointsPrice: agentModel.charsPointsPrice,
priceTip: t('core.dataset.import.QA Estimated Price Tips', { priceTip: t('core.dataset.import.QA Estimated Price Tips', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment