ActiveRage
A Rails engine for RAG (Retrieval Augmented Generation) functionality.
Installation
Add this line to your application's Gemfile:
gem 'activerage'
And then execute:
$ bundle install
Usage
Configuration
Create a configuration file at config/active_rage.yml:
development:
embedding_model: "text-embedding-3-small"
search_limit: 10
vector_dimensions: 1536
Basic Setup
# config/initializers/active_rage.rb
ActiveRage.configure do |config|
config. = "text-embedding-3-small"
config.search_limit = 10
end
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/seuros/active_rage.
License
The gem is available as open source under the terms of the MIT License.