mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 14:50:30 +08:00
10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
|
|
import { DocumentParserType } from '@/constants/knowledge';
|
||
|
|
|
||
|
|
export function isKnowledgeGraphParser(parserId: DocumentParserType) {
|
||
|
|
return parserId === DocumentParserType.KnowledgeGraph;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function isNaiveParser(parserId: DocumentParserType) {
|
||
|
|
return parserId === DocumentParserType.Naive;
|
||
|
|
}
|