mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-25 08:06:48 +08:00
Fix:Optimize Agent template page, fix bugs in knowledge base (#9009)
### What problem does this PR solve? Replace Avatar with RAGFlowAvatar component for knowledge base and agent, optimize Agent template page, and modify bugs in knowledge base #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -71,9 +71,13 @@ export const useFetchKnowledgeConfigurationOnMount = (
|
||||
knowledgeDetails.avatar,
|
||||
);
|
||||
|
||||
console.log('🚀 ~ useEffect ~ fileList:', fileList);
|
||||
form.reset({
|
||||
...pick(knowledgeDetails, [
|
||||
console.log('🚀 ~ useEffect ~ fileList:', fileList, knowledgeDetails);
|
||||
const parser_config = {
|
||||
...form.formState?.defaultValues?.parser_config,
|
||||
...knowledgeDetails.parser_config,
|
||||
};
|
||||
const formValues = {
|
||||
...pick({ ...knowledgeDetails, parser_config: parser_config }, [
|
||||
'description',
|
||||
'name',
|
||||
'permission',
|
||||
@ -83,6 +87,9 @@ export const useFetchKnowledgeConfigurationOnMount = (
|
||||
'parser_config',
|
||||
'pagerank',
|
||||
]),
|
||||
};
|
||||
form.reset({
|
||||
...formValues,
|
||||
avatar: fileList,
|
||||
});
|
||||
}, [form, knowledgeDetails]);
|
||||
|
||||
@ -54,10 +54,6 @@ export default function DatasetSettings() {
|
||||
topn_tags: 3,
|
||||
raptor: {
|
||||
use_raptor: false,
|
||||
max_token: 256,
|
||||
threshold: 0.1,
|
||||
max_cluster: 64,
|
||||
random_seed: 0,
|
||||
},
|
||||
graphrag: {
|
||||
use_graphrag: false,
|
||||
|
||||
Reference in New Issue
Block a user