| Crates.io | seedframe_voyageai |
| lib.rs | seedframe_voyageai |
| version | 0.1.1 |
| created_at | 2025-04-22 12:09:30.046647+00 |
| updated_at | 2025-04-30 11:03:24.700274+00 |
| description | Voyage AI integration crate for SeedFrame |
| homepage | |
| repository | https://github.com/Shifta-Robel/SeedFrame/tree/main/integrations/embedding_providers/seedframe_voyageai |
| max_upload_size | |
| id | 1643941 |
| size | 7,445 |
Voyage AI integration crate for Seedframe, provides struct VoyageAIEmbedding which implements the trait Seedframe::embeddings::EmbeddingModel
Intended for use with the #[embedder] macro
Accepts the following configuration parameters, passed as json to the config attribute in the embedder proc-macro
- model: optional String - identifier for the model to use
- api_key_var: optional String - Environment variable name containing the API key
- api_url: String - Custom API endpoint URL
Usage with the embedder macro:
use seedframe_voyageai::VoyageAIEmbedding;
#[embedder(
provider = "VoyageAIEmbedding",
config = r#"{
"model": "voyage-3-lite",
"api_key_var": "ENV_VAR",
"api_url": "https://api.voyageai.com/v1/embeddings"
}"#
)]
struct VoyageEmbedder;