v0.0.9
What's Changed
Changed
vectorfield renamed toembedding—FileModel.embedding,FileChunkModel.embedding, andFileVersionModel.embeddingreplace the oldvectorfield. Pydantic'sVectortype still handles serialization under the hood.created_at/updated_atdefault toNone— File models no longer eagerly timestamp at construction time. The backend fills timestamps on write if not set. This makes DataFrame-sourced bulk writes cleaner.- Mount
path→name—add_mount("project", ...)replacesadd_mount("/project", ...). Mount names are simple identifiers (no/allowed).mount.pathis derived internally asf"/{name}".
Added
tokensfield —FileModelandFileChunkModelgain atokens: int = 0field for storing token counts.FileModelBase.create()factory —FileModel.create("a.py", "code", mount="project", embedding=[0.1, ...], tokens=150)builds a fully-populated model with computed hash, size, mime type, line count, and timestamps.write_files()model flow-through — Facade preserves all user-set fields (embedding, tokens, owner_id) through to the backend instead of stripping models down to{path, content}.
Fixed
- Variable shadowing in
_create_engine_mount— Afor name in table_namesloop variable overwrote thenameparameter, causing engine-config mounts to get the wrong name when tables were created.
Full Changelog: v0.0.8...v0.0.9