-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced a simple demo of mixed index and text2gremlin demonstratio…
…n. (#54) * 1. 修改配置方式,整体配置简单易用。 2. Graph RAG增加向量索引和混合索引加重排的两种方式的索引。 3. 增加自然语言转gremlin的任务及演示。 * reafact: add conn check after applying configs (WIP) TODO: lack some check now * fix: use log to print some info * feat(llm): support qianfan platform for embedding & replace wenxin refer * 1. 修复了导入和搜索的bug * fix upload document * fix the non-disambiguate uploading * chore: exclude binary files & update params order * fix: openai params not match * log: record error in py-client with orange color for debug RESTful API problem * 1. added triples and edges id setting 2. added template input textbox 3. changed ernie llm to use qianfan sdk 4. added function of filtering id length * refact: update the prompt template Also rename the same params (inner & outer) TODO: Non-Schema mode will throw Error now (we need fix it) * update: add config file argument and update to build semantic vertex-id querying - Update BuildSemanticIndex class to match new file naming convention. - Modify code_format_and_analysis.sh to use a line length of 120. - Change logging format to use %s instead of {} for string formatting. * feat: optimize index loading and add clean-up button 1. Introduce a clean-up function to remove index and content files, aiding in maintaining a clean file system after operations. 2. Introduce default demo of build kg. 3. Now it does not clean the kg before building kg by default. 4. Clean the stopwords files. * Add generating operation of config file in README.md * fix: use lower case to compare str & enhance the extract prompt * fix: Fix to add triples from extracted vertex, and fix the format of triples. * doc: update readme * feat: use custom_handler log color * fix: avoid FSRF security warning * doc: update readme * feat: change config store method * chore: use a flexible version for dependencies * feat(hugegraph_llm): supporting property graph extract and primary key id. (#2) * fix: token type should be int (WIP) init graphspace support * fix: read int parameter from .env * feat: use .env as default config file * fix: Add a 'copy' button to the output box * Support local openai env (#1) * support local openai env * fix env * refact: set gpt-4o-mini as the openai default type * feat: Add rag option for four output type including "llm-raw", "graph-only", "vector-only", "graph-vector" * feat: Add vector result output in cmd. * feat: Add error catch and display it on the front-end web interface, fix code style (#3) * fix: fix the triple extract * 修改格式,和属性图模式 * 修复代码样式,并增加错误抓取和传输到前端界面 * revert: graphspace init for CI --------- Co-authored-by: imbajin <jin@apache.org> Co-authored-by: chenzihong <522023320011@smail.nju.edu.cn> Co-authored-by: Liu Jiajun <85552719+jasinliu@users.noreply.github.com>
- Loading branch information
1 parent
a805bb2
commit 3a3698b
Showing
81 changed files
with
4,148 additions
and
1,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
openai==0.28.1 | ||
retry==0.9.2 | ||
tiktoken==0.7.0 | ||
nltk==3.8.1 | ||
gradio==4.37.2 | ||
openai~=0.28.1 | ||
ollama~=0.2.1 | ||
qianfan~=0.3.18 | ||
retry~=0.9.2 | ||
tiktoken>=0.7.0 | ||
nltk~=3.8.1 | ||
gradio>=4.37.2 | ||
jieba>=0.42.1 | ||
numpy~=1.24.4 | ||
python-docx~=1.1.2 | ||
langchain-text-splitters~=0.2.2 | ||
faiss-cpu~=1.8.0 | ||
python-dotenv>=1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.