You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤺 Battle tested at [💬 Chat with Work](https://chatwithwork.com)
23
21
@@ -27,6 +25,17 @@ Every AI provider comes with its own client library, its own response format, it
27
25
28
26
RubyLLM fixes all that. One beautiful API for everything. One consistent format. Minimal dependencies — just Faraday and Zeitwerk. Because working with AI should be a joy, not a chore.
29
27
28
+
## Features
29
+
30
+
- 💬 **Chat** with OpenAI, Anthropic, Gemini, and DeepSeek models
31
+
- 👁️ **Vision and Audio** understanding
32
+
- 📄 **PDF Analysis** for analyzing documents
33
+
- 🖼️ **Image generation** with DALL-E and other providers
34
+
- 📊 **Embeddings** for vector search and semantic analysis
35
+
- 🔧 **Tools** that let AI use your Ruby code
36
+
- 🚂 **Rails integration** to persist chats and messages with ActiveRecord
37
+
- 🌊 **Streaming** responses with proper Ruby patterns
🤺 Battle tested at [💬 Chat with Work](https://chatwithwork.com)
37
38
38
39
---
39
40
40
-
## Overview
41
+
## The problem with AI libraries
41
42
42
-
RubyLLM provides a beautiful, unified interface to modern AI services, including:
43
+
Every AI provider comes with its own client library, its own response format, its own conventions for streaming, and its own way of handling errors. Want to use multiple providers? Prepare to juggle incompatible APIs and bloated dependencies.
43
44
44
-
- 💬 **Chat** with OpenAI GPT, Anthropic Claude, Google Gemini, and DeepSeek models
45
+
RubyLLM fixes all that. One beautiful API for everything. One consistent format. Minimal dependencies — just Faraday and Zeitwerk. Because working with AI should be a joy, not a chore.
46
+
47
+
## Features
48
+
49
+
- 💬 **Chat** with OpenAI, Anthropic, Gemini, and DeepSeek models
45
50
- 👁️ **Vision and Audio** understanding
46
51
- 📄 **PDF Analysis** for analyzing documents
47
52
- 🖼️ **Image generation** with DALL-E and other providers
@@ -50,6 +55,41 @@ RubyLLM provides a beautiful, unified interface to modern AI services, including
50
55
- 🚂 **Rails integration** to persist chats and messages with ActiveRecord
51
56
- 🌊 **Streaming** responses with proper Ruby patterns
52
57
58
+
## What makes it great
59
+
60
+
```ruby
61
+
# Just ask questions
62
+
chat =RubyLLM.chat
63
+
chat.ask "What's the best way to learn Ruby?"
64
+
65
+
# Analyze images
66
+
chat.ask "What's in this image?", with: { image:"ruby_conf.jpg" }
67
+
68
+
# Analyze audio recordings
69
+
chat.ask "Describe this meeting", with: { audio:"meeting.wav" }
70
+
71
+
# Analyze documents
72
+
chat.ask "Summarize this document", with: { pdf:"contract.pdf" }
73
+
74
+
# Generate images
75
+
RubyLLM.paint "a sunset over mountains in watercolor style"
76
+
77
+
# Create vector embeddings
78
+
RubyLLM.embed "Ruby is elegant and expressive"
79
+
80
+
# Let AI use your code
81
+
classCalculator < RubyLLM::Tool
82
+
description "Performs calculations"
83
+
param :expression, type::string, desc:"Math expression to evaluate"
0 commit comments