mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
IntelligentContext is a message-level compressor that drops low-value messages. This change adds bidirectional TOIN integration: - Dropped messages stored in CCR for potential retrieval - Drops recorded to TOIN for cross-user learning - Retrieval feedback improves future importance scoring When messages are dropped and users retrieve them via CCR, TOIN learns to score those patterns higher next time. This creates a feedback loop that improves drop decisions across all users. Changes: - Add _create_message_signature() for TOIN pattern tracking - Add _get_compression_store() for CCR integration - Add _store_dropped_in_ccr() to store dropped messages - Add _record_drops_to_toin() to record drops for learning - Update marker to include CCR reference when available - Update docs with TOIN + CCR integration section - Update tests to accept both marker formats |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_anchor_selector.py | ||
| test_cache_aligner.py | ||
| test_code_compressor.py | ||
| test_content_router.py | ||
| test_intelligent_context.py | ||
| test_llmlingua_compressor.py | ||
| test_progressive_summarizer.py | ||
| test_rolling_window.py | ||
| test_scoring.py | ||
| test_smart_crusher.py | ||
| test_tool_crusher.py | ||