🦜🔗 LangChain 🤝 Streamlit agent examples

Open in GitHub Codespaces

This repository contains reference implementations of various LangChain agents as Streamlit apps including:

  • mrkl_demo.py: An agent that replicates the MRKL demo
  • minimal_agent.py: A minimal agent with search (requires setting OPENAI_API_KEY env 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
S
Description
Reference implementations of several LangChain agents as Streamlit apps
Readme Apache-2.0 14 MiB
Languages
Python 97.5%
Dockerfile 2.5%