|
Architecture fixes batch — NaN validation, ILIKE indexes, prompt cache, N+1 batching
- _vector_to_str: reject NaN/Inf via math.isfinite() to avoid invalid pgvector syntax - memory DDL: add pg_trgm + GIN trigram indexes on category/key/value for fast ILIKE fallback - _build_system_prompt: cache per-profile to avoid rebuilding every iteration - backfill_embeddings: batch UPDATEs via executemany instead of N+1 loop No new Python deps; pg_trgm is a PostgreSQL extension auto-created on startup. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
|---|
|
|
| docs/memory.md |
|---|
| docs/tech_debt_review_2026-04-29.md |
|---|
| navi/core/agent.py |
|---|
| navi/memory/store.py |
|---|