Introduced a simple demo of mixed index and text2gremlin demonstration.#54
Merged
simon824 merged 38 commits intoapache:mainfrom Jul 23, 2024
vichayturen:main
Merged
Introduced a simple demo of mixed index and text2gremlin demonstration.#54simon824 merged 38 commits intoapache:mainfrom vichayturen:main
simon824 merged 38 commits intoapache:mainfrom
vichayturen:main
Conversation
2. Graph RAG增加向量索引和混合索引加重排的两种方式的索引。 3. 增加自然语言转gremlin的任务及演示。
1 task
TODO: lack some check now
| def test_api_connection(url, method="GET", ak=None, sk=None, headers=None, body=None): | ||
| # TODO: use fastapi.request / starlette instead? (Also add a try-catch here) | ||
| if method.upper() == "GET": | ||
| response = requests.get(url, headers=headers, timeout=5) |
Check failure
Code scanning / CodeQL
Full server-side request forgery
for debug RESTful API problem
2. added template input textbox 3. changed ernie llm to use qianfan sdk 4. added function of filtering id length
Also rename the same params (inner & outer) TODO: Non-Schema mode will throw Error now (we need fix it)
…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.
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.
Member
Contributor
|
Now the .config file instead of json file can be generated with command like |
init graphspace support
jiajunly
reviewed
Jul 19, 2024
|
|
||
| dirname = os.path.dirname | ||
| package_path = dirname(dirname(dirname(dirname(os.path.abspath(__file__))))) | ||
| env_path = os.path.join(package_path, ".env") |
Contributor
There was a problem hiding this comment.
在pip安装之后 运行代码会在python所在路径下生成.env
Contributor
There was a problem hiding this comment.
There are some aspects that can be optimized in the future.
- Add some configuration-related comments in the .env file
- Rename
.envfilename to something related to hugegraph-llm - Unify the variables in the .env file and the variables in the Config class to be all uppercase
- Differentiate between commonly used parameters and parameters that are secret keys
- Give user a choice where to place their .env file
* support local openai env * fix env
…-only", "vector-only", "graph-vector"
# Conflicts: # hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py
…fix code style (#3) * fix: fix the triple extract * 修改格式,和属性图模式 * 修复代码样式,并增加错误抓取和传输到前端界面
ChenZiHong-Gavin
approved these changes
Jul 23, 2024
simon824
approved these changes
Jul 23, 2024
javeme
reviewed
Mar 22, 2025
javeme
left a comment
There was a problem hiding this comment.
prefer to add an assertEqual for each test(like test_vector_index)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Main changes:
TODOs (add them later) 🔢
... (check the latest doc)