Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Let json files support naive parsing methods #1245 (#1247)

balibabu57970570eef8
diff --git a/web/src/components/chunk-method-modal/hooks.ts b/web/src/components/chunk-method-modal/hooks.ts
index 27e5a903b6..c2c95ac629 100644
--- a/web/src/components/chunk-method-modal/hooks.ts
+++ b/web/src/components/chunk-method-modal/hooks.ts
@@ -16,11 +16,12 @@ const ParserListMap = new Map([
'laws',
'presentation',
'one',
+ 'qa',
],
],
[
['doc', 'docx'],
- ['naive', 'resume', 'book', 'laws', 'one'],
+ ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'manual'],
],
[
['xlsx', 'xls'],
@@ -33,6 +34,8 @@ const ParserListMap = new Map([
],
[['txt'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
[['csv'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
+ [['md'], ['naive', 'qa']],
+ [['json'], ['naive']],
]);
const getParserList = (