Refa: knowledge_graph chunk method is deprecated (#7220)

### What problem does this PR solve?

The knowledge_graph chunk method is deprecated and should no longer be
used. #7184.

### Type of change

- [x] Refactoring
This commit is contained in:
Yongteng Lei
2025-04-23 13:01:46 +08:00
committed by GitHub
parent 03672df691
commit 94181a990b
7 changed files with 7 additions and 28 deletions

View File

@ -69,7 +69,7 @@ def create(tenant_id):
chunk_method:
type: string
enum: ["naive", "manual", "qa", "table", "paper", "book", "laws",
"presentation", "picture", "one", "knowledge_graph", "email", "tag"
"presentation", "picture", "one", "email", "tag"
]
description: Chunking method.
parser_config:
@ -105,7 +105,6 @@ def create(tenant_id):
"presentation",
"picture",
"one",
"knowledge_graph",
"email",
"tag"
]
@ -315,7 +314,7 @@ def update(tenant_id, dataset_id):
chunk_method:
type: string
enum: ["naive", "manual", "qa", "table", "paper", "book", "laws",
"presentation", "picture", "one", "knowledge_graph", "email", "tag"
"presentation", "picture", "one", "email", "tag"
]
description: Updated chunking method.
parser_config:
@ -353,7 +352,6 @@ def update(tenant_id, dataset_id):
"presentation",
"picture",
"one",
"knowledge_graph",
"email",
"tag"
]

View File

@ -109,7 +109,7 @@ def init_settings():
API_KEY = LLM.get("api_key", "")
PARSERS = LLM.get(
"parsers",
"naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,knowledge_graph:Knowledge Graph,email:Email,tag:Tag")
"naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One,audio:Audio,email:Email,tag:Tag")
HOST_IP = get_base_config(RAG_FLOW_SERVICE_NAME, {}).get("host", "127.0.0.1")
HOST_PORT = get_base_config(RAG_FLOW_SERVICE_NAME, {}).get("http_port")