Raif (Ruby AI Framework) is a Rails engine that helps you add AI-powered features to your Rails apps, such as tasks, conversations, and agents. It supports for multiple LLM providers including OpenAI, Anthropic Claude, AWS Bedrock, and OpenRouter.
Raif is built by Cultivate Labs and is used to power Hinsley, an AI-powered research & analysis platform.
- Setup
- Chatting with the LLM
- Tasks
- Conversations
- Agents
- Model Tools
- Evals
- Images/Files/PDF's
- Embedding Models
- Web Admin
- Customization
- Testing
- Demo App
- Contributing
- License
View the setup guide.
View the chatting with the LLM docs.
We welcome contributions to Raif! Please see our Contributing Guide for details.
The gem is available as open source under the terms of the MIT License.
