feat(knowledge-config): enhance knowledge configuration form with accordion sections
- Add accordion sections for general, page rank, RAPTOR, and GraphRAG configurations - Implement detailed form controls for each configuration section - Update parser config interfaces to support new configuration options
This commit is contained in:
@@ -3,6 +3,54 @@ import knowledgeService from '@/services/knowledge_service';
|
||||
import type { IKnowledge, IKnowledgeResult } from '@/interfaces/database/knowledge';
|
||||
import type { IFetchKnowledgeListRequestParams } from '@/interfaces/request/knowledge';
|
||||
|
||||
/**
|
||||
{
|
||||
"avatar": "data:image/png;base64,iVBORw0K
|
||||
"chunk_num": 1180,
|
||||
"create_time": 1759986452748,
|
||||
"description": " 213213",
|
||||
"doc_num": 16,
|
||||
"embd_id": "",
|
||||
"id": "dcc2871aa4cd11f08d4116ac85b1de0a",
|
||||
"language": "English",
|
||||
"name": "k1123",
|
||||
"pagerank": 0,
|
||||
"parser_config": {
|
||||
"auto_keywords": 0,
|
||||
"auto_questions": 0,
|
||||
"chunk_token_num": 512,
|
||||
"delimiter": "\n",
|
||||
"graphrag": {
|
||||
"entity_types": [
|
||||
"organization",
|
||||
"person",
|
||||
"geo",
|
||||
"event",
|
||||
"category"
|
||||
],
|
||||
"method": "light",
|
||||
"use_graphrag": true
|
||||
},
|
||||
"html4excel": false,
|
||||
"layout_recognize": "Plain Text",
|
||||
"raptor": {
|
||||
"max_cluster": 64,
|
||||
"max_token": 256,
|
||||
"prompt": "\u8bf7\u603b\u7ed3\u4ee5\u4e0b\u6bb5\u843d\u3002 \u5c0f\u5fc3\u6570\u5b57\uff0c\u4e0d\u8981\u7f16\u9020\u3002 \u6bb5\u843d\u5982\u4e0b\uff1a\n {cluster_content}\n\u4ee5\u4e0a\u5c31\u662f\u4f60\u9700\u8981\u603b\u7ed3\u7684\u5185\u5bb9\u3002",
|
||||
"random_seed": 0,
|
||||
"threshold": 0.1,
|
||||
"use_raptor": false
|
||||
},
|
||||
"topn_tags": 3
|
||||
},
|
||||
"parser_id": "naive",
|
||||
"permission": "team",
|
||||
"size": 56819092,
|
||||
"token_num": 293067,
|
||||
"update_time": 1760436169574
|
||||
}
|
||||
*/
|
||||
|
||||
// 知识库列表Hook状态接口
|
||||
export interface UseKnowledgeListState {
|
||||
knowledgeBases: IKnowledge[];
|
||||
|
||||
Reference in New Issue
Block a user