Skip to content

Commit

Permalink
Let json files support naive parsing methods infiniflow#1245 (infinif…
Browse files Browse the repository at this point in the history
…low#1247)

### What problem does this PR solve?

Let json files support naive parsing methods infiniflow#1245

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
  • Loading branch information
cike8899 authored Jun 24, 2024
1 parent 23d9aa4 commit 2505605
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/chunk-method-modal/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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 = (
Expand Down

0 comments on commit 2505605

Please sign in to comment.