Fix: Clustering method echo error (#15322)

### What problem does this PR solve?

Fix: Clustering method echo error

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-05-28 14:32:31 +08:00
committed by GitHub
parent 8468227a1a
commit 7e83643536
2 changed files with 3 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ interface Parserconfig {
interface Raptor {
clustering_method?: 'gmm' | 'ahc';
ext?: { clustering_method: 'gmm' | 'ahc'; tree_builder: 'raptor' | 'psi' };
max_cluster: number;
max_token: number;
prompt: string;

View File

@@ -47,6 +47,8 @@ export const useFetchKnowledgeConfigurationOnMount = (
raptor: {
...form.formState?.defaultValues?.parser_config?.raptor,
...knowledgeDetails.parser_config?.raptor,
clustering_method:
knowledgeDetails.parser_config?.raptor?.ext?.clustering_method,
use_raptor: true,
},
graphrag: {