# 安装java sudo apt install openjdk-11-jdk # 下载最新版本的release文件,网页为https://github.com/apache/incubator-hugegraph/releases wget https://downloads.apache.org/incubator/hugegraph/1.5.0/apache-hugegraph-incubating-1.5.0.tar.gz tar xvf apache-hugegraph-incubating-1.5.0.tar.gz # 配置 cd apache-hugegraph-incubating-1.5.0/apache-hugegraph-server-incubating-1.5.0 vim conf/graphs/hugegraph.properties # 修改以下配置项 ## backend=memory ## serializer=text vim conf/rest-server.properties # 修改以下配置项 ## restserver.url=http://0.0.0.0:8080 # 运行 bin/start-hugegraph.sh # 关闭 bin/stop-hugegraph.sh
1.2 incubator-hugegraph-ai
1.2.1 贡献流程
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 准备贡献 ## 创建fork,并clone git clone git@github.com:Ethereal-O/incubator-hugegraph-ai.git cd incubator-hugegraph-ai ## add upstream to synchronize the latest code git remote add hugegraph git@github.com:apache/incubator-hugegraph-ai.git ## pull the latest code from official hugegraph git pull hugegraph ## create new branch: bugfix-branch git checkout -b bugfix-branch # 修改代码 # 提交 ## Fix bug: run deploy multiple times ## fix #ISSUE_ID # push到自己仓库并创建pr
1.2.2 运行
1 2 3 4 5 6 7 8 9 10 11 12
cd ./incubator-hugegraph-ai/hugegraph-llm poetry config --list # List/check the current configuration (Optional) # e.g: poetry config virtualenvs.in-project true # You could update the poetry configs if need poetry install # (Recommended) If you want to use the shell of the venv, you can run the following command poetry self add poetry-plugin-shell # from poetry 2.0+ poetry shell # use 'exit' to leave the shell # 运行 cd ./src python -m hugegraph_llm.demo.rag_demo.app