Incremental engine for long horizon agents π Star if you like it!
Rust agentic-data-frameworkaiai-agentschange-data-capturecodebase-intelligencecontext-engineeringdata-engineeringdata-indexingdata-processingetlhelp-wantedindexingknowledge-graphllmlong-horizon-agentpythonragreal-timerustsemantic-search
Image search (CLIP + Qdrant, Rust)
Rust port of the Python image_search example. Embeds
images with the CLIP ViT-B/32 vision tower and indexes them in Qdrant;
queries embed text with the matching CLIP text tower (same 512-dim space), so
you can search images by natural language.
Both embedders run locally via fastembed
(ONNX, no Python) β the vision tower through cocoindex::ops::image::ImageEmbedder
and the text tower through cocoindex::ops::sentence_transformers.
Prerequisites
- A running Qdrant (gRPC on
:6334):
Override withdocker run -p 6333:6333 -p 6334:6334 qdrant/qdrantQDRANT_URL(defaulthttp://localhost:6334). protoconPATH(theqdrant-clientcrate compiles protobufs).- Some images in
img/(.jpg/.jpeg/.png/.webp/.gif/.bmp). The CLIP ONNX models are downloaded automatically on first run.
Run
# Index every image under img/ (or a directory you pass).
cargo run -- index # defaults to ./img
cargo run -- index /path/to/images
# Search by text β CLIP text vector against indexed image vectors.
cargo run -- query "a dog on a beach"
Re-running index is incremental: unchanged images are memo-skipped and removed
images are deleted from the collection.