raif  by CultivateLabs

Ruby AI Framework for Rails apps

Created 6 months ago
280 stars

Top 93.0% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Raif is a Ruby on Rails engine designed to integrate AI-powered features like conversational agents and task execution into existing Rails applications. It targets Rails developers seeking to leverage large language models (LLMs) from various providers, simplifying the addition of advanced AI capabilities to their platforms.

How It Works

Raif acts as a Rails engine, providing a structured framework for interacting with multiple LLM providers. It abstracts away the complexities of API calls and response parsing, allowing developers to define and manage AI "Tasks," "Conversations," and "Agents" within their Rails application's context. This approach promotes modularity and reusability of AI components.

Quick Start & Requirements

  • Install: Add gem 'raif' to your Gemfile and run bundle install.
  • Prerequisites: Ruby on Rails, LLM provider API keys (e.g., OpenAI, Anthropic Claude, AWS Bedrock, OpenRouter).
  • Setup: Refer to the setup guide.

Highlighted Details

  • Supports multiple LLM providers: OpenAI, Anthropic Claude, AWS Bedrock, OpenRouter.
  • Enables creation of AI Agents, conversational interfaces, and task automation.
  • Includes features for handling images, files, PDFs, and embedding models.
  • Provides a web admin interface for management and customization.

Maintenance & Community

Raif is developed by Cultivate Labs and powers their ARC platform. Contribution guidelines are available.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source applications.

Limitations & Caveats

The framework is primarily focused on the Rails ecosystem. Advanced features like image/file handling and embedding models may require additional setup or specific LLM provider support.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
23
Issues (30d)
0
Star History
20 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
15 more.

semantic-kernel by microsoft

0.3%
26k
SDK for building intelligent AI agents and multi-agent systems
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.