Chroma Rust Library
This is a Rust library for interacting with the ChromaDB vector database. It's intended for learning and educational purposes. For a more advanced library, please check out chromadb.
1. Running the Backend
Here's how to run the ChromaDB backend using Docker:
default configuration:
with auth using token & persistant storage:
2. Default Client
This asynchronous example uses Tokio crate.
Here's a basic example of how to create a default client:
use ;
let client = new;
let hb = client.heartbeat.await?;
println!;
3. Advanced Client
This asynchronous example uses Tokio crate.
For more advanced usage, you can create a client with custom parameters:
let mut hmap = new;
hmap.insert;
let client = new;
4. Create and Delete Collections
Here's how to create and delete a collection:
let new_collection = client
.create_collection
.await?;
println!;
let _ = client.delete_collection.await?;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.