RubyFlow The Ruby and Rails community linklog


The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Using Boxcars (Ruby Langchain alternative) to query a Rails DB with natural language

You may have heard of Langchain, the Python library for creating LLM-powered apps with nearly 35k GitHub stars. Despite the large following, Langchain can be difficult to use when you want to go deeper than “hello world” tutorials. This experience led me to Boxcars, a Langchain-inspired Ruby gem but with fewer abstractions.

In this post I show how to use Boxcars to query your Rails DB with natural language and look at how Boxcars does this under-the-hood.


This is amazing, well done Derek! 🙌

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in