voyage_ai
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
Repository
voyage_ai
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- 4 months ago
- July 16, 2024
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 12:17:14 GMT
Languages