#1717th of 34 in RAG and search

langchainrb

Ruby library for LLM calls, RAG, vector search and tool-using assistants

Releases and problems feed (RSS)

Stars
2k
License
MIT
Last commit
Oct 2026
Last release
May 2025
Language
Ruby
Stars, last 30 weeks+44
27 Apr 2026: 1,962 stars4 May 2026: 1,965 stars11 May 2026: 1,967 stars18 May 2026: 1,968 stars25 May 2026: 1,970 stars1 Jun 2026: 1,972 stars8 Jun 2026: 1,974 stars15 Jun 2026: 1,977 stars22 Jun 2026: 1,977 stars29 Jun 2026: 1,979 stars6 Jul 2026: 1,981 stars13 Jul 2026: 1,982 stars20 Jul 2026: 1,982 stars27 Jul 2026: 1,982 stars3 Aug 2026: 1,983 stars10 Aug 2026: 1,983 stars17 Aug 2026: 1,984 stars24 Aug 2026: 1,987 stars31 Aug 2026: 1,988 stars7 Sept 2026: 1,992 stars14 Sept 2026: 1,992 stars21 Sept 2026: 1,994 stars28 Sept 2026: 1,996 stars5 Oct 2026: 1,997 stars12 Oct 2026: 1,998 stars19 Oct 2026: 2,002 stars26 Oct 2026: 2,004 stars2 Nov 2026: 2,005 stars9 Nov 2026: 2,006 stars16 Nov 2026: 2,006 stars23 Nov 2026: 2,006 stars

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

  1. 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”

  2. 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”

  3. 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
Also in RAG and search
RankProjectScore
#15rag-apiFastAPI service for per-file document embedding and retrieval on pgvector928 starsMIT52 out of 100
#16launchstackTypeScript engine for document ingestion, OCR, hybrid RAG and knowledge graphs898 starsApache-2.052 out of 100
#18oramaIn-process full-text, vector and hybrid search library for JavaScript10.6k starscustom license46 out of 100
#19SupabaseAuthWithSSRClaude chat on Next.js 16 with Supabase auth, pgvector RAG, cost dashboards Live demo ↗ (opens in a new tab)397 starsMIT45 out of 100
#20llm-apps-java-spring-aiSpring AI sample projects for chat, RAG, tool calling and observability in Java790 starsApache-2.043 out of 100