Files
ragflow/web/src/utils/dataset-util.ts
T
balibabu 2c7428e2ee Feat: Put the configuration of different parsing methods into separate components. #5467 (#5487)
### What problem does this PR solve?

Feat: Put the configuration of different parsing methods into separate
components. #5467

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-02-28 16:54:04 +08:00

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;
}