#1717th of 34 in RAG and search
langchainrb
Ruby library for LLM calls, RAG, vector search and tool-using assistants
- Stars
- 2k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- May 2025
- Language
- Ruby
1,962 on 27 Apr 20262,006 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Langchain.rb is a Ruby gem that wraps LLM providers behind one interface for embeddings, completions and chat. It adds prompt templates, output parsers, a vector search layer over eight databases, and an Assistant class that runs tools and keeps conversation threads. Rails integration lives in a separate gem, langchainrb_rails.
Who it is for: Ruby developers adding LLM, RAG or assistant features to an app
Strengths
- One LLM interface across 11 providers, including Anthropic, OpenAI, Gemini, Bedrock and Ollama
- Vector search wrappers for Chroma, Hnswlib, Milvus, Pinecone, Pgvector, Qdrant, Weaviate, Elasticsearch
- Loads docx, html, pdf, text, json, jsonl, csv, xlsx, eml and pptx into the index
- Assistant class handles tool calls, image input and streaming for some providers
Weaknesses
- Provider and vector DB client gems are not bundled and must be added by hand
- Streaming is not supported for all LLMs
- Last release was 2025-05-01, well behind recent commits
- Ruby only, and Rails integration needs a separate gem
What it needs
- Ruby, Anthropic, AWS Bedrock, Azure OpenAI, Cohere
- Needs Ruby, LLM provider API key or Ollama, vector database client gem (optional)
- env example file
What changed
- 0.19.5 ↗ (opens in a new tab)Security fix
“[SECURITY] Bump rack from 3.1.10 to 3.1.12 by @dependabot in https://github.com/patterns-ai-core/langchainrb/pull/934”
- 0.19.4 ↗ (opens in a new tab)Security fix
“[SECURITY] Bump googleauth from 1.11.0 to 1.13.1 by @dependabot in https://github.com/patterns-ai-core/langchainrb/pull/911”
- 0.19.3 ↗ (opens in a new tab)Security fix
“[SECURITY] Bump rails-html-sanitizer from 1.6.0 to 1.6.1 by @dependabot in https://github.com/patterns-ai-core/langchainrb/pull/893”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in RAG and search
See all 34| Rank | Project | Score |
|---|---|---|
| #15 | rag-apiFastAPI service for per-file document embedding and retrieval on pgvector | 52 out of 100 |
| #16 | launchstackTypeScript engine for document ingestion, OCR, hybrid RAG and knowledge graphs | 52 out of 100 |
| #18 | oramaIn-process full-text, vector and hybrid search library for JavaScript | 46 out of 100 |
| #19 | SupabaseAuthWithSSRClaude chat on Next.js 16 with Supabase auth, pgvector RAG, cost dashboards | 45 out of 100 |
| #20 | llm-apps-java-spring-aiSpring AI sample projects for chat, RAG, tool calling and observability in Java | 43 out of 100 |