Deploy LlamaIndex Apps

LlamaIndex apps to chat with PDFs (LlamaParse) and summarize URLs (Gemini)

Deploy LlamaIndex Apps

Just deployed

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 VectorStoreIndex retrieval or SummaryIndex summarization in your own Streamlit tools.

Dependencies for LlamaIndex Apps Hosting

Deployment Dependencies

Implementation Details

ServiceFolderWhat it doesDefault model
chat-with-pdfchat-with-pdfParses the PDF with LlamaParse, indexes it with OpenAI embeddings (text-embedding-3-small) and answers with OpenAI, citing pagesgpt-6-luna
summarize-urlsummarize-urlFetches the page (public addresses only), builds a SummaryIndex and summarizes it with Geminigemini-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

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
118
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
4