Skip to content

PlatoDataNetwork/marvin-chat-agent

 
 

Repository files navigation

🦜️🔗 Marvin Chat Agent

Open in GitHub Codespaces

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

  • basic_streaming.py: How to do streaming with a simple app using langchain.chat_models.ChatOpenAI
  • 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)
  • search_and_chat.py: A search-enabled chatbot that remembers chat history

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

# Run mrkl_demo.py or another app the same way
$ streamlit run streamlit_agent/mrkl_demo.py

Contributing

We plan to add more agent examples over time - PRs welcome

  • Chat QA over docs
  • SQL agent

About

Marvin Chat using LangChain and Streamlit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%