Thanks to visit codestin.com
Credit goes to lib.rs

2 releases

0.1.1 Apr 30, 2025
0.1.0 Apr 22, 2025

#4 in #seedframe

Codestin Search App

58 downloads per month

MIT license

140KB
3K SLoC

Seedframe VoyageAI

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;

Dependencies

~13–30MB
~300K SLoC