-
Notifications
You must be signed in to change notification settings - Fork 60
feat(llm):improve some RAG function UT(tests) #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yanchaomei
wants to merge
58
commits into
apache:main
Choose a base branch
from
yanchaomei:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
ba85fbc
feat(llm):improve some RAG function UT(tests)
yanchaomei aabac09
Merge branch 'main' into main
imbajin a012cb2
add hugegraph-llm.yml
yanchaomei da5b6c0
Merge branch 'main' of github.com:yanchaomei/incubator-hugegraph-ai
yanchaomei ae1511c
Merge branch 'main' into main
imbajin fc67aa9
fix ci build error & pylint
yanchaomei 5db19ec
fix ci bugs
yanchaomei d1421a7
Merge branch 'main' into main
imbajin 50d4852
fix ci file
yanchaomei cba0502
fix ci file
yanchaomei 4919b4b
fix ci file
yanchaomei f756bec
add init
yanchaomei 2381c3b
fix method name bug
yanchaomei 8819689
fix method name bug
yanchaomei 0e28c89
remove py 3.12
yanchaomei a7e9b9b
fix pylint
yanchaomei bfffa16
fix pylint
yanchaomei 2a0b616
fix ci&ptlint
yanchaomei be12bb3
Merge branch 'main' into main
imbajin 20e360b
Merge branch 'main' into main
imbajin 5fdf1b7
Update .github/workflows/hugegraph-llm.yml
yanchaomei 402b9ba
fix issues
yanchaomei 2a86265
fix issues
yanchaomei d0ac13e
fix pylints
yanchaomei 04b2f76
fix pylints
yanchaomei 51bae93
fix
yanchaomei fa67eff
fix
yanchaomei 843d8e8
fix
yanchaomei 9254a0a
fix
yanchaomei 6897b3e
fix
yanchaomei 9e40542
fix
yanchaomei 4b8f247
fix
yanchaomei 1a5a784
fix
yanchaomei 8f4358f
fix
yanchaomei db02f9d
fix
yanchaomei 63f36f1
fix
yanchaomei 87744a2
fix
yanchaomei fe8cecb
fix
yanchaomei 46f6ba5
fix
yanchaomei 93e95e5
fix
yanchaomei 09d09b5
Merge branch 'main' into main
yanchaomei 5bc64c1
fix
yanchaomei dbcad5f
merged
yanchaomei 2c3702b
Resolve merge conflicts and fix BuildGremlinExampleIndex
yanchaomei 232d8d0
Update CI configuration to handle environment-specific test failures
yanchaomei c0c037c
fix
yanchaomei d30ad5a
add head
yanchaomei 9117b1b
fix
yanchaomei ff25472
Merge branch 'main' of https://github.com/apache/incubator-hugegraph-ai
actions-user 073a46c
Merge branch 'main' of https://github.com/apache/incubator-hugegraph-ai
actions-user 159bfd2
Merge branch 'main' of https://github.com/apache/incubator-hugegraph-ai
actions-user 76e6192
Merge branch 'main' of https://github.com/apache/incubator-hugegraph-ai
actions-user f5f9318
fix ci
yanchaomei 6d6ceb6
fix
yanchaomei 533e179
fix
yanchaomei b490f8b
fix
yanchaomei 10cff6a
fix
yanchaomei 119336d
fix
yanchaomei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| name: HugeGraph-LLM CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - 'release-*' | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
|
||
| steps: | ||
| - name: Prepare HugeGraph Server Environment | ||
| run: | | ||
| docker run -d --name=graph -p 8080:8080 -e PASSWORD=admin hugegraph/hugegraph:1.3.0 | ||
| sleep 10 | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install uv | ||
| run: | | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
|
|
||
| - name: Cache dependencies | ||
| id: cache-deps | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| .venv | ||
| ~/.cache/uv | ||
| ~/.cache/pip | ||
| key: ${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('hugegraph-llm/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-venv-${{ matrix.python-version }}- | ||
| ${{ runner.os }}-venv- | ||
|
|
||
| - name: Install dependencies | ||
| if: steps.cache-deps.outputs.cache-hit != 'true' | ||
| run: | | ||
| uv venv | ||
| source .venv/bin/activate | ||
| uv pip install pytest pytest-cov | ||
| uv pip install -r ./hugegraph-llm/requirements.txt | ||
|
|
||
| - name: Run unit tests | ||
| run: | | ||
| source .venv/bin/activate | ||
| export PYTHONPATH=$(pwd)/hugegraph-llm/src | ||
| export SKIP_EXTERNAL_SERVICES=true | ||
| cd hugegraph-llm | ||
| python -m pytest src/tests/operators/hugegraph_op/ src/tests/config/ src/tests/document/ src/tests/middleware/ -v | ||
|
|
||
| - name: Run integration tests | ||
| run: | | ||
| source .venv/bin/activate | ||
| export PYTHONPATH=$(pwd)/hugegraph-llm/src | ||
| export SKIP_EXTERNAL_SERVICES=true | ||
| cd hugegraph-llm | ||
| python -m pytest src/tests/integration/test_graph_rag_pipeline.py -v | ||
This file was deleted.
Oops, something went wrong.
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note each file should have a EOF line (U could config it in your IDE's settings)
So as others files
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/apache/incubator-hugegraph-ai/actions/runs/13693587346/job/38291894859?pr=192
And could check the CI status here (U could submit a PR in your own repo, select the upstream branch like
yanchaomei:mainto test it separately)Also better not use
main/masteras your default branch, keep it clean & it could sync the code with upstreameasily(one-click), if u want to modify some code u could checkout a new branch from
mainlikedev-xx(This can avoid many potential conflicts and inconsistencies in the future, and also maintain clarity in using Git)