Skip to content

feat: add Neo4j graph backend#61

Merged
gusye1234 merged 8 commits intomainfrom
dev
Sep 25, 2024
Merged

feat: add Neo4j graph backend#61
gusye1234 merged 8 commits intomainfrom
dev

Conversation

@gusye1234
Copy link
Owner

@gusye1234 gusye1234 commented Sep 24, 2024

  • Add Neo4j graph backend
  • Rearrange _storage to folder
  • Some styling for dspy extraction

Known issues for this PR:

  • Didn't find a suitable workflow action for neo4j right now, so the test of neo4j storage is skipped for now.
  • Leiden in neo4j is not stable, even given the same rand seed

@codecov
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 95.93909% with 8 lines in your changes missing coverage. Please review.

Project coverage is 94.13%. Comparing base (b33b2b8) to head (ba04e76).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
nano_graphrag/_utils.py 57.14% 3 Missing ⚠️
nano_graphrag/_storage/kv_json.py 92.00% 2 Missing ⚠️
nano_graphrag/graphrag.py 77.77% 2 Missing ⚠️
nano_graphrag/_storage/vdb_nanovectordb.py 97.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   94.03%   94.13%   +0.10%     
==========================================
  Files          12       16       +4     
  Lines        1290     1330      +40     
==========================================
+ Hits         1213     1252      +39     
- Misses         77       78       +1     
Flag Coverage Δ
94.13% <95.93%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gusye1234 gusye1234 merged commit 9ad71cf into main Sep 25, 2024
Ashes47 added a commit to Ashes47/nano-graphrag that referenced this pull request Sep 26, 2024
feat: add Neo4j graph backend (gusye1234#61)
rangehow pushed a commit to rangehow/nano-graphrag that referenced this pull request Oct 18, 2024
* refactor: make _storage a folder

* feat: add neo4j backend

* fix: remove test coverage for neo4j

* refactor: dspy extraction

* docs: update neo4j

* fix: neo4j return clusters in node_data

* tests: fix test wrong with clusters node data

* improve coverage of llm
AhmaddAbbass pushed a commit to AhmaddAbbass/nano-graphrag that referenced this pull request Nov 14, 2025
* refactor: make _storage a folder

* feat: add neo4j backend

* fix: remove test coverage for neo4j

* refactor: dspy extraction

* docs: update neo4j

* fix: neo4j return clusters in node_data

* tests: fix test wrong with clusters node data

* improve coverage of llm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant