ragzilla-embedding-0.2.0 has been yanked.
ragzilla-embedding
A Rust library for creating text embeddings using the Gemini API.
Features
- Generate text embeddings using Google's Gemini API
- Simple async API that returns embedding vectors
Installation
Add the following to your Cargo.toml
file:
[]
= "0.1.0"
Usage
use create_embedding;
async
API Reference
create_embedding
pub async
Generates an embedding vector for the provided text using the Gemini API.
text
: The text to create an embedding forapi_key
: Your Gemini API key
Returns a Result
containing a vector of floating-point values representing the embedding.
License
MIT License