8000 GitHub - apage43/vdex
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

apage43/vdex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLIP indexer + server

# 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

Supported models

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0