mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
A source declares a scope (user, agent or channel), a home-relative index path and a byte cap. The loader reads the indexes that apply to a chat and returns one bounded block under a fixed header, plus a key that changes with it. Details of a topic are read next to the index; the path is built from the registry and the chat, so the model can only name a topic. The package only reads. A Writer interface lets a later change plug in the save path, and CheckIndex and CheckProfile return the current entries when a write would pass a cap, so the model merges them. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>