Spaces:
Sleeping
Sleeping
title: Hubermanbot2 | |
emoji: π | |
colorFrom: blue | |
colorTo: blue | |
sdk: gradio | |
sdk_version: 5.16.0 | |
app_file: app.py | |
pinned: false | |
license: mit | |
short_description: a bot | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
# Andrew Huberman RAG-Based AI Chatbot | |
## Overview | |
Xyzbot is an AI chatbot that extracts and synthesizes insights from Andrew Huberman's YouTube videos. It automatically retrieves video transcripts, updates its knowledge base in ChromaDB, and provides citation-linked responses. | |
## π Key Features | |
- Mimics Andrew Huberman's insights using YouTube video transcripts | |
- Automatic transcript retrieval and knowledge base updates | |
- RAG-powered response generation with direct video citations | |
- Interactive Streamlit user interface | |
- Docker-based deployment for easy scalability | |
## π Tech Stack | |
- Backend: Python, LangChain, OpenAI API | |
- Frontend: Streamlit | |
- Database: ChromaDB | |
- Deployment: Docker | |
## π Project Structure | |
``` | |
π¦ Xyzbot | |
βββ π Data | |
βββ π Example | |
βββ π Llm | |
βββ π Notebook | |
βββ π Prompts | |
βββ π Rag | |
β βββ chromadb.db | |
β βββ π Processed_folder | |
βββ π utils | |
βββ Dockerfile | |
βββ pyproject.toml | |
``` | |
## π§ Prerequisites | |
- Python 3.8+ | |
- Docker (optional) | |
## π API Keys Required | |
1. Google Gemini API Key | |
2. YouTube API Key | |
## π Installation | |
### Local Setup | |
1. Clone the repository | |
```bash | |
git clone https://github.com/Angel-dash/Xyzbot.git | |
cd Xyzbot | |
``` | |
2. Create virtual environment | |
```bash | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
``` | |
### Docker Setup | |
#### Option 1: Build Locally | |
```bash | |
docker build -t xyzbot:v1.0 . | |
docker run -it \ | |
-v $(pwd)/Rag:/app/Rag:rw \ | |
-e GOOGLE_API_KEY=your_api_key \ | |
xyzbot:v1.0 | |
``` | |
#### Option 2: Pull from Docker Hub | |
```bash | |
docker pull angeldash/xyzbot:v1.0 | |
docker run -it \ | |
-v $(pwd)/Rag:/app/Rag:rw \ | |
-e GOOGLE_API_KEY=your_api_key \ | |
angeldash/xyzbot:v1.0 | |
``` | |
## π₯οΈ Running the Application | |
```bash | |
streamlit run src/main.py | |
``` | |
## π Future Roadmap | |
- Fine-tuned LLM response generation | |
- Real-time multi-channel monitoring | |
- Enhanced citation formatting | |
- AI agent conversation handling | |
- Performance optimization | |
## π License | |
MIT License | |
## π€ Contributing | |
Contributions are welcome! Open an issue or submit a pull request. | |
--- | |
**Author:** Angel Dash | **GitHub:** [@Angel-dash](https://github.com/Angel-dash) | |