---
title: "Deploy LangChain Pinecone"
description: "LangChain doc chat, research and summaries with OpenAI and Pinecone"
category: "AI/ML"
url: https://railway.com/deploy/Rg70kF
---

# Deploy LangChain Pinecone

LangChain doc chat, research and summaries with OpenAI and Pinecone

**[Deploy LangChain Pinecone on Railway](https://railway.com/template/Rg70kF)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/Rg70kF/manifest.json

- **Creator:** alphasec
- **Category:** AI/ML
- **Total deploys:** 182

## Template content

### langchain https://github.com/pinecone-io.png

- **Source:** alphasecio/langchain-examples
- **Start command:** `streamlit run app.py --server.port $PORT --server.address 0.0.0.0`
- **Health check:** /_stcore/health
- **Public domain:** Yes

## Documentation

# Deploy and Host LangChain Pinecone on Railway

LangChain is an open-source framework for building applications with large language models, and Pinecone is a fully managed vector database. This template deploys a single Streamlit app with four practical LangChain tools, backed by OpenAI models, your choice of web search API, and a Pinecone serverless index for your documents.

## About Hosting LangChain Pinecone

The app is built from the root of the [alphasecio/langchain-examples](https://github.com/alphasecio/langchain-examples) repository with `VECTOR_STORE=pinecone`, so no database runs on Railway. On first use it creates a serverless index in your Pinecone project (1536 dimensions, cosine, AWS `us-east-1`, which the free Starter plan supports), named by `PINECONE_INDEX` (default `langchain-examples`). Set `OPENAI_API_KEY`, `PINECONE_API_KEY` and at least one search provider key (Tavily, Exa, Firecrawl, Parallel, Perplexity, TinyFish, Serper or SerpApi), or enter keys in the app sidebar at runtime, where they last only for that browser session.

> **Set `APP_PASSWORD` if you put API keys in the template variables.** Without it, anyone who finds your app's URL can use your keys, spend your credits, and read or delete documents in your Pinecone index.

## Common Use Cases

- **Chat with Docs:** upload PDF, text or Markdown files into Pinecone and ask questions with page-level citations.
- **Summarize:** summarize pasted text, a web page or a PDF as a short summary, a detailed one or bullet points.
- **Web Research:** an agent that searches the web, reads pages and answers with cited sources.
- **News Digest:** top stories on any topic, each summarized, plus a one-paragraph digest.

## Dependencies for LangChain Pinecone Hosting

- [LangChain](https://www.langchain.com/), [Streamlit](https://streamlit.io/) and [Pinecone](https://www.pinecone.io/)
- An [OpenAI API key](https://platform.openai.com/api-keys), a [Pinecone API key](https://app.pinecone.io) and at least one search API key

### Deployment Dependencies

- [alphasecio/langchain-examples](https://github.com/alphasecio/langchain-examples) GitHub repository
- [Generative Question-Answering with LangChain and Pinecone](https://alphasec.io/generative-question-answering-with-langchain-and-pinecone/)
- [Summarize Documents with LangChain and Pinecone](https://alphasec.io/summarize-documents-with-langchain-and-pinecone/)

### Implementation Details

| Service | What it does |
|---|---|
| `langchain` | Streamlit app with the four tools, storing document chunks in your Pinecone index |

Prefer Postgres? The [LangChain Apps](https://railway.com/deploy/oE8sWo?referralCode=alphasec) template deploys the same app with pgvector instead.

## Why Deploy LangChain Pinecone 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 LangChain Pinecone 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.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/Rg70kF
