Home/AI Agents/langchain-streamlit-template
langchain-streamlit-template logo

langchain-streamlit-template

Enrichment pending
hwchase17/langchain-streamlit-template

langchain-streamlit-template

GraphCanon updated today · GitHub synced today

298
Stars
143
Forks
3
Open issues
4
Watchers
1y
Last push
PythonCreated Jan 9, 2023

Trust & integrity

Full report
Maintenance
Dormant (546d since push)
As of today · Source: github_public_v1
Provenance
Not a fork · Personal account
As of today · Source: github_public_v1
Security (OSV)
No criticals
As of today · Source: osv@v1

Public GitHub metadata and optional OSV dependency scans. Signals, not a guarantee. Trust methodology.

Capability facts

Languages
python

Source: github.language · Jul 11, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

LangChain integrationLangChain

Source: README excerpt (regex_v1, Jul 11, 2026)

# LangChain-Streamlit Template
Source link
LangGraph integrationLangGraph

Source: README excerpt (regex_v1, Jul 11, 2026)

This repo serves as a template for how to deploy a [LangGraph](https://langchain-ai.github.io/langgraph/) agent on Streamlit.
Source link
Python runtimePython

Source: README excerpt (regex_v1, Jul 11, 2026)

After installing dependencies with e.g. `$ pip install -r requirements.txt`, you can run this project locally with the following comma
Source link

Tags

README

LangChain-Streamlit Template

This repo serves as a template for how to deploy a LangGraph agent on Streamlit.

This repo contains an main.py file which has a template for a chatbot implementation.

Adding your chain

To add your chain, you need to change the load_chain function in main.py. Depending on the type of your chain, you may also need to change the inputs/outputs that occur later on.

Run locally

After installing dependencies with e.g. $ pip install -r requirements.txt, you can run this project locally with the following command:

$ streamlit run main.py

Deploy on Streamlit

This is easily deployable on the Streamlit platform. Note that when setting up your Streamlit app you should make sure to add OPENAI_API_KEY as a secret environment variable.

Setting up LangSmith

To quickly spot issues and improve the performance of your LangGraph projects, sign up for LangSmith. LangSmith lets you use trace data to debug, test, and monitor your LLM apps built with LangGraph — read more about how to get started here.