Privacy choices: we'd like to measure visits anonymously (our own cookie-free counter plus Google Analytics, which sets its own cookies; no ads) and load Beehiiv's newsletter sign-up, which may set its own cookies. Nothing optional runs until you choose. Privacy policy

AgentScout / frameworks / Langchain.rb
frameworksOpen sourceAdded Oct 18, 2026

Langchain.rb logoLangchain.rb

No ratings yet★ Rate this tool

Langchain.rb is an MIT-licensed Ruby gem for building LLM-powered applications: a unified interface across providers such as OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral and Ollama, plus prompt management, output parsers, retrieval-augmented generation over vector stores, tool-using Assistants and evaluations. A companion langchainrb_rails gem adds deep Rails integration.

Updated

✨ Try AgentScout's free AI image generator →

Good for: building AI agents, evaluating agents

Use cases

Get featured

About Langchain.rb

Langchain.rb is listed in our frameworks category and is aimed at builders. Langchain.rb is an MIT-licensed Ruby gem for building LLM-powered applications: a unified interface across providers such as OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral and Ollama, plus prompt management, output parsers, retrieval-augmented generation over vector stores, tool-using Assistants and evaluations. A companion langchainrb_rails gem adds deep Rails integration. Pricing, as the maker states it: Open source. Maturity: Active. We last checked the official link on 2026-12-01.

What is Langchain.rb?

Langchain.rb brings LLM application building to Ruby. Its Langchain::LLM module gives one interface for embeddings, completions and chat across Anthropic, AWS Bedrock, Azure OpenAI, Cohere, Google Gemini and Vertex AI, Hugging Face, Mistral, Ollama, OpenAI and Replicate, so you can switch providers without rewriting code.

On top it adds prompt management, output parsers, RAG over many vector stores, Assistants with tool calling and built-in evaluations. A companion langchainrb_rails gem adds deep Rails integration. Installed with bundle add langchainrb; MIT-licensed.

Sources: the official README and our directory listing, checked 2026-10-31. Official site: rubydoc.info/gems/langchainrb.

Who is Langchain.rb for?

Ruby and Rails developers adding LLM features, RAG or assistants to their apps.

Langchain.rb at a glance

Key features

  • Unified API across a dozen LLM providers
  • RAG with vector search
  • Assistants with tool calling
  • Prompt templates and output parsers
  • Rails integration gem

Langchain.rb FAQ

What is Langchain.rb?

Langchain.rb brings LLM application building to Ruby. Its Langchain::LLM module gives one interface for embeddings, completions and chat across Anthropic, AWS Bedrock, Azure OpenAI, Cohere, Google Gemini and Vertex AI, Hugging Face, Mistral, Ollama, OpenAI and Replicate, so you can switch providers without rewriting code.

Who is Langchain.rb for?

Ruby and Rails developers adding LLM features, RAG or assistants to their apps.

Is Langchain.rb free?

Langchain.rb's pricing, as the maker states it: Open source. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.

Is Langchain.rb open source?

Yes. Langchain.rb is released under MIT, according to its GitHub repository.

Is there Rails support?

Yes, through the companion langchainrb_rails gem.

What are alternatives to Langchain.rb?

Similar tools include Pydantic AI, AgentScope, smolagents, Agents CLI, Dapr and MCP-Nest.

Langchain.rb ratings and reviews

No ratings yet. Be the first to review Langchain.rb.

Be the first to rate Langchain.rb: tap 1 to 5 stars below. A written review is optional.

Your rating of Langchain.rb

Langchain.rb alternatives

Other frameworks tools in our directory. See all frameworks tools →