Skip to content

v0.3.14

Choose a tag to compare

@pluto2060 pluto2060 released this 06 May 08:27

Fix: sqlite-vec missing from declared dependencies

Bug: pip install ctx-retriever left new users with a broken CM hook — chat-memory.py hard-imported sqlite_vec at the top level but sqlite-vec was never declared in pyproject.toml dependencies. Any fresh install would crash with ModuleNotFoundError on every Claude Code prompt.

Fix:

  • Add sqlite-vec>=0.1.0 to pyproject.toml dependencies (auto-installed with pip)
  • Guard import sqlite_vec with try/except + _SQLITE_VEC_OK flag — CM hook degrades to BM25-only on platforms where sqlite-vec fails (old glibc, etc.) instead of crashing

Upgrade: pip install -U ctx-retriever