v0.4.6
Reranker optimization and maintenance tools.
Added
- Recent topics in context — system prompt now includes metadata about recent conversations (date, title, message count) for temporal awareness. Configurable via
rag.recent_topics_in_context. - Database Maintenance UI — new inspector
/ui/debug/databasefor database health checks, repair, and splitting large topics. - Cross-User Contamination detection — tools to identify and repair message leakage between users (caused by global auto-increment IDs).
- Topic Splitter — mechanism to break down oversized topics into smaller logical subtopics.
- Max topic size — added
max_merged_size_charsconfig to prevent creating "black hole" topics during consolidation. - Maintenance Prompts — new system prompts for "The Splitter" and updated prompts for "The Merger" (now aware of user profiles).
- Optional excerpts — new
ignore_excerptsconfig to always use full topic content instead of reranker-generated excerpts
Changed
- Session timeout reduced — default inactivity timeout for topic creation changed from 5h to 1h (
rag.chunk_interval) - Split threshold configurable — new
rag.split_threshold_charsconfig option (default 25000 chars) - Splitter keeps message pairs — user question and assistant response are never split into separate topics
- Data Isolation Improvements — refactored message retrieval in RAG service to prefer explicit topic-based lookups over raw ID ranges to reduce leakage risks.
- SQLite Reliability — explicit WAL mode setting via PRAGMA statements to ensure compatibility with modernc driver.
- Excerpts disabled by default —
ignore_excerpts: truesimplifies reranker prompt and improves reliability - Minimal thinking —
thinking_leveldefault changed from "medium" to "minimal" for faster responses - Fewer topics —
max_topicsdefault reduced from 15 to 5 for focused context
Fixed
- Fixed broken "Context" link on Facts page — now links to associated Topic
- Improved contamination detection accuracy in dry-run mode
- Fixed multi-user repair to correctly isolate messages by user
- Overlapping topics now shown as clickable list in Database Maintenance UI