Memo::Providers::Voyage
Inherits Memo::Providers::Base < Reference < Object
Voyage AI embedding provider
Generates embeddings using Voyage AI's embeddings API. Supports voyage-3, voyage-3-lite, voyage-code-3, and domain-specific models.
Constants
DEFAULT_BASE_URL = "https://api.voyageai.com/v1"
Constructors
Instance methods
api_key
Sourcebase_url
SourceEmbed a single text
Returns tuple of (embedding vector, token count) input_type: "query" or "document" (used by Voyage AI for optimized embeddings)
Embed multiple texts in a batch
Returns EmbedResult with embeddings and token counts input_type: "query" or "document" (used by Voyage AI for optimized embeddings)
model
Source