Files
hermes-agent/tools/retrieval/__init__.py
Alexander Whitestone 4b8b14dfa7
Some checks failed
Contributor Attribution Check / check-attribution (pull_request) Failing after 41s
Docker Build and Publish / build-and-push (pull_request) Has been skipped
Nix / nix (ubuntu-latest) (pull_request) Failing after 6s
Docs Site Checks / docs-site-checks (pull_request) Failing after 6m44s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 30s
Tests / e2e (pull_request) Successful in 4m19s
Tests / test (pull_request) Failing after 35m31s
Nix / nix (macos-latest) (pull_request) Has been cancelled
feat: hybrid search router — Qdrant + FTS5 + HRR (closes #671)
Implements hybrid search combining three backends:
- FTS5: keyword/exact search (existing SessionDB)
- Qdrant: semantic vector search (graceful degradation)
- HRR: compositional/contradiction detection (pure numpy)

Query Router: auto-detects query type (semantic/keyword/compositional/
multi-modal) and routes to optimal backends with per-type weights.

Result Merger: Reciprocal Rank Fusion with consensus boost for
multi-backend matches.

9 files, 1272 insertions. 32 tests passing.
docs/hybrid-search.md for architecture and usage.
2026-04-14 19:07:06 -04:00

2 lines
82 B
Python

"""Retrieval package — hybrid search router combining Qdrant, FTS5, and HRR."""