You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Knowledge beta improvements phase 2: Refactor async_client and add support for BM25 (#2608)
* [feat] Adds support to embedding-type
- Remove unused BM25TextEmbedder from embedder factory
- Replace with MockTextEmbedder for Fast embedding type
- Remove bm25.rs file and related imports/exports
- Fix BM25Context and SemanticContext to save data after adding points
- Fix BM25 data filename from bm25_data.json to data.bm25.json
- Add base_dir storage to ContextManager for proper path resolution
- Major refactoring to async context management with background operations
- Adds separate optimized index for bm25
- Fix all clippy warnings and remove dead code
BM25 search now works correctly with persistent contexts.
* fix: Update cancel_most_recent_operation to use OperationManager
- Fix cancel_most_recent_operation to delegate to OperationManager instead of accessing active_operations directly
- Add missing cancel_most_recent_operation method to OperationManager
- Ensures proper separation of concerns in the refactored architecture
* fix: Remove BM25 from benchmark tests
- Remove BM25TextEmbedder references from benchmark_test.rs
- Remove benchmark_bm25_model function
- Keep only Candle model benchmarks
- Fixes compilation error after BM25TextEmbedder removal
* docs: Update semantic-search-client README for index types
- Update description to mention BM25 and vector embeddings
- Add Multiple Index Types feature
- Update Embeddings section to Index Types section
- Remove ONNX references (no longer supported)
- Reflect Fast (BM25) vs Best (Semantic) terminology
- Update section headers for consistency
* fix: remove auto-save from context add_data_points methods
- Remove automatic save() calls from add_data_points in both semantic_context.rs and bm25_context.rs
- Add explicit save() calls in context_creator.rs after data addition is complete
- Improves performance by avoiding multiple disk writes during batch operations
- Addresses PR #2608 feedback about inefficient disk I/O on each context addition
* fix: resolve compilation error and operation cancel warnings
- Fix return type mismatch in knowledge_store.rs cancel_operation method
- Change cancel_most_recent_operation to return Ok instead of Err when no operations exist
- Eliminates 'Failed to cancel operations' warnings when no operations are active
* fix: improve error handling and code cleanup
- Update error handling in knowledge_store.rs
- Clean up context_creator.rs formatting and comments
---------
Co-authored-by: Kenneth S. <[email protected]>
0 commit comments