2 releases
new 0.1.1 | Apr 30, 2025 |
---|---|
0.1.0 | Apr 22, 2025 |
#4 in #seed-frame
110 downloads per month
7KB
101 lines
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
~9–21MB
~275K SLoC