SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Ruby Machine Learning Projects
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
meme-search
The open source Meme Search Engine and Finder. Free and built to self-host locally with Python, Ruby, and Docker.
-
-
Project mention: Building an AI agent inside a 7-year-old Rails monolith | news.ycombinator.com | 2025-12-26
Thanks for sharing your experience! I know there's many of us out there dabbling with LLMs and some solid businesess built on Ruby, lurking in the background without publishing much.
Your single-tool approach is a solid starting point. As it grows, you might hit context window limits and find the prompt getting unwieldy. Things like why is this prompt choking on 1.5MB of JSON from this other API?
When you look at systems like Codex CLI, they run at least four separate LLM subsystems: (1) the main agent prompt, (2) a summarizer model that watches the reasoning trace and produces user-facing updates like "Searching for test files...", (3) compaction and (4) a reviewer agent. Each one only sees the context it needs. Like a function with their inputs and outputs. Total tokens stay similar, but signal density per prompt goes up.
DSPy.rb[0] enables this pattern in Ruby: define typed Signatures for each concern, compose them as Modules/Prompting Techniques (simple predictor, CoT, ReAct, CodeAct, your own, ...), and let each maintain its own memory scope. Three articles that show this:
- "Ephemeral Memory Chat"[1] — the Two-Struct pattern (rich storage vs. lean prompt context) plus cost-based routing between cheap and expensive models.
- "Evaluator Loops"[2] — decompose generation from evaluation: a cheap model drafts, a smarter model critiques, each with its own focused signature.
- "Workflow Router"[3] — route requests to the right model based on complexity, only escalate to expensive LLMs when needed.
And since you're already using RubyLLM, the dspy-ruby_llm adapter lets you keep your provider setup while gaining the decomposition benefits.
Thanks for coming to my TED talk. Let me know if you need someone to bounce ideas off.
[0] https://github.com/vicentereig/dspy.rb
-
wp2txt
A command-line tool to extract plain text from Wikipedia dumps with category and section filtering
Project mention: Show HN: WP2TXT – Wikipedia dump text extractor with category/section filtering | news.ycombinator.com | 2026-02-20 -
-
-
-
-
gitingest
Gitingest is a command-line tool that fetches files from a GitHub repository and generates a consolidated text prompt for your LLMs. (by davidesantangelo)
-
-
-
-
-
-
-
Ruby Machine Learning discussion
Ruby Machine Learning related posts
-
ruby_llm VS langchainrb - a user suggested alternative
2 projects | 14 May 2025 -
langchainrb VS ruby_llm - a user suggested alternative
2 projects | 14 May 2025 -
Train Your Own LLM: A Deep Dive with Ruby
-
Ruby vs. Python comes down to the for loop (2021)
-
Langchain.rb
-
AnyStyle
-
Un repo con herramientas, documentación y recursos para el manejo de lenguaje natural en Ruby
-
A note from our sponsor - SaaSHub
www.saashub.com | 15 Aug 2026
Index
What are some of the best open-source Machine Learning projects in Ruby? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | machine-learning-with-ruby | 2,215 |
| 2 | langchainrb | 1,990 |
| 3 | anystyle | 1,281 |
| 4 | Awesome NLP with Ruby | 1,076 |
| 5 | Rumale | 914 |
| 6 | AITreasureBox | 852 |
| 7 | tensorflow.rb | 832 |
| 8 | meme-search | 716 |
| 9 | Eps | 692 |
| 10 | dspy.rb | 235 |
| 11 | wp2txt | 195 |
| 12 | XGBoost | 121 |
| 13 | LightGBM | 84 |
| 14 | Scoruby | 70 |
| 15 | weka | 65 |
| 16 | gitingest | 61 |
| 17 | Ruby Linear Regression | 53 |
| 18 | instruct | 49 |
| 19 | ruby-dnn | 46 |
| 20 | kobako | 12 |
| 21 | Ruby Datumbox Wrapper | 10 |
| 22 | poml | 7 |
| 23 | Edits | 3 |