https://github.com/itmammoth/chat-example
A ChatGPT-like example with LangChain and Streamlit.
https://github.com/itmammoth/chat-example
chatgpt langchain openai python streamlit tavily
Last synced: 24 days ago
JSON representation
A ChatGPT-like example with LangChain and Streamlit.
- Host: GitHub
- URL: https://github.com/itmammoth/chat-example
- Owner: itmammoth
- Created: 2024-12-20T02:00:47.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-12-20T04:19:34.000Z (10 months ago)
- Last Synced: 2025-09-11T04:59:27.385Z (about 1 month ago)
- Topics: chatgpt, langchain, openai, python, streamlit, tavily
- Language: Python
- Homepage:
- Size: 4.29 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat Example
A ChatGPT-like example with [LangChain](https://www.langchain.com/) and [Streamlit](https://streamlit.io/) in just 45 lines of code.

## Requirements
- [OpenAI](https://openai.com/) API key
- [Tavily](https://tavily.com/) API key## Setup
```bash
# Virtual environment (if necessary)
python3 -m venv venv
source venv/bin/activate# Install dependencies
pip install -r requirements.txt# Edit your API keys
cp .streamlit/secrets_sample.toml .streamlit/secrets.toml
vi .streamlit/secrets.toml# Run the app
streamlit run app.py
```