Home / Open Source / llm-app

llm-app

Ready-to-run Docker templates for building RAG pipelines and enterprise search apps that stay live-synced with your data sources.

Jupyter NotebookMITSearch & RAG
โญ GitHubhttps://github.com/pathwaycom/llm-app
58,947
Stars
+0
Star growth
Jul 6, 2026
Last updated
5
Clicks

1. Project Overview

llm-app (by Pathway) is a collection of ready-to-run, Docker-friendly templates for building production-grade RAG (Retrieval-Augmented Generation) pipelines and enterprise search applications that stay continuously synchronized with live data sources such as SharePoint, Google Drive, S3, Kafka, and PostgreSQL โ€” without requiring a separate vector database or indexing service.

2. Background & Positioning

Most RAG tutorials assume a static, one-time-loaded document set. In real organizations, however, knowledge bases change constantly: new files are uploaded, old ones are deleted, permissions change. llm-app was built by Pathway, the company behind the Rust-powered Pathway data processing engine, to close that gap โ€” every template ships with a live, incremental indexing pipeline that detects additions, updates, and deletions in the underlying data source and reflects them in retrieval results in real time, with no manual re-indexing step.

Compared to typical RAG example repositories that focus purely on prompt/chain logic, llm-app differentiates itself by:

  • Bundling the data connectors, indexing engine, and serving API into a single deployable unit instead of gluing together separate vector-database, orchestration, and scheduling services.
  • Offering an in-memory, cache-backed index (vector, hybrid, and full-text search via usearch and Tantivy) that scales to millions of pages without external infrastructure.
  • Being template-driven โ€” each use case is a complete, runnable application rather than a documentation snippet.

3. Feature Categories

  • ๐Ÿ“„ Question-Answering & Search (4 templates) โ€” End-to-end RAG apps for querying document collections in natural language.

    • question_answering_rag โ€” baseline document Q&A pipeline with an LLM.
    • document_indexing โ€” a standalone live vector-store/indexing service usable by any downstream app.
    • slides_ai_search โ€” multimodal search over PowerPoint/PDF slide decks.
    • document_store_mcp_server โ€” exposes the document store as an MCP server for agent tooling.
  • ๐Ÿ–ผ๏ธ Multimodal RAG (2 templates) โ€” Pipelines that go beyond plain text.

    • multimodal_rag โ€” parses PDFs with embedded charts, tables, and images using GPT-4o.
    • video_rag_twelvelabs โ€” question-answering over video content via the TwelveLabs API.
  • โšก Cost & Privacy Optimized RAG (2 templates) โ€” Variants tuned for cost or data-residency constraints.

    • adaptive_rag โ€” dynamically adjusts the number of retrieved context chunks, cutting token usage by up to 4x.
    • private_rag โ€” fully local/offline deployment using Mistral and Ollama, with no data leaving the premises.
  • ๐Ÿ—„๏ธ Structured Data & Automation (2 templates) โ€” Pipelines that turn unstructured input into structured outputs or trigger actions.

    • unstructured_to_sql_on_the_fly โ€” converts unstructured financial documents into a queryable SQL database on the fly.
    • drive_alert โ€” monitors a live data source and raises alerts on relevant changes.
  • ๐Ÿง  Agentic Patterns (1 collection) โ€” Reference notebooks for advanced reasoning loops.

    • cookbooks/self-rag-agents โ€” Self-RAG style agents that critique and refine their own retrieved context.

4. Key Highlights

  • Live data sync โ€” Pipelines watch SharePoint, Google Drive, S3, Kafka, PostgreSQL, and real-time APIs, automatically reflecting additions, edits, and deletions without a rebuild step.
  • No extra infrastructure โ€” Vector, hybrid, and full-text search are built into the Pathway engine (usearch + Tantivy) and run in-memory with caching, removing the need for a standalone vector database.
  • Docker-first deployment โ€” Every template runs as a container with an HTTP API, and most include an optional Streamlit UI for quick manual testing.
  • Framework interoperability โ€” Native integrations with LangChain and LlamaIndex let teams reuse existing chains and agents on top of Pathway's live index.
  • Cost-aware retrieval โ€” The Adaptive RAG template demonstrates retrieving only as much context as needed, reducing LLM token spend by up to 4x.
  • Scale-tested โ€” Designed to index and serve millions of document pages from a single pipeline.

