chroma-hybrid-search
Chroma Hybrid Search Skill
This skill provides local RAG retrieval by combining vector search (semantic) with BM25 keyword search (exact match), followed by Cross-Encoder re-ranking using the BGE-Reranker model. It searches both the hot store (knowledge-base/*.md, experience/*.md) and the cold store (cold-notes/raw.jsonl) — the document set it reads must match what update_db.py indexed, or vectorized cold-store entries would be dropped from results.
Cross-platform command convention — in every command below,
<PY>is the virtual-env Python:
- Windows (PowerShell):
& "$HOME\.deep-memory\.venv\Scripts\python"- Linux / macOS:
~/.deep-memory/.venv/bin/pythonThe venv lives at a fixed absolute path inside the global workspace (
~/.deep-memory/.venv), next to the data — commands work from any project directory; no project-local.venvis assumed. On PowerShell keep the&call operator and$HOME(PowerShell does not expand~in arguments to native commands); in Git Bash on Windows the same venv is~/.deep-memory/.venv/Scripts/python.All
skills/...paths assume the skill pack lives inside your current project (project-local install).Workspace Storage Path Resolution: By default, deep-memory uses the user's global directory
~/.deep-memory(which resolves toC:\Users\<username>\.deep-memoryon Windows) to store all knowledge bases, cold notes, and database files. This unifies memories across all your project workspaces.
- If you want to use a specific directory, set the
DEEP_MEMORY_WORKSPACEenvironment variable (e.g.,DEEP_MEMORY_WORKSPACE="."orDEEP_MEMORY_WORKSPACE="D:\my-memories").- You can also pass
--workspace <path>to any script to override the workspace path for that specific command.