mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user