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
usearchandTantivy) 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_indexingor theself-rag-agentscookbook as a base for experimenting with retrieval strategies, chunking, and agentic self-correction. - Project managers / enterprise search owners โ Deploy
question_answering_ragorslides_ai_searchas an internal knowledge-base search tool that stays current without an indexing pipeline to maintain. - Security/compliance-conscious teams โ Use
private_ragto 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_ragtemplate for fully local LLM inference. - TwelveLabs โ video understanding API used by the
video_rag_twelvelabstemplate.
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
- Repository: https://github.com/pathwaycom/llm-app
- Official docs / templates catalog: https://pathway.com/developers/templates/
- Contributing guide: https://github.com/pathwaycom/llm-app/blob/main/CONTRIBUTING.md
- Community: https://discord.gg/pathway
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.