logoalt Hacker News

RubyLLM: A Ruby framework for all major AI providers

143 pointsby doenertoday at 2:41 PM21 commentsview on HN

Comments

swe_dimatoday at 3:11 PM

I found Ruby LLM to be surprisingly good - in terms of usability it's close to Vercel's AI framework.

It tries to strike a balance between working out of the box and being flexible... which has its challenges, still nice overall.

One big real-life pain I experienced is that caches don't always work, e.g. for xAI, since it only supports completions API and thought signatures are returned wrong.

show 1 reply
obiefernandeztoday at 4:22 PM

I have an open source gem called Raix that builds on top of RubyLLM's abstractions and is quite popular. https://github.com/OlympiaAI/raix

Finbarrtoday at 3:46 PM

RubyLLM is very easy to use. Made extensive use of it for a project last year. Drawbacks are it was difficult to instrument for true trace observability and it has a pattern where retries will delete the underlying models so the history you see is clean but not necessarily great for seeing exactly what the sequence of API calls was.

show 1 reply
notpachettoday at 4:26 PM

Why would anyone still build in dynamically typed languages in 2026? Why relinquish the crystal clear signals that static typing is able to provide to the LLM?

show 2 replies
zhismetoday at 3:21 PM

thank you for bringing ruby into AI community and your open-source work. Great language must be explored and get more attention :)

show 1 reply
themcgrufftoday at 4:05 PM

I built a similar Ruby based agent development kit that has a different focus and feature set:

https://github.com/tweibley/legate

mosselmantoday at 3:08 PM

It is quite nice, but not as nice as you'd want. You still have to set platform specifics when running completions when you want to tune things like temperature, effort, max tokens, etc.

show 1 reply
fragkakistoday at 3:34 PM

I have created an open source chatgpt clone with rubyllm, check it out here: https://www.railschat.org/

bitedecktoday at 3:47 PM

Thank you

EGregtoday at 3:40 PM

In case you're using PHP or Node.js, we've made a similar toolkit free and open source on github: https://github.com/Qbix/AI/tree/main/classes/AI

maxothextoday at 4:02 PM

[flagged]

balicientoday at 3:14 PM

[dead]