ReMe/reme/components
jinliyl eb471d7d94
fix(embedding): reject mismatched embedding dimensions (#330)
* fix(embedding): enforce strict dimension matching for embeddings

- Add _embedding_dim_matches method to validate embedding dimensions
- Reject embeddings with mismatched dimensions instead of padding/truncating
- Drop stale embeddings with wrong dimensions during loading and upsert operations
- Disable embedding store when query dimensions don't match configured dimensions
- Fail health checks when embedding dimensions don't match expected values
- Skip chunks with wrong dimensions during FAISS index rebuild
- Add comprehensive tests for dimension validation behavior

* refactor(file_store): simplify conditional checks in vector search and test assertions

- Combine multiple conditionals into single check for empty FAISS index
- Replace explicit empty list comparison with boolean check for node embedding calls
- Maintain same functional behavior while improving code readability

* fix(embedding): harden dimension validation helpers
2026-07-08 14:23:38 +09:00
..
agent_wrapper refactor(embedding): update embedding model initialization and session storage paths (#329) 2026-07-08 12:30:46 +09:00
as_embedding refactor(embedding): update embedding model initialization and session storage paths (#329) 2026-07-08 12:30:46 +09:00
as_llm init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
client feat(benchmark): add lme benchmark steps (#326) 2026-07-07 18:53:39 +09:00
embedding_store fix(embedding): reject mismatched embedding dimensions (#330) 2026-07-08 14:23:38 +09:00
file_catalog Refactor logging levels and add dream schema definitions (#291) 2026-06-24 16:44:03 +08:00
file_chunker feat(benchmark): add lme benchmark steps (#326) 2026-07-07 18:53:39 +09:00
file_graph feat(benchmark): add lme benchmark steps (#326) 2026-07-07 18:53:39 +09:00
file_store fix(embedding): reject mismatched embedding dimensions (#330) 2026-07-08 14:23:38 +09:00
job init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
keyword_index Update version to 0.4.0.2 and improve tokenizer index handling (#290) 2026-06-24 15:01:07 +08:00
service fix(mcp): resolve circular import issues and update dependencies (#296) 2026-06-26 09:37:08 +08:00
tokenizer Refactor logging levels and add dream schema definitions (#291) 2026-06-24 16:44:03 +08:00
__init__.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
application_context.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
base_component.py docs: rename vault_dir to workspace_dir in documentation and examples (#286) 2026-06-22 16:58:57 +08:00
component_registry.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
prompt_handler.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
runtime_context.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00