docs/2.developers/7.templates/20.run-a-template.md
The Pathway Templates provide ready-to-use setups for creating real-time, AI-driven applications. With YAML-configured templates, it's easy to customize or create your own processing pipelines for use cases like RAG and ETL.
This quick start guide will help you set up and run a Pathway Template. Whether you're developing an ETL pipeline, a document indexing solution, a knowledge mining system, or a query-response interface, this guide will get you started quickly.
To get started, you'll need:
Running Options
Note: if you are using RAG pipelines locally, you will need to install Pathway LLM xpack with:
pip install pathway[all]
Optional: Install Streamlit for UI and pip for dependency management (if not using Docker).
First, you need to download the repository.
For ETL templates, clone Pathway repository:
git clone https://github.com/pathwaycom/pathway.git
For RAG templates, you need to clone the dedicated repository:
git clone https://github.com/pathwaycom/llm-app.git
Pathway Templates provide several ready-to-go templates for common use cases. Whether you need a real-time ETL, document indexing, or context-based Q&A, you'll find templates for each.
::container{.flex .gap-8 .items-center .w-full .justify-center} ::pathway-button{icon="uil:github" type="secondary" href="/developers/templates#llm"} See the templates. :: ::
Then you need to go the repository of the chosen template, let's take the question_answering_rag as an example.
cd llm-app/templates/question_answering_rag
Most of the templates can be configured using a YAML file. You can learn how to configure them by reading the dedicated tutorial.
For non-YAML templates, the detailed configuration and usage steps can be found in the the README and articles included with each template.
You can run Pathway Templates either locally or using Docker.
The exact information about how to run a given template is given in the dedicated article or GitHub repository. In general, the templates can be run in two different ways:
main.py). You'll need to install the dependencies manually.docker compose up if a docker-compose.yml file is provided. The setup is automated, handling all required dependencies.Local and Docker deployment may be not enough. Most cloud platforms offer robust support for Docker containers and/or Python deployment, allowing you to deploy your Pathway project on these cloud environments without encountering compatibility issues.
You can learn more about how to deploy a Pathway Template in the cloud here.
If you want to scale your Pathway application, you may be interested in our Pathway for Enterprise.
You can learn more about Pathway Enterprise here.