Enterprise-grade AI assistant that transforms company knowledge access through intelligent document Q&A — all via Slack.
Employees waste 2–3 hours weekly searching fragmented company documents across platforms like Notion, Confluence, and Google Docs.
An AI-powered Slack bot with RAG (Retrieval-Augmented Generation) to provide instant, intelligent answers from internal documents — securely and at scale.
- Comparison Analysis: "Compare sick leave vs vacation policies"
- Temporal Queries: "What changed in benefits recently?"
- Conditional Logic: "If I work remote 3 days, what's required?"
- Multi-document Synthesis: Combines insights across files
- Seamless message-based Q&A
- File uploads & rich formatting
- Real-time notifications
- Supports 9+ languages (Hindi, Telugu, Spanish…)
- Auto-detects and responds in user’s language
- Approval workflows
- Role-based access control
- On-premise embedding + audit logs
- Real-time response tracking
- Usage insights & system health
- Scalable & optimized for enterprise load
Modern, scalable architecture for enterprise document intelligence.
- Slack workspace interface
- Supports DMs, channels, slash commands
- Real-time interactivity
- Slack bot orchestrator
- Query classification engine
- Language support + file uploads
- RAG agent (OpenAI + LangChain)
- Vector store manager (FAISS)
- Embedding engine (sentence-transformers)
- FAISS DB for vector search
- Metadata & caching layer
- Approval queue for secured flows
- Dashboards, performance tuning, fallback systems
- CPU: Intel i3 (12 cores)
- GPU: RTX 3050 (4GB VRAM)
- RAM: 15.7GB
- SSD Storage
- Embeddings:
all-mpnet-base-v2
- Vector Store: FAISS (CPU)
- LLM: OpenAI GPT-3.5 Turbo
- Framework: LangChain
- Slack SDK (files, messages)
- Multi-format docs (PDF, DOCX, TXT, CSV)
- Role-based access & approval workflows
- User query received via Slack
- Intent classified by query processor
- Relevant docs retrieved using vector similarity
- Context synthesized across multiple sources
- AI response generated
- Sources cited
- Answer delivered with metadata
- ✅ Comparison: “Compare remote vs office benefits”
- ⏳ Temporal: “What changed in HR policy recently?”
- ❓ Conditional: “If working 3 days remote, what’s required?”
- 📊 Statistical: “How many benefits are offered?”
- 🧾 Summarization: “Summarize all HR policies”
- Response time (< 3s target)
- Memory & cache usage
- Error logs
- Batch processing
- Parallel query handling
- Resource-efficient chunking
- Sensitive data workflows
- Access control
- Secure file handling
- Python 3.8+
- 4GB+ RAM (8GB recommended)
- Slack admin access
git clone https://github.com/Sumanth1410-git/internal-docs-agent.git
cd internal-docs-agent
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
python src/document_loader.py # Load sample docs
python src/rag_agent.py # Test RAG engine
python src/slack_bot.py # Launch bot
- Create Slack app at api.slack.com
- Enable Socket Mode and OAuth
- Add scopes: app_mentions:read, channels:read, chat:write, files:read
- Install to workspace and get tokens
- Add tokens to .env
🔹 Basic Q&A
👤: What's our vacation policy?
🤖: Employees are eligible for 20 days of paid vacation annually. 🟢 High Confidence | ⏱️ 1.2s | 📄 2 sources
🔹 Comparison Analysis
👤: Compare remote vs office work benefits
🤖: 📊 REMOTE - $1500 office setup allowance - Flexible timings & OFFICE - High-end equipment - In-person collaboration 🟢 High Confidence | 📄 2 sources
🔹 Multi-language Support
👤: हमारी छुट्टी की नीति क्या है?
🤖: आपकी कंपनी की छुट्टी नीति के अनुसार... 🌐 Language: Hindi detected
-
Response Time: ~2 seconds avg
-
Accuracy: 95%+
-
Languages: 9+ supported
-
Formats: 50+ handled
-
Scalability: 1000+ docs managed
-
src/
- slack_bot.py # Slack integration
- rag_agent.py # RAG engine
- vector_store_manager.py # Vector ops
- document_loader.py # Document ingestion
- file_processor.py # File uploads
- approval_system.py # Security flows
- multilingual_support.py # Language processing
-
tests/ # Unit tests
-
data/ # Sample docs
-
requirements.txt # Dependencies
-
.env.example # Config template
python -m pytest tests/ -v # Run all tests
python src/rag_agent.py # Test RAG engine
python src/slack_bot.py test # Slack integration
python -m pytest tests/ --cov=src # Run with coverage
Production Steps
-
Configure production environment
-
Set up .env with real credentials
-
Add logging & analytics
-
Deploy on cloud (AWS/GCP/Azure)
-
Enable auto-scaling & health checks
# Fork, clone, then:
git checkout -b feature/awesome-feature
# Make your changes
git commit -m "Add awesome feature"
git push origin feature/awesome-feature
# Open Pull Request 🎉
MIT License - see LICENSE file for details.
Built during AI Agent Hackathon 2025 by Product Space
✅ AI-first architecture with RAG ✅ Slack-native enterprise workflow ✅ Language support + security workflows ✅ Real-world business solution
P. Sumanth — Full Stack Developer & AI Engineer
- LinkedIn: [www.linkedin.com/in/pitta-sumanth-a183b8293]
- Email: [23211a7295@bvrit.ac.in]
- Github: [https://github.com/Sumanth1410-git]
- OpenAI and LangChain communities
- Slack API team
- Open source AI/ML ecosystem
- Hackathon organizers and mentors
⭐ Star this repo if you find it useful!
EOF