# patterns-ai-core/langchainrb

Build LLM-powered applications in Ruby

Repository: https://github.com/patterns-ai-core/langchainrb
Canonical: https://ross.abutalabs.com/products/langchainrb
Homepage: https://rubydoc.info/gems/langchainrb
Language: Ruby
License: MIT
License Family: permissive
Topics: artificial-intelligence, machine-learning, ml, rubyml, vector-search, agents, ai-agents
Last push: 2026-08-26T15:18:50+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 88
- inputs: {"age_days": 1233, "days_push": 7, "days_rel": 489, "gap_med": 8.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1991, forks 264 (observed 2026-08-28T04:06:03.119118+00:00)

## What it is
Langchain.rb is a Ruby library for building LLM-powered applications, providing a unified interface to many LLM providers (OpenAI, Anthropic, Gemini, Ollama, etc.) for embeddings, completions, and chat. It also supports prompt management, output parsers, RAG/vector search, assistants, and LLM evaluations.

## Use cases
- build llm apps in ruby
- add rag and vector search to a ruby app
- create chatbot assistants in ruby
- switch between llm providers without changing code
- generate embeddings for text in ruby
- run llm evals
- integrate llms with rails

## When to choose
- your stack is Ruby or Rails and you need LLM integration
- you want one API across multiple LLM providers
- you need RAG, assistants, or prompt management in Ruby

## When to avoid
- you work in Python/JS where the main LangChain ecosystem is richer
- you need features not covered by the gem's modules
- you want a framework-agnostic raw API client only

## Facets
- artifact type: library
- maturity: active
- function: llm-inference, rag, agent-framework, chatbot, prompt-engineering, sdk
- domain: large-language-models, artificial-intelligence, chatbots, developer-tools
- platform: ruby, jvm
- tags: langchain, embeddings, vector-search, llm-providers, rails, assistants, evals, ai-agents, retrieval-augmented-generation

## Member repositories
- patterns-ai-core/langchainrb (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.119118+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:42.843453+00:00, confidence not recorded.
  - readme: https://github.com/patterns-ai-core/langchainrb (fetched 2026-08-28T04:06:03.119118+00:00, sha d089accff115)
  - homepage: https://rubydoc.info/gems/langchainrb (fetched 2026-08-29T10:42:29.650794+00:00, sha c7981a7b619e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
