# index
cargo run --release -- update-db -m /path/to/images
# run search server
cargo run --release -- serve
one endpoint, /search_text
with query string parameters skip
, limit
(for paging, optional, default limit
is 5), and query
query
is an expression that computes an embedding that results will be returned in order of closeness to (by cosine similarity), the syntax allows expressions:
"quoted strings"
, which are embedded with the model's text encoder@"<blake3 hash of image>"
which looks up the embedding for an image in the database- addition and subtraction (
"winter" - "snow"
,@"ab12cd34" - "person"
) mean(<expr>, ...)
normalize(<expr>)
rudimentary search ui at https://github.com/apage43/vdex-ui-electron
model files must be present in clip_models