Sha256: 2ff0d6eade8ebdea8715f25cd56440b3e1aa288c56146fcc9b134fd4f9ab25c7
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
# VoyageAI `voyageai` is a ruby client for [VoyageAI](https://www.voyageai.com) ## Installation ```bash gem install voyageai ``` ## Usage ```ruby require 'voyageai' input = [ 'John is a musician.', 'Paul is a plumber.', 'George is a teacher.', 'Ringo is a doctor.', ] voyageai = VoyageAI::Client.new(api_key: 'pa-...') # or configure ENV['VOYAGEAI_API_KEY'] result = voyageai.embed(input) embed.model # "..." embed.usage # "#<VoyageAI::Usage total_tokens=...>" embed.embeddings.each do |embedding| embedding.index # "#<VoyageAI::Embedding index=... embedding=...> end ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voyageai-1.0.1 | README.md |
voyageai-1.0.0 | README.md |