mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-30 01:52:29 +00:00
* feat(file_store): add FAISS-backed local file store implementation - Introduce FaissLocalFileStore class with vector search capabilities using FAISS IndexFlatIP - Implement FAISS index persistence with binary format and JSON id-map sidecar - Add automatic index rebuilding when sidecar files are missing or corrupted - Support tombstone mechanism for efficient deletion and compaction - Register 'faiss' component type in the registry system - Add faiss-cpu dependency requirement to pyproject.toml - Update configuration schema to use simplified parameter structure - Enhance search step to support parameter override from runtime context - Add comprehensive unit tests for FAISS store functionality - Implement fallback to parent methods for basic CRUD operations * refactor(search): simplify parameter retrieval logic - Removed _param method that checked context and kwargs - Directly use self.kwargs.get for all parameter retrievals - Maintained same default values for vector_weight, candidate_multiplier, expand_links, and max_links_per_direction - Reduced code complexity by eliminating redundant context checking logic
16 lines
404 B
Python
16 lines
404 B
Python
"""File store module.
|
|
|
|
In-memory + JSONL backend for the (file → chunks) graph. Subclass
|
|
`BaseFileStore` to add other backends; only `LocalFileStore` is
|
|
shipped today.
|
|
"""
|
|
|
|
from .base_file_store import BaseFileStore
|
|
from .faiss_local_file_store import FaissLocalFileStore
|
|
from .local_file_store import LocalFileStore
|
|
|
|
__all__ = [
|
|
"BaseFileStore",
|
|
"FaissLocalFileStore",
|
|
"LocalFileStore",
|
|
]
|