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

@@ -27,6 +27,7 @@ const {
get_document_file,
document_upload,
web_crawl,
knowledge_graph,
} = api;
const methods = {
@@ -121,6 +122,10 @@ const methods = {
url: retrieval_test,
method: 'post',
},
knowledge_graph: {
url: knowledge_graph,
method: 'get',
},
};
const kbService = registerServer<keyof typeof methods>(methods, request);