mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
raea-sys-index gains its CLI (cli.rs, wired as raea index with its usage in the help) and serve.rs: one JSON ask a line on stdin (add, search, similar, status, remove, stop, warm), answered by id on stdout with progress events between. A worker lists and embeds one folder at a time with its own connection and the Neural Engine model; a searcher keeps SigLIP 2's text tower and the rows loaded, growing them from the vectors' tail as batches land and reading them all again after a remove or a changed file. The store drops a changed file's old rows, lists sources with their counts, removes a source with its rows and thumbnails, and never reuses a removed source's id. A run can be stopped mid-way. Measured on 3000 pictures: 3000 embedded at 152 a second with the text tower loading alongside, a search 22-42 ms for the words and about 1 ms over the rows.