mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-24 00:51:43 +00:00
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
docs: add ReMe2 architecture design documentation - Add comprehensive design document (reme2.md) detailing the three-layer architecture (L1/L2/L3) for the vault system - Document new protocols for folder notes and memory management - Specify interface contracts for memory_* and vault_* tools - Outline implementation phases from current state to target refactor: fix typo in personal retriever class - Correct spelling error: 'retri eved_nodes' -> 'retrieved_nodes' in PersonalRetriever.result assignment chore: update gitignore with vault-related patterns - Add '/vault' to ignore vault directory - Add '/reme-plugin' to ignore plugin files - Add '/reme2/vault' to ignore new vault implementation ```
26 lines
865 B
Python
26 lines
865 B
Python
"""File store module.
|
|
|
|
Unified storage for file metadata (frontmatter + mtime), the wikilink
|
|
graph (edges per path), and chunks (text + embeddings) with vector /
|
|
keyword / hybrid search.
|
|
|
|
The store accepts a `ParsedFile` from the watcher's parsing pass via
|
|
`upsert_parsed(...)`, dispatching meta + edges + chunks into the
|
|
appropriate persistence pipelines.
|
|
|
|
Two backends:
|
|
LocalFileStore — pure-Python with JSONL persistence (default,
|
|
zero deps, fine for small vaults).
|
|
SqliteFileStore — SQLite + FTS5 + sqlite-vec for keyword/vector
|
|
at scale; meta + edges live in relational tables.
|
|
"""
|
|
|
|
from .base_file_store import BaseFileStore
|
|
from .local_file_store import LocalFileStore
|
|
from .sqlite_file_store import SqliteFileStore
|
|
|
|
__all__ = [
|
|
"BaseFileStore",
|
|
"LocalFileStore",
|
|
"SqliteFileStore",
|
|
]
|