ReMe/reme2/schema/file_metadata.py
jinli.yl 701669310c
Some checks are pending
Pre-commit / run (ubuntu-latest) (push) Waiting to run
refactor(file_store): simplify file metadata schema and remove unused fields
- Removed hash, size, content, and chunk_count fields from FileMetadata model
- Updated chroma and local file stores to remove excluded fields from model dump
- Removed hash calculation and content storage from default file parser
- Removed chunk count tracking from file parsing logic
- Simplified FileMetadata schema to only include essential fields
- Added new SQLite file store implementation with vector and full-text search
- Added memory search step for semantic search functionality
2026-04-23 19:25:55 +08:00

9 lines
257 B
Python

from pydantic import BaseModel, Field
class FileMetadata(BaseModel):
file: str = Field(...)
path: str = Field(...)
st_mtime: float = Field(...)
link: list[str] = Field(default_factory=list)
metadata: dict = Field(default_factory=dict)