{"repo":"not-pizza/victor","free":true,"listed":false,"github":"https://github.com/not-pizza/victor","clone":"git clone https://github.com/not-pizza/victor.git","description":"Web-optimized vector database (written in Rust).","language":"Rust","stars":262,"topics":["embeddings","indexeddb","pca","vector-database","wasm"],"license":null,"category":"databases-storage","readme_excerpt":"Victor Web-optimized vector database (written in Rust). Features 1. Rust API (using native filesystem, or a transient in-memory filesystem) 2. Web API (Using the Private Origin File System) 3. Very efficient vector storage format 1. For a vector with 1536 dimensions, our representation consumes 1.5 KB, while naively encoding with JSON would consume 20.6 KB. 4. PCA for vector compression when storage space is low JS Example Installation Usage See www/ for a more complete example, including fetching embeddings from OpenAI. Rust Example Installation Usage The Rust API can automatically create embeddings for you with fastembed-rs's default model (currently BAAI/bge-small-en-v1.5). This example is also in the /examples directory. If you've cloned this repository, you can run it with cargo run --example native filesystem . Hacking 1. Victor is written in Rust, and compiled to wasm with wasm-pack. Install wasm pack with cargo install wasm-pack or npm i -g wasm-pack (https://rustwasm.github.io/wasm-pack/installer/) 2. Build Victor with wasm-pack build --target web 3. Set up the example project , which is in www/ . If you use nvm, you can just run cd www/ && nvm use Then, npm i . 4. From www/ , start the example project with npm run start . Architecture Relevant code at src/packed vector.rs . --- Us Sam Hall Andre Popovitch","default_branch":null,"files":null,"tree":[],"storefront":"/r/not-pizza","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/not-pizza/victor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}