Adjust the parameters of gpt-40-mini model, custom for QA mode Add chunkSize setting input (#2139)
Some checks are pending
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run

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

* Adjust the parameters of gpt-40-mini model
This commit is contained in:
Coder-Wjt 2024-08-07 18:05:41 +08:00 committed by GitHub
parent e9ba00d38f
commit 7b388b287a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -14,7 +14,7 @@
"name": "gpt-4o-mini", //
"avatar": "/imgs/model/openai.svg", // logo
"maxContext": 125000, //
"maxResponse": 4000, //
"maxResponse": 16000, //
"quoteMaxToken": 120000, //
"maxTemperature": 1.2, //
"charsPointsPrice": 0, // n/1k token

View File

@ -201,12 +201,13 @@ const DatasetImportContextProvider = ({ children }: { children: React.ReactNode
uploadRate: 150
},
[TrainingModeEnum.qa]: {
chunkSizeField: 'embeddingChunkSize' as ChunkSizeFieldType,
chunkOverlapRatio: 0,
maxChunkSize: 8000,
minChunkSize: 3000,
maxChunkSize: 4096,
minChunkSize: 512,
autoChunkSize: agentModel.maxContext * 0.55 || 6000,
chunkSize: agentModel.maxContext * 0.55 || 6000,
showChunkInput: false,
chunkSize: embeddingChunkSize || agentModel.maxContext * 0.55 || 6000,
showChunkInput: true,
showPromptInput: true,
charsPointsPrice: agentModel.charsPointsPrice,
priceTip: t('core.dataset.import.QA Estimated Price Tips', {