mirror of
https://github.com/langchain-ai/streamlit-agent.git
synced 2026-07-01 09:25:05 -04:00
850f5f8a06ad56607b0f1271dc6e22064d9f52c3
Update to Streamlit 1.24 for chat, various app and README cleanups, add minimal_agent
🦜️🔗 LangChain 🤝 Streamlit agent examples
This repository contains reference implementations of various LangChain agents as Streamlit apps including:
mrkl_demo.py: An agent that replicates the MRKL demominimal_agent.py: A minimal agent with search (requires settingOPENAI_API_KEYenv to run).
Apps feature LangChain 🤝 Streamlit integrations such as the Callback integration.
Setup
This project uses Poetry for dependency management.
# Create Python environment
$ poetry install
# Install git pre-commit hooks
$ poetry shell
$ pre-commit install
Running
$ streamlit run streamlit_agent/mrkl_demo.py
$ streamlit run streamlit_agent/minimal_agent.py
Contributing
We plan to add more agent examples over time - PRs welcome
- Minimal search agent with chat history
- Chat QA over docs
- SQL agent
Description
Languages
Python
97.5%
Dockerfile
2.5%