voyage_ai
Use the VoyageAI API to generate vectors from text for embeddings/semantic search.
Installation
-
Add the dependency to your
shard.yml
:dependencies: voyage_ai: github: jgaskins/voyage_ai
-
Run
shards install
Usage
require "voyage_ai"
require "voyage_ai"
voyage = VoyageAI::Client.new
pp voyage.embed [
"Sample text 1",
"Sample text 2",
],
model: "voyage-large-2",
input_type: :document
Contributing
- Fork it (https://github.com/jgaskins/voyage_ai/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Jamie Gaskins - creator and maintainer