
Deploy LlamaIndex Apps
LlamaIndex apps to chat with PDFs (LlamaParse) and summarize URLs (Gemini)
chat-with-pdf
Just deployed
summarize-url
Just deployed
Deploy and Host LlamaIndex Apps on Railway
LlamaIndex is an open-source framework for building LLM-powered applications over your own data. This template deploys two Streamlit apps from the alphasecio/llama-index repository: one for chatting with PDFs using LlamaParse and OpenAI, and one for summarizing web pages using Google Gemini.
About Hosting LlamaIndex Apps
Each app is its own Railway service, built from a folder in the repository and started with streamlit run streamlit_app.py. No database or volume is needed. API keys are entered in each app's sidebar at runtime and last only for that browser session, so nothing is stored on the server and the template needs no key variables.
Common Use Cases
- PDF Q&A: upload a PDF (up to 20 MB; the first 50 pages are parsed) and ask questions about it. LlamaParse handles complex layouts and tables, and answers cite the source pages.
- URL summarization: paste a public web page URL and get a 200 to 250 word summary from Gemini.
- LlamaIndex starter: use either app as a reference for
VectorStoreIndexretrieval orSummaryIndexsummarization in your own Streamlit tools.
Dependencies for LlamaIndex Apps Hosting
- LlamaIndex (
llama-index-core) and Streamlit - Chat with PDF: a LlamaCloud API key for LlamaParse (via the
llama-cloudSDK) and an OpenAI API key for embeddings and answers - Summarize URL: a Google AI Studio API key for Gemini (via
llama-index-llms-google-genai)
Deployment Dependencies
- alphasecio/llama-index GitHub repository
- Chat with PDF using LlamaIndex and LlamaParse
- Blinkist for URLs with LlamaIndex and OpenAI
Implementation Details
| Service | Folder | What it does | Default model |
|---|---|---|---|
chat-with-pdf | chat-with-pdf | Parses the PDF with LlamaParse, indexes it with OpenAI embeddings (text-embedding-3-small) and answers with OpenAI, citing pages | gpt-6-luna |
summarize-url | summarize-url | Fetches the page (public addresses only), builds a SummaryIndex and summarizes it with Gemini | gemini-3.8-flash |
Both apps let you change the model in the sidebar; Chat with PDF also lets you pick the LlamaParse tier (fast, cost_effective, agentic, agentic_plus). Defaults can be changed with the optional OPENAI_MODEL, LLAMA_PARSE_TIER, MAX_PAGES, GEMINI_MODEL and MAX_CHARS variables.
Why Deploy LlamaIndex Apps on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying LlamaIndex Apps on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
chat-with-pdf
alphasecio/llama-indexsummarize-url
alphasecio/llama-index
