mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 02:35:55 +08:00
fix: knowledge retrieval score threshold setting (#5658)
This commit is contained in:
parent
3ccad33194
commit
2119d59da8
@ -99,7 +99,10 @@ const SettingsModal: FC<SettingsModalProps> = ({
|
|||||||
description,
|
description,
|
||||||
permission,
|
permission,
|
||||||
indexing_technique: indexMethod,
|
indexing_technique: indexMethod,
|
||||||
retrieval_model: postRetrievalConfig,
|
retrieval_model: {
|
||||||
|
...postRetrievalConfig,
|
||||||
|
score_threshold: postRetrievalConfig.score_threshold_enabled ? postRetrievalConfig.score_threshold : 0,
|
||||||
|
},
|
||||||
embedding_model: localeCurrentDataset.embedding_model,
|
embedding_model: localeCurrentDataset.embedding_model,
|
||||||
embedding_model_provider: localeCurrentDataset.embedding_model_provider,
|
embedding_model_provider: localeCurrentDataset.embedding_model_provider,
|
||||||
},
|
},
|
||||||
|
@ -25,6 +25,7 @@ import {
|
|||||||
useModelListAndDefaultModelAndCurrentProviderAndModel,
|
useModelListAndDefaultModelAndCurrentProviderAndModel,
|
||||||
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||||
import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
||||||
|
import type { DefaultModel } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
||||||
|
|
||||||
const rowClass = `
|
const rowClass = `
|
||||||
flex justify-between py-4 flex-wrap gap-y-2
|
flex justify-between py-4 flex-wrap gap-y-2
|
||||||
@ -110,7 +111,10 @@ const Form = () => {
|
|||||||
description,
|
description,
|
||||||
permission,
|
permission,
|
||||||
indexing_technique: indexMethod,
|
indexing_technique: indexMethod,
|
||||||
retrieval_model: postRetrievalConfig,
|
retrieval_model: {
|
||||||
|
...postRetrievalConfig,
|
||||||
|
score_threshold: postRetrievalConfig.score_threshold_enabled ? postRetrievalConfig.score_threshold : 0,
|
||||||
|
},
|
||||||
embedding_model: embeddingModel.model,
|
embedding_model: embeddingModel.model,
|
||||||
embedding_model_provider: embeddingModel.provider,
|
embedding_model_provider: embeddingModel.provider,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user