Skip to content

feat: Add BackendFactory and enhanced KnowledgeBackend ABC#231

Open
esafwan wants to merge 2 commits into
developfrom
kimi/vector-store-factory-abc
Open

feat: Add BackendFactory and enhanced KnowledgeBackend ABC#231
esafwan wants to merge 2 commits into
developfrom
kimi/vector-store-factory-abc

Conversation

@esafwan
Copy link
Copy Markdown
Contributor

@esafwan esafwan commented Mar 30, 2026

Summary

Implements BackendFactory pattern and enhances KnowledgeBackend ABC for multi-backend support.

Changes

  • BackendFactory - Registry-based factory with connection pooling and site-aware caching
  • Enhanced ABC - Added health_check(), supports_filters(), supports_hybrid_search() methods
  • Auto-registration - Backends auto-register on module load
  • Updated backends - SQLite backends implement new interface methods

Factory Features

  • Site-scoped instance caching
  • Health check aggregation
  • Cache management utilities

Related

Enables pluggable vector database backends (pgvector, Chroma, Redis, etc.).

esafwan added 2 commits March 28, 2026 11:04
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant