Rails AI Chat is an open-source ChatGPT clone built with Ruby on Rails. It's designed to be a starting point for developers who want to explore AI integration in Rails applications, or who need a solid foundation to kick off their own AI-powered projects.
This project demonstrates how to build a modern, streaming AI chat interface using Rails 8, Hotwire, and the ruby_llm gem. It supports multiple LLM providers (Gemini, OpenAI, Mistral) and features real-time streaming responses via Server-Sent Events.
The source code is available on GitHub. Feel free to fork it, learn from it, or use it as a starting point for your own project.
Built by Markos Fragkakis.