balibabu
commited on
Commit
·
e04709e
1
Parent(s):
3eacd34
Let json files support naive parsing methods #1245 (#1247)
Browse files### 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
CHANGED
@@ -16,11 +16,12 @@ const ParserListMap = new Map([
|
|
16 |
'laws',
|
17 |
'presentation',
|
18 |
'one',
|
|
|
19 |
],
|
20 |
],
|
21 |
[
|
22 |
['doc', 'docx'],
|
23 |
-
['naive', 'resume', 'book', 'laws', 'one'],
|
24 |
],
|
25 |
[
|
26 |
['xlsx', 'xls'],
|
@@ -33,6 +34,8 @@ const ParserListMap = new Map([
|
|
33 |
],
|
34 |
[['txt'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
|
35 |
[['csv'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
|
|
|
|
|
36 |
]);
|
37 |
|
38 |
const getParserList = (
|
|
|
16 |
'laws',
|
17 |
'presentation',
|
18 |
'one',
|
19 |
+
'qa',
|
20 |
],
|
21 |
],
|
22 |
[
|
23 |
['doc', 'docx'],
|
24 |
+
['naive', 'resume', 'book', 'laws', 'one', 'qa', 'manual'],
|
25 |
],
|
26 |
[
|
27 |
['xlsx', 'xls'],
|
|
|
34 |
],
|
35 |
[['txt'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
|
36 |
[['csv'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
|
37 |
+
[['md'], ['naive', 'qa']],
|
38 |
+
[['json'], ['naive']],
|
39 |
]);
|
40 |
|
41 |
const getParserList = (
|