feat: Add KnowledgeGraphModal #162 (#1766)

### What problem does this PR solve?

feat: Add KnowledgeGraphModal #162

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-01 17:27:27 +08:00
committed by GitHub
parent 50e9df4c76
commit e37b0d217d
13 changed files with 664 additions and 251 deletions

View File

@ -14,25 +14,59 @@ const ParserListMap = new Map([
'presentation',
'one',
'qa',
'knowledge_graph',
],
],
[
['doc', 'docx'],
['naive', 'resume', 'book', 'laws', 'one', 'qa', 'manual'],
[
'naive',
'resume',
'book',
'laws',
'one',
'qa',
'manual',
'knowledge_graph',
],
],
[
['xlsx', 'xls'],
['naive', 'qa', 'table', 'one'],
['naive', 'qa', 'table', 'one', 'knowledge_graph'],
],
[['ppt', 'pptx'], ['presentation']],
[
['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tif', 'tiff', 'webp', 'svg', 'ico'],
['picture'],
],
[['txt'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
[['csv'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
[['md'], ['naive', 'qa']],
[['json'], ['naive']],
[
['txt'],
[
'naive',
'resume',
'book',
'laws',
'one',
'qa',
'table',
'knowledge_graph',
],
],
[
['csv'],
[
'naive',
'resume',
'book',
'laws',
'one',
'qa',
'table',
'knowledge_graph',
],
],
[['md'], ['naive', 'qa', 'knowledge_graph']],
[['json'], ['naive', 'knowledge_graph']],
]);
const getParserList = (