5. Use Cases by Role

  • General developers โ€” Clone a template that matches your use case (Q&A, multimodal, SQL extraction) and adapt the data connector and prompt to your product.
  • Data / research scientists โ€” Use document_indexing or the self-rag-agents cookbook as a base for experimenting with retrieval strategies, chunking, and agentic self-correction.
  • Project managers / enterprise search owners โ€” Deploy question_answering_rag or slides_ai_search as an internal knowledge-base search tool that stays current without an indexing pipeline to maintain.
  • Security/compliance-conscious teams โ€” Use private_rag to keep document content and model inference entirely on-premises with Mistral/Ollama.

6. Getting Started

Find what you need โ€” browse the templates/ directory on GitHub, or the curated list at the Pathway Templates page, to pick the closest match to your use case.

Install and run a template

git clone https://github.com/pathwaycom/llm-app.git
cd llm-app/templates/question_answering_rag
docker compose up

Each template folder contains its own README.md with the exact environment variables (e.g., API keys) and run instructions for that pipeline.

Contribute โ€” read CONTRIBUTING.md; for anything beyond a small fix, coordinate first in the #get-help channel of the Pathway Discord.

7. Project Structure

llm-app/
โ”œโ”€โ”€ templates/                    # Ready-to-run application templates
โ”‚   โ”œโ”€โ”€ question_answering_rag/
โ”‚   โ”œโ”€โ”€ document_indexing/
โ”‚   โ”œโ”€โ”€ multimodal_rag/
โ”‚   โ”œโ”€โ”€ adaptive_rag/
โ”‚   โ”œโ”€โ”€ private_rag/
โ”‚   โ”œโ”€โ”€ slides_ai_search/
โ”‚   โ”œโ”€โ”€ unstructured_to_sql_on_the_fly/
โ”‚   โ”œโ”€โ”€ video_rag_twelvelabs/
โ”‚   โ”œโ”€โ”€ document_store_mcp_server/
โ”‚   โ””โ”€โ”€ drive_alert/
โ”œโ”€โ”€ cookbooks/
โ”‚   โ””โ”€โ”€ self-rag-agents/          # Self-RAG agent notebooks
โ”œโ”€โ”€ assets/                       # Diagrams and demo media
โ”œโ”€โ”€ pyproject.toml / setup.cfg    # Python packaging config
โ””โ”€โ”€ README.md

Each subfolder under templates/ is a self-contained app with its own Dockerfile/docker compose setup and configuration file, so templates can be run independently of one another.

8. Related Ecosystem

  • Pathway โ€” the underlying Rust-powered Python data processing engine that provides the streaming ETL, live indexing, and incremental computation this repo builds on.
  • LangChain / LlamaIndex โ€” supported as optional orchestration layers on top of Pathway's live vector index.
  • usearch / Tantivy โ€” embedded libraries powering vector search and full-text/hybrid search respectively.
  • Ollama / Mistral โ€” used by the private_rag template for fully local LLM inference.
  • TwelveLabs โ€” video understanding API used by the video_rag_twelvelabs template.

9. License

The project is distributed under the MIT License.

  • โœ… Free to use, copy, modify, merge, publish, and distribute, including for commercial products.
  • โœ… Can be embedded in proprietary/closed-source applications.
  • โŒ Comes with no warranty; the authors are not liable for damages arising from its use.
  • โ„น๏ธ The MIT license text and copyright notice must be retained in copies or substantial portions of the software.

10. FAQ

Q: Do I need to run a separate vector database alongside these templates?
A: No โ€” indexing (vector, hybrid, and full-text search) is built into the Pathway engine and runs in-memory with on-disk caching, so no external vector store is required.

Q: Can I use this fully offline, without sending data to a third-party LLM API?
A: Yes โ€” the private_rag template runs with Mistral and Ollama locally, keeping documents and inference on-premises.

Q: Which data sources can these pipelines watch for live updates?
A: SharePoint, Google Drive, S3, Kafka, PostgreSQL, local filesystems, and generic real-time data APIs are supported out of the box.

Q: How do I reduce LLM token costs when scaling up retrieval?
A: See the adaptive_rag template, which dynamically sizes the retrieved context and reports up to 4x lower token usage.

Q: How do I get help or propose a larger contribution?
A: Open an issue on GitHub for bugs, or join the #get-help channel on the Pathway Discord before starting substantial work.

11. Quick Links

12. Summary

llm-app packages Pathway's live-data engine into a set of ready-to-deploy RAG and enterprise-search templates that stay automatically in sync with changing document sources, eliminating the need for separate indexing infrastructure. It is best suited for developers and teams who want to move from a RAG prototype to a production pipeline quickly โ€” whether the goal is document Q&A, multimodal search, cost-optimized retrieval, or fully private on-premises deployment.