Hybrid Search Memory
Keyword (BM25) + vector (cosine similarity) search over memory files and workspace documents.
Usage
# Search (hybrid mode by default — falls back to keyword-only if Ollama is down)
uv run python skills/hybrid-memory/scripts/hybrid_cli.py search "query text"
uv run python skills/hybrid-memory/scripts/hybrid_cli.py search "query" --mode keyword
uv run python skills/hybrid-memory/scripts/hybrid_cli.py search "query" --mode vector
# Ingest all memory files + TOOLS.md/MEMORY.md/AGENTS.md
uv run python skills/hybrid-memory/scripts/hybrid_cli.py ingest-memory
# Ingest a directory
uv run python skills/hybrid-memory/scripts/hybrid_cli.py ingest --path memory/ --pattern "*.md"
uv run python skills/hybrid-memory/scripts/hybrid_cli.py ingest --path memory/ --incremental
# Store a single document
uv run python skills/hybrid-memory/scripts/hybrid_cli.py store --doc-id ID --text "content"
uv run python skills/hybrid-memory/scripts/hybrid_cli.py store --doc-id ID --file path/to/file.md
# Other
uv run python skills/hybrid-memory/scripts/hybrid_cli.py delete --doc-id ID
uv run python skills/hybrid-memory/scripts/hybrid_cli.py reindex
uv run python skills/hybrid-memory/scripts/hybrid_cli.py stats
When to Use
- Hybrid search: exact keyword matches + semantic similarity. Best for credential lookups, config values, specific terms.
- Tiered memory: LLM-powered tree navigation. Best for broad semantic questions, "what happened last week".
Use hybrid search first (fast, precise), fall back to tiered memory if results are insufficient.
Architecture
- Chunker: Markdown-aware splitting with heading context, configurable size/overlap
- FTS5: SQLite full-text search with BM25 ranking
- Vector: Ollama
nomic-embed-textembeddings + cosine similarity - Merger: Weighted combination (keyword=0.3, vector=0.7), normalization, deduplication
Gracefully degrades to keyword-only when Ollama is unavailable.
Config
Edit config.json or pass CLI flags. DB stored in data/hybrid_search.db.
Metadata
Release files for hybrid-memory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hybrid_memory-0.1.0.tar.gz | 14.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hybrid_memory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.1 kB
Release files / hybrid_memory-0.1.0.tar.gz
| Download URL | hybrid_memory-0.1.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
051922a749f0702a3e567217fb1a462a768fa0d16b60215300f16a413177a882
|
|
BLAKE2b-256 checksum How to use checksums |
6f1f635efebb046b09048821db60796339035f22a65eaf33948111740d00479a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / hybrid_memory-0.1.0-py3-none-any.whl
| Download URL | hybrid_memory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b06b9ee8027afbce839f07bec1cc66e1b0893be804d2f70db71d46b14318a8f
|
|
BLAKE2b-256 checksum How to use checksums |
96ce3b63a0c34d2dc844ac9f8d70ab2f73b6a85e21f903f03b4dc472a927837f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for hybrid-memory 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.