Skip to main content

ragleap-graph

Knowledge-graph-augmented retrieval for RAG systems — entity extraction, co-occurrence graphs, and graph-based document retrieval via Neo4j.

pip install ragleap-graph

Quickstart

from ragleap_graph import GraphConfig, GraphIndex

graph = GraphIndex(config=GraphConfig(
    uri="bolt://localhost:7687",
    user="neo4j",
    password="...",
))

graph.upsert_document(
    document_id="doc-1",
    title="Q3 Report",
    chunks=[{"text": "Acme Corp reported strong Q3 revenue growth."}],
)

docs = graph.find_documents_by_entities(["Acme Corp"])
related = graph.search_related_entities(["Acme Corp"], max_depth=2)

Status

Early alpha (v0.1.0). Ported from a real production GraphService, adapted for standalone open-source use — see HANDOFF.md for the full design history.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ragleap_graph-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ragleap_graph-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ragleap_graph-0.1.0.tar.gz.

File metadata

  • Download URL: ragleap_graph-0.1.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ragleap_graph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06a6c3651d31f8a3d1d248fbb66835f03d35ba76b184ec70f12096d1da380a4f
MD5 16e5e0d5aa3afced1db1b8012cde9fc8
BLAKE2b-256 018fd9b28fd84fe9e7934367a3acc38835570482762598d0031e97d982953fbf

See more details on using hashes here.

File details

Details for the file ragleap_graph-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ragleap_graph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ragleap_graph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8119f0e7dd98a28f6c0d68788305fc547b1de66994f05564c8ff38481bc3155
MD5 a7909a559ff58242c274b30f7abb3f68
BLAKE2b-256 eaae31217b98798f6f6b4a2d903555c3ee91c59c83272dcfe20645a33975ce68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page