--- title: digitizedgemini app_file: app_gemini.py sdk: gradio sdk_version: 5.33.1 --- # DigitizedBrains RAG Chatbot An intelligent chatbot powered by Google's Gemini AI and Retrieval-Augmented Generation (RAG) technology. ## Features - **RAG-based Knowledge Retrieval**: Uses comprehensive document knowledge base for accurate responses - **Multi-document Search**: Intelligently searches and ranks relevant documents - **Professional AI Representative**: Represents Duc Nguyen and DigitizedBrains company - **Lead Capture**: Automatically detects and records user contact information - **Unknown Question Tracking**: Logs questions that couldn't be answered for improvement ## Knowledge Base The chatbot has access to extensive documentation about: - Digital transformation strategies - Business intelligence solutions - AI implementation approaches - Company services and expertise - Industry best practices ## Technology Stack - **Google Gemini AI**: Advanced language model for natural conversation - **Gradio**: User-friendly web interface - **RAG Architecture**: Retrieval-Augmented Generation for knowledge-based responses - **Python**: Backend implementation ## Usage Simply start a conversation with the chatbot about: - Digital transformation consulting - AI and business intelligence solutions - Company services and capabilities - Industry expertise and case studies The chatbot will provide informed responses based on its comprehensive knowledge base. ## Environment Variables Required To run this application, you need to set: - `GEMINI_API_KEY`: Your Google Gemini API key - `PUSHOVER_TOKEN`: (Optional) For notifications - `PUSHOVER_USER`: (Optional) For notifications ## Configuration This Space is configured to run with Gradio and uses the Gemini AI model for intelligent responses. Bash(cd Agents_Gemini && huggingface-cli login) ⎿ Running in the background (down arrow to manage) ● BashOutput(Reading shell output) ⎿ To log in, `huggingface_hub` requires a token generated from htt ps://huggingface.co/settings/tokens . Token can be pasted using 'Right-Click'. Bạn cần: 1. Truy cập https://huggingface.co/settings/tokens để tạo token 2. Paste token vào terminal 3. Sau khi login, bạn có thể tạo Space bằng lệnh: huggingface-cli repo create digitizedbrains-rag-chatbot --type=space --space_sdk=gradio 4. Upload files: git init git add . git commit -m "Initial commit" git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/digi tizedbrains-rag-chatbot git push origin main Lưu ý quan trọng: - Bạn cần đặt GEMINI_API_KEY trong Space Settings của Hugging Face - Thư mục document/ cần được upload cùng để RAG hoạt động