From 57970570eef87e6daece6759b0fd1d5765923f3a Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 24 Jun 2024 10:40:51 +0800 Subject: [PATCH] Let json files support naive parsing methods #1245 (#1247) ### What problem does this PR solve? Let json files support naive parsing methods #1245 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/components/chunk-method-modal/hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/components/chunk-method-modal/hooks.ts b/web/src/components/chunk-method-modal/hooks.ts index 27e5a903b..c2c95ac62 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 = (