A conversational AI chatbot built with Streamlit and Groq that provides information about the FoodPass investment offering on StartEngine.
- 🤖 Conversational AI powered by Groq's Llama3-8b model
- 🔍 Web scraping of FoodPass StartEngine page
- 📚 RAG (Retrieval-Augmented Generation) for accurate responses
- 💬 Interactive chat interface
- 🎨 Modern, responsive UI
- Frontend: Streamlit
- LLM: Groq (Llama3-8b-8192)
- Embeddings: OpenAI
- Vector Store: FAISS
- Web Scraping: BeautifulSoup
- Framework: LangChain
- Python 3.8+
- Groq API key
- OpenAI API key
- Run the setup script:
cd Groq
./venv_setup.sh- Edit the
.envfile with your API keys:
GROQ_API_KEY=your_groq_api_key_here
OPENAI_API_KEY=your_openai_api_key_here- Activate virtual environment and run:
source venv/bin/activate
streamlit run streamlit_chatbot.py- Clone the repository:
git clone <your-repo-url>
cd Groq- Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create
.envfile:
cp env_example.txt .env
# Edit .env with your actual API keys- Run the application:
streamlit run streamlit_chatbot.pyNo virtual environment needed - Streamlit Cloud handles this automatically!
-
Push to GitHub: Ensure your code is in a GitHub repository
-
Deploy on Streamlit Cloud:
- Go to share.streamlit.io
- Sign in with GitHub
- Click "New app"
- Select your repository and branch
- Set the main file path:
Groq/streamlit_chatbot.py - Add your secrets in the advanced settings:
GROQ_API_KEY = your_groq_api_key_here OPENAI_API_KEY = your_openai_api_key_here - Click "Deploy"
- Create a
Procfile:
web: streamlit run streamlit_chatbot.py --server.port=$PORT --server.address=0.0.0.0
- Set environment variables in Heroku dashboard
- Connect your GitHub repository
- Set environment variables
- Deploy automatically
| Variable | Description | Required |
|---|---|---|
GROQ_API_KEY |
Your Groq API key | Yes |
OPENAI_API_KEY |
Your OpenAI API key for embeddings | Yes |
- Open the deployed application
- Click "🚀 Setup FoodPass Chatbot" in the sidebar
- Wait for the model to initialize
- Start chatting about FoodPass!
Groq/
├── streamlit_chatbot.py # Main application
├── requirements.txt # Python dependencies
├── venv_setup.sh # Quick setup script
├── env_example.txt # Environment variables template
├── .streamlit/
│ └── config.toml # Streamlit configuration
├── README.md # This file
├── Procfile # Heroku deployment
├── runtime.txt # Python version
└── .env # Environment variables (local only)
- Activate:
source venv/bin/activate - Deactivate:
deactivate - Install new package:
pip install package_name - Update requirements:
pip freeze > requirements.txt
- No setup needed - automatically managed
- Dependencies: Installed from
requirements.txt - Environment: Isolated per app
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Ensure all tests pass before requesting a review
This project is licensed under the MIT License.