feat: Add health monitoring and fallback system#232
Open
esafwan wants to merge 2 commits into
Open
Conversation
- PRD: Programmable Memory & Learning Layer - DocType designs: Memory Record, Policy, Profile - Tech specs: Capture/Retrieval, Storage Architecture - Profiles: Travel Planning, Programming, Documentation - Implementation plan and project tracking
…r-database support - Add BackendHealthMonitor with 5-minute TTL caching - Add FallbackRetriever with automatic backend failover - Add scheduled job definition for periodic health checks (every 5 minutes) - Add health_check, supports_filters, supports_hybrid_search methods to sqlite_fts backend - Update knowledge search tool to use FallbackRetriever Files added/modified: - huf/ai/knowledge/health_monitor.py - huf/ai/knowledge/fallback_retriever.py - huf/huf/scheduled_job_type/health_check_backends/health_check_backends.json - huf/ai/knowledge/tool.py - huf/ai/knowledge/backends/sqlite_fts.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements health monitoring and automatic fallback system for vector backends.
Features
Safety
Files
Related
Ensures reliability when using external vector databases.