incubator-hugegraph-ai贡献

Ethereal Lv4

1. 部署与运行方法

1.1 hugeGraph

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 安装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

运行时注意配置

  • embedding可以选百度的

参考

Ubuntu轻松上手:深度解析HugeGraph安装与配置指南 - 云原生实践

Releases · apache/incubator-hugegraph

HugeGraph-Server Quick Start | HugeGraph

Embedding-V1 - ModelBuilder

百度智能云控制台

千帆大模型服务与开发平台ModelBuilder

Embedding-V1 - ModelBuilder

关于百度智能云千帆大模型平台应用APIkey和Secret Key获取_百度智能云apikey怎么获取-CSDN博客

How to Contribute to HugeGraph | HugeGraph

incubator-hugegraph-ai/hugegraph-llm at main · apache/incubator-hugegraph-ai

  • Title: incubator-hugegraph-ai贡献
  • Author: Ethereal
  • Created at: 2025-05-19 18:50:11
  • Updated at: 2025-05-19 19:38:07
  • Link: https://ethereal-o.github.io/2025/05/19/incubator-hugegraph-ai贡献/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments