|
1 | | -# Agentic Chatbot |
| 1 | +# 🤖 Agentic Chatbot: Navigating Red Hat Internal resources from THE SOURCE |
2 | 2 |
|
| 3 | +## Overview |
| 4 | + |
| 5 | +The Agentic Chatbot is an intelligent assistant designed to help Red Hat associates navigate internal resources efficiently. |
| 6 | + |
| 7 | +## Project Goals |
| 8 | + |
| 9 | +- Simplify access to internal documentation |
| 10 | +- Reduce onboarding friction |
| 11 | +- Provide intelligent, context-aware resource discovery |
| 12 | + |
| 13 | +## Use Case |
| 14 | + |
| 15 | +Instead of navigating the Source portal manually, associates can ask: |
| 16 | + |
| 17 | +- "What is the process for updating a Red Hat product?" |
| 18 | +- "Where can I find the latest documentation for a specific product?" |
| 19 | +- "How do I resolve a common issue with a Red Hat product?" |
| 20 | + |
| 21 | +And receive: |
| 22 | + |
| 23 | +- Direct answers |
| 24 | +- Links to the exact documents/pages |
| 25 | +- Context-aware follow-up suggestions |
| 26 | + |
| 27 | +## Technical Architecture |
| 28 | + |
| 29 | +### Core Components |
| 30 | + |
| 31 | +| Layer | Technology | |
| 32 | +|---------------|--------------------------------------| |
| 33 | +| **Backend** | Python + FastAPI / Flask | |
| 34 | +| **LLMs** | OpenAI GPT, Ollama, Hugging Face | |
| 35 | +| **Vector DB** | ChromaDB / FAISS | |
| 36 | +| **Embeddings**| Hugging Face Transformers | |
| 37 | +| **Frontend** | Slack Bot (via Slack Bolt SDK)| |
| 38 | + |
| 39 | +### Agentic Workflow |
| 40 | + |
| 41 | +The chatbot operates on a **multi-agent architecture**, where each agent specializes in a sub-task: |
| 42 | + |
| 43 | +- **Query Understanding Agent** |
| 44 | + Interprets user inputs into actionable formats. |
| 45 | + |
| 46 | +- **Content Indexing Agent** |
| 47 | + Parses documents and pushes them to a vector database after generating embeddings. |
| 48 | + |
| 49 | +- **Response Generation Agent** |
| 50 | + Retrieves relevant data and composes human-like, informative replies. |
| 51 | + |
| 52 | +## Slack Integration |
| 53 | + |
| 54 | +The chatbot is tightly integrated with Slack for enterprise accessibility: |
| 55 | + |
| 56 | +- Users interact via DM or threads |
| 57 | +- Replies include embedded links to Source documents |
| 58 | +- Backend uses Slack Bolt SDK with FastAPI |
| 59 | +- Events are securely handled with workspace-level tokens |
| 60 | + |
| 61 | +## Key Features |
| 62 | + |
| 63 | +- **Semantic Search** |
| 64 | + Leverages vector embeddings to match intent with content, even for vague queries |
| 65 | + |
| 66 | +- **Model Flexibility** |
| 67 | + Easily swap between OpenAI, Hugging Face, or locally hosted models via Ollama |
| 68 | + |
| 69 | +- **Microservice Architecture** |
| 70 | + Modular design allows for scaling and independent agent upgrades |
| 71 | + |
| 72 | +- **Multilingual Support** |
| 73 | + Via Hugging Face embeddings and tokenizers |
| 74 | + |
| 75 | +- **Secure Document Handling** |
| 76 | + Respects access controls and data privacy protocols |
| 77 | + |
| 78 | +## Impact |
| 79 | + |
| 80 | +- **Significantly reduces time** spent navigating documentation manually |
| 81 | +- **Improves onboarding** experience for new Red Hatters |
| 82 | +- **Promotes self-service** culture and reduces dependency on internal channels |
| 83 | +- **Lays foundation** for enterprise-grade knowledge retrieval systems |
| 84 | + |
| 85 | +## Future Scope |
| 86 | + |
| 87 | +- **EagleView API Integration** |
| 88 | + Post-authentication, the chatbot can dynamically fetch the complete Source portal data and continuously update its knowledge base |
| 89 | + |
| 90 | +- **Scalable to Entire Source Ecosystem** |
| 91 | + Once EagleView API access is enabled, the chatbot will be able to answer **all** questions across teams and departments |
| 92 | + |
| 93 | +- **Credential-Aware Access Control** |
| 94 | + Role-based response customization based on user credentials |
| 95 | + |
| 96 | +- **Intelligent Logging & Feedback Loop** |
| 97 | + Enable query analytics to improve answers through fine-tuning |
| 98 | + |
| 99 | +- **Horizontally Scalable Architecture** |
| 100 | + Multi-agent system allows parallel processing, independent agent upgrades, and multi-tenant support |
| 101 | + |
| 102 | +## Installation |
| 103 | + |
| 104 | +```bash |
| 105 | +# Clone the repository |
| 106 | +git clone https://github.com/your-org/agentic-chatbot.git |
| 107 | + |
| 108 | +# Install dependencies |
| 109 | +pip install -r requirements.txt |
| 110 | + |
| 111 | +# Set up environment variables |
| 112 | +cp sample.env .env |
| 113 | +# Edit .env with your configurations |
| 114 | +``` |
| 115 | + |
| 116 | +## Quick Start |
| 117 | + |
| 118 | +### Running the Slack Bot |
| 119 | +```bash |
| 120 | +python services/slack_service.py |
| 121 | +``` |
| 122 | + |
| 123 | +## Contributing |
| 124 | + |
| 125 | +1. Fork the repository |
| 126 | +2. Create your feature branch (`git checkout -b feature/AmazingFeature`) |
| 127 | +3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) |
| 128 | +4. Push to the branch (`git push origin feature/AmazingFeature`) |
| 129 | +5. Open a Pull Request |
| 130 | + |
| 131 | +## License |
| 132 | + |
| 133 | +Distributed under the MIT License. See `LICENSE` for more information. |
0 commit comments