class
Memo::Providers::Voyage
- Memo::Providers::Voyage
- Reference
- Object
Overview
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.
Included Modules
Defined in:
memo/providers/voyage.crConstant Summary
-
DEFAULT_BASE_URL =
"https://api.voyageai.com/v1"
Constructors
Instance Method Summary
- #api_key : String
- #base_url : String
-
#embed_text(text : String) : Tuple(Array(Float64), Int32)
Embed a single text
-
#embed_texts(texts : Array(String)) : EmbedResult
Embed multiple texts in a batch
- #model : String
Instance methods inherited from module Memo::Providers::Base
embed_text(text : String) : Tuple(Array(Float64), Int32)
embed_text,
embed_texts(texts : Array(String)) : EmbedResult
embed_texts
Constructor Detail
Instance Method Detail
def embed_text(text : String) : Tuple(Array(Float64), Int32)
#
Description copied from module Memo::Providers::Base
Embed a single text
Returns tuple of (embedding vector, token count)
def embed_texts(texts : Array(String)) : EmbedResult
#
Description copied from module Memo::Providers::Base
Embed multiple texts in a batch
Returns EmbedResult with embeddings and token counts