AI-powered Python logging handler with RAG-based error analysis and Telegram alerts.
LogAI is an open-source Python package that turns your application logs into a real-time debugging companion.
When an error occurs, LogAI uses Retrieval-Augmented Generation (RAG) to pull relevant log context and feed it to an AI model, producing human-friendly explanations of what failed and why.
It then starts a conversation in Telegram so engineers can ask follow-up questions, dig deeper into past logs, and troubleshoot collaboratively — without digging through endless log files.
- 📝 Log ingestion – Plug-and-play logging handler for Python apps.
- 🔍 RAG-powered context – Retrieves related logs to give the AI full incident context.
- 🤖 AI analysis – Summarizes the issue, likely cause, and suggested fixes.
- 💬 Telegram integration – Instant alerts and interactive Q&A.
- ⚡ Open-source & extensible – Bring your own vector DB, AI model, or chat platform.
This project is licensed under the MIT License – see the LICENSE file for details.
Join our engineer chat on Telegram: https://t.me/elonvibecoders
- Week 1: Repo setup, log ingestion scaffolding, vector DB connection.
- Week 2: Log retrieval via RAG, error trigger rules.
- Week 3: AI integration & Telegram bot.
- Week 4: Polishing, examples, v0.1.0 release.
🎉 First off, thanks for taking the time to contribute! This project thrives on community effort.
- 🐛 Report bugs – Found something broken? Let us know.
- 💡 Suggest features – Got ideas for improvement? Open a discussion or issue.
- 🛠 Fix bugs & add features – Pick an issue and start coding.
- 📖 Improve documentation – Even small doc fixes are valuable.
-
Fork the repository
- Click the Fork button at the top right of the repo page.
-
Clone your fork
git clone https://github.com/kweku7k/logai.git cd logai -
Set up the development environment
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate
pip install -r requirements.txt
pip install -r requirements-dev.txt- Create a feature branch
git checkout -b feature/my-new-feature- Commit changes
git add .
git commit -m "feat: add my new feature"- Push branch & open PR
git push origin feature/my-new-featureFollow PEP8 style guide. • Run tests before pushing:
pytest• Keep commits focused and meaningful.
• For large changes, open an issue first to discuss.
⸻
• good first issue – Small, beginner-friendly tasks.
• help wanted – Needs community input.
• core – MVP-critical tasks.
• discussion – Brainstorming & planning.
⸻
##🛡 Code of Conduct
Be respectful. This project follows the Contributor Covenant.
⸻
Happy hacking! 🚀