Skip to content
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

GraphRAG performance enhacements #924

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

rbrugaro
Copy link
Collaborator

Issue: When property graph store gets filled (~12K nodes, 15K relationships) insertion time in dataprep gets slow.
Extraction + insertion starts at ~30 sec and once it gets filled grows to (~12K nodes, 15K relationships) ~800 sec
Perf bottleneck this cypher call in llama-index to do node upsert:
https://github.com/run-llama/llama_index/blob/795bebc2bad31db51b854a5c062bedca42397630/llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/neo4j_property_graph.py#L334

WIP solution:

  1. mode initialization out of detaprep and retrieve function so only performed once
  2. ...

@joshuayao joshuayao linked an issue Dec 12, 2024 that may be closed by this pull request
@eero-t
Copy link
Contributor

eero-t commented Dec 18, 2024

There are lot of dataprep backends and neoj4/llama is not the default one used in docker compose files and Helm charts.

Do the ones used by default have also similar bottleneck?

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.

[Feature] GraphRAG perf improvement
2 participants