fleet-memory/hindsight-api/hindsight_api
Nicolò Boschi 8781c9fbfe
feat: add real-time timing breakdown logging for consolidation (#235)
- Log timing breakdown after each batch (every 50 memories by default)
- Log timing breakdown in progress logs (every 10 memories)
- Shows recall, llm, embedding, db_write times incrementally
- Includes avg time per memory for quick diagnosis
- Helps diagnose performance issues in production without waiting for job completion

Example output (every 10 memories):
[CONSOLIDATION] bank=xyz progress: 10/39303 memories processed | recall=2.09s, llm=11.03s, embedding=0.48s, db_write=0.02s

Example output (per batch):
[CONSOLIDATION] bank=xyz batch 1/50 memories: recall=7.3s, llm=57.5s, embedding=2.0s, db_write=0.09s | avg=1.3s/memory
2026-01-29 17:50:27 +01:00
..
admin feat: new 'worker' service (#176) 2026-01-20 10:17:56 +01:00
alembic fix: misc fixes for observations and mental models (#209) 2026-01-27 15:37:57 +01:00
api fix: /version endpoint return wrong version (#224) 2026-01-29 08:40:01 +01:00
engine feat: add real-time timing breakdown logging for consolidation (#235) 2026-01-29 17:50:27 +01:00
extensions feat: support different default pg schema (#222) 2026-01-28 18:14:44 +01:00
worker fix: multi-tenant schema context for worker task execution (#208) 2026-01-27 12:28:47 +01:00
__init__.py Release v0.4.1 2026-01-29 11:25:28 +01:00
banner.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
config.py feat: consolidation performance benchmark and optimization (#227) 2026-01-29 11:24:15 +01:00
daemon.py fix: hindsight-embed on macos crashes (#228) 2026-01-29 16:57:51 +01:00
main.py fix: hindsight-embed on macos crashes (#228) 2026-01-29 16:57:51 +01:00
mcp_local.py feat(mcp): add timestamp to retain (#190) 2026-01-23 16:00:43 +01:00
mcp_tools.py feat(mcp): add timestamp to retain (#190) 2026-01-23 16:00:43 +01:00
metrics.py feat: add tenant to metrics labels (#151) 2026-01-13 15:31:58 +01:00
migrations.py fix: batch queries on recall (#149) 2026-01-13 13:20:22 +01:00
models.py chore: drop unused access_count column (#178) 2026-01-20 10:36:02 +01:00
pg0.py feat: backup/restore (#110) 2026-01-07 11:29:50 +01:00
server.py Fix: Load extensions in server.py for multi-worker deployments (#155) 2026-01-13 17:55:33 +01:00