Raif
Ruby AI Framework
Install / Use
/learn @CultivateLabs/RaifREADME

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 multiple LLM providers including OpenAI, Anthropic Claude, AWS Bedrock, OpenRouter, and Google AI.
Raif is built by Cultivate Labs and is used to power Hinsley, an AI-powered research & analysis platform.
Table of Contents
- 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
Setup
View the setup guide.
Chatting with the LLM
View the chatting with the LLM docs.
Key Raif Concepts
Images/Files/PDF's
Embedding Models
Web Admin
Customization
Testing
Demo App
Contributing
We welcome contributions to Raif! Please see our Contributing Guide for details.
License
The gem is available as open source under the terms of the MIT License.
