Commit Graph

3 Commits

Author SHA1 Message Date
Mai Development
cc24b54b7c feat(04-06): implement store_embeddings method in VectorStore
- Added store_embeddings method for batch embedding storage
- Supports transactional batch operations with error handling
- Validates embedding dimensions before storage
- Fixed schema compatibility with sqlite-vec extension using separate metadata tables
- Handles partial failures gracefully and reports success/failure status
- Integrates with existing VectorStore patterns and error handling
- Fixed row handling issues in keyword search methods
2026-01-28 13:28:45 -05:00
Mai Development
0bf62661b5 feat(04-06): implement search_by_keyword method in VectorStore
- Added search_by_keyword method for keyword-based search functionality
- Supports FTS (Full-Text Search) when available, falls back to LIKE queries
- Includes helper methods _check_fts_available, _search_with_fts, _search_with_like
- Fixed schema to separate vector and metadata tables for sqlite-vec compatibility
- Returns properly formatted results compatible with SemanticSearch.hybrid_search
- Handles multiple keywords with AND/OR logic and relevance scoring
2026-01-28 13:20:54 -05:00
Mai Development
dd4715643c feat(04-02): implement context-aware and timeline search capabilities
- Completed Task 2: Context-aware and timeline search
- ContextAwareSearch class with topic classification and result prioritization
- TimelineSearch class with date-range filtering and temporal proximity
- Enhanced MemoryManager with unified search interface
- Supports semantic, keyword, context-aware, timeline, and hybrid search
- Added search result dataclasses with relevance scoring
- Integrated all search strategies into MemoryManager.search() method

All search modes operational:
- Semantic search with sentence-transformers embeddings
- Context-aware search with topic-based prioritization
- Timeline search with date filtering and recency weighting
- Hybrid search combining multiple strategies

Search results include conversation context and relevance scoring as required.
2026-01-27 23:25:04 -05:00