Skip to main content

Hybrid retrieval-augmented generation — graph × vectorstore → enriched context. Placeholder release.

Project description

freecomai-hybrid-rag

Hybrid retrieval-augmented generation — graph × vectorstore → enriched context.

PyPI version License: Apache 2.0 Python

Status

🚧 Placeholder release — v0.0.0. Full API lands in v0.1.0 (planned Q2-Q3 2026).

This package reserves the name freecomai-hybrid-rag on PyPI. Do not install for production yet.

What it will do

A domain-agnostic Python library that takes two inputs — a knowledge graph (NetworkX) and a vectorstore (ChromaDB / Qdrant / Pinecone / ...) — and returns enriched search results that combine:

  • Dense retrieval (semantic similarity top-K chunks)
  • Graph context (entities mentioned in those chunks + their 1-hop neighbors)
  • Cluster summary (dominant community the result falls into, with LLM-generated description)
  • Related bugs / decisions / events from the same cluster

One function call → not just "here are 5 similar chunks", but "here is the full contextual map around your query".

Why

Vector RAG alone misses structural relationships. GraphRAG (Microsoft pattern, 2024) adds Leiden clustering + community reports but loses fast semantic retrieval. HybridRAG (arXiv 2408.04948, NVIDIA + BlackRock, 2024) fuses both — proven superior on financial QA tasks.

This library makes that pattern plug-and-play for any domain: your graph, your vectorstore, our enrichment logic.

Planned API (v0.1.0)

from hybrid_rag import enriched_search, EnrichedResult

result: EnrichedResult = enriched_search(
    graph=my_networkx_graph,
    vectorstore=my_chroma_client,
    query="how did we decide on architecture X?",
    k=5,
)

print(result.dominant_cluster.summary)
for chunk in result.chunks:
    print(chunk.text, chunk.score)
for bug in result.related_bugs:
    print(bug.name, bug.status)

Roadmap

  • v0.0.0 (placeholder) — name reservation
  • v0.1.0 (Q2-Q3 2026) — core enriched_search() function
  • v0.2.0 — pluggable cluster summarizers (Claude / GPT / local LLMs)
  • v0.3.0 — optional reranker integration (bge-reranker-v2-m3, Cohere, Jina)
  • v1.0.0 — stable API + comprehensive docs

Author

Built by FreeComAI, Astana, Kazakhstan. Founder: Bolatbek Barmagambetov (barmagambetov.b@gmail.com).

License

Apache 2.0 — see LICENSE.

Project details


Download files

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

Source Distribution

freecomai_hybrid_rag-0.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

freecomai_hybrid_rag-0.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file freecomai_hybrid_rag-0.0.0.tar.gz.

File metadata

  • Download URL: freecomai_hybrid_rag-0.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for freecomai_hybrid_rag-0.0.0.tar.gz
Algorithm Hash digest
SHA256 78c684f24947e77aacfebc44a00393bae5d46d7383b278c469d61021546f4dde
MD5 9d6e3be7e67ad78b88da40d4eb01262d
BLAKE2b-256 d985d60d44cd9af900cada10f895dba8776b571339ce5d43f3307b19a4a7c0b7

See more details on using hashes here.

File details

Details for the file freecomai_hybrid_rag-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for freecomai_hybrid_rag-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcbddb3de49a6b028ed05168d4a00811da43c67b6552d03b7f91c5dcd677c950
MD5 26501ce3f9204bd03274798e03ce2594
BLAKE2b-256 ce431fa856fa334b719cbe7a9b91b870a40902dbef99bac7076d0c3018d960f6

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