qmetrics.net

Langchainrb

Ruby gem for LLM apps, RAG, and assistants

Langchainrb screenshot

A Ruby library for retrieval-augmented generation, unified LLM APIs, prompt templates, and tool-using assistants.

Overview

Langchain.rb helps Ruby developers build LLM-powered features inside their applications. It focuses on practical patterns such as retrieval augmented generation, chat assistants, and structured outputs rather than shipping a standalone service.

The Langchain::LLM namespace offers a shared interface across providers including Anthropic, OpenAI, Google Gemini and Vertex AI, AWS Bedrock, Azure OpenAI, Cohere, Mistral, Ollama, HuggingFace, and Replicate, with embed, complete, and chat operations and consistent response objects. Prompt templates, few-shot templates, and output parsers turn model text into JSON or fixed schemas, with helpers to repair invalid JSON.

RAG workflows connect to multiple vector search backends through one interface, supporting indexing plain text or parsed files in formats such as PDF, HTML, DOCX, and CSV. The Langchain::Assistant class combines an LLM with built-in or custom tools, conversation state, and optional callbacks for tool execution.

Evaluation helpers include RAGAS-style faithfulness and relevance metrics. A separate langchainrb_rails gem is noted for deeper Rails integration. The core package is installed as a Ruby gem and imported from application code.

Key features

  • Unified LLM provider interface
  • Prompt and few-shot templates
  • Structured output parsers
  • Vector search database adapters
  • RAG indexing and retrieval
  • Assistant with tool calling
  • Built-in tools such as calculator and search
  • RAGAS evaluation metrics

Use cases

  • RAG question answering in Ruby apps
  • Chat assistants with tools
  • Switching between LLM vendors
  • Parsing LLM output to JSON

Tags

Similar software

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT

JeecgBoot

Enterprise AI low-code platform on Java and Vue

JeecgBoot is an AI low-code platform with permissions, workflows, reporting, and built-in AI apps. Teams deploy it privately to generate CRUD, forms, and business modules quickly.

★ 48.6k⟳ 16 days agoApache-2.0

Agno

Platform for building, running and managing AI agents in your own cloud

Agno is an agent platform for building agents, teams and workflows, then running them as durable services with API and MCP access. It runs in your own cloud and includes a control UI.

★ 43.3k⟳ todayApache-2.0

Mastra

TypeScript framework for AI agents and apps

Mastra helps teams build AI agents, workflows, and apps in TypeScript with model routing, tools, memory, MCP, and observability. It embeds in React, Next.js, and Node or runs as its own server.

★ 29.9k⟳ todayApache-2.0 · open core

AI SDK

TypeScript toolkit for AI applications and agents

The AI SDK is a provider-agnostic TypeScript library for building AI-powered applications and agents with popular UI frameworks and Node.js runtimes.

★ 28.3k⟳ todayApache-2.0