A Streamlit-powered RAG application for learning Low-Level Design (LLD), built with LangChain, FAISS, and OpenAI.
- Overview
- Features
- Getting Started
- Updating the Knowledge Base
- Tech Stack
- Future Enhancements
- License
- Contributing
- Acknowledgments
- Contact
RAG-LLD Mentor is an AI-powered chatbot designed to assist users in learning Low-Level Design (LLD). It leverages LangChain for orchestration, FAISS for efficient similarity searching, and OpenAI's LLM for intelligent chat completions. The agent has been trained on knowledge bases from Refactoring Guru and Educative's Grokking LLD.
✅ Retrieval-Augmented Generation (RAG): Enhances LLM responses with context from relevant documents.
✅ Streaming Responses: Provides real-time AI-generated answers for a smoother experience.
✅ User Authentication: Secure login functionality to manage user sessions.
✅ FAISS Vector Search: Efficiently retrieves relevant documents for better responses.
✅ Custom Knowledge Base: Easily update the document store with new learning materials.
git clone https://github.com/hammaadworks/rag-lld-mentor.git
cd rag-lld-mentorCreate a .env file and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_keyModify constants.py to set up your username and password:
USERNAME = "your_username"
PASSWORD = "your_password" pip install -r requirements.txt streamlit run app.pyTo add more documents for training, edit update_vector_db.py and re-run it:
python update_vector_db.pyThis will update the FAISS vector database with new documents.
- Streamlit – For the frontend UI
- LangChain – For managing LLM interactions
- FAISS – For similarity search and retrieval
- OpenAI – For generating chat responses
- Python – The core programming language
🔹 Improve UI/UX with a chatbot-style interface
🔹 Support multiple LLMs (e.g., Claude, Gemini)
🔹 Add support for uploading custom PDFs/articles
This project is licensed under the MIT License.
Contributions are welcome! Feel free to open an issue or submit a pull request. 🚀
Special thanks to Refactoring Guru and Educative for providing valuable LLD resources. 🎉
- Email: [email protected]
- GitHub: https://github.com/hammaadworks
- LinkedIn: https://www.linkedin.com/in/hammaadworks
- Website: https://www.hammaadworks.com
