🧠 Industry-Level RAG (Retrieval-Augmented Generation) System for Intelligent Document Q&A
🔗 Try the App Here: 👉 https://smart-knowledge-ai-rag-eigycfwp9rfdq7sn6kedz2.streamlit.app/
Smart Knowledge AI Assistant is a production-ready Generative AI application that allows users to:
- 📄 Upload documents (PDF/TXT)
- 💬 Ask questions based on documents
- 🔍 Perform semantic search using embeddings
- 🧠 Get accurate, structured AI-generated answers
- 📌 View source references
- ✅ RAG (Retrieval-Augmented Generation)
- 📂 Multi-document upload support
- 🔎 Semantic search with FAISS
- 🤖 Gemini 2.5 Flash LLM integration
- 🧾 Source citation for answers
- 💬 Chat history tracking
- 🌐 Works with or without documents
| Layer | Technology |
|---|---|
| UI | Streamlit |
| LLM | Gemini 2.5 Flash |
| Embeddings | HuggingFace (MiniLM) |
| Vector DB | FAISS |
| Framework | LangChain |
smart-knowledge-ai-rag/
│
├── app/
│ └── app.py
│
├── core/
│ ├── embeddings.py
│ ├── llm.py
│ └── vectorstore.py
│
├── services/
│ ├── doc_loader.py
│ └── rag_pipeline.py
│
├── assets/
│ ├── home.png
│ ├── upload.png
│ └── answer.png
│
├── data/
├── requirements.txt
├── README.md
├── .gitignore
└── LICENSE
- 📄 User uploads documents
- ✂️ Documents are split into chunks
- 🔍 Embeddings are created
- 📦 Stored in FAISS vector database
- ❓ User asks a question
- 📌 Relevant chunks retrieved
- 🤖 Gemini generates structured answer
git clone https://github.com/22AD040/smart-knowledge-ai-rag.git
cd smart-knowledge-ai-rag
pip install -r requirements.txtCreate .env file:
GEMINI_API_KEY=your_api_key_herestreamlit run app/app.pyDeployed using Streamlit Cloud
Steps:
- Push code to GitHub
- Connect repo in Streamlit
- Add secrets:
GEMINI_API_KEY="your_api_key"- Deploy 🚀
- 📚 Academic Assistant
- 🏢 Company Knowledge Base
- ⚖️ Legal Document Analysis
- 📄 Research Paper Q&A
- 🧑💼 HR Policy Assistant
- 💬 ChatGPT-style UI
- 🧠 Memory-based conversations
- 📊 Better document visualization
- ⚡ Faster retrieval (caching)
- 🔐 User authentication
Contributions are welcome! Feel free to fork and improve 🚀
This project is licensed under the MIT License
Ratchita B 🎓 Generative AI Intern 💡 Passionate about AI, ML & Real-world Applications
If you like this project:
👉 Give a ⭐ on GitHub 👉 Share with others 👉 Use it in your projects


