An AI-powered research assistant built with Streamlit, LangChain, and Groq API, designed to intelligently summarize, query, and challenge users with MCQs based on uploaded PDF/TXT research documents.
Video Link: Watch the demo video on YouTube
🔗 Live App: https://ezgenaiproject-rajeevkumar.streamlit.app/)
- ✅ Upload and process
.pdfor.txtdocuments - ✨ AI-generated summary
- 🔍 Ask custom questions with source references
- 🧠 "Challenge Me" mode with logic-based MCQs and answer feedback
- 💬 Conversational Q&A using memory buffer
- ⚡ Fast response powered by Groq’s LLaMA3 LLMs
flowchart TD
A[User Uploads PDF/TXT] --> B[Text Extraction]
B --> C[Text Chunking & Embedding via FAISS]
C --> D[Summarization with LLM]
C --> E[Q&A with RetrievalQA]
C --> F[Logic-Based MCQ Generation]
F --> G[User Response Evaluation]
E --> H[Answer + Source Snippets]
G --> I[Feedback on Answers]
git clone https://github.com/0221csds146/EZ_Gen_Ai_project.git
cd EZ_Gen_Ai_project# Linux/macOS
python -m venv venv
source venv/bin/activate
# Windows
python -m venv venv
venv\Scripts\activatepip install -r requirements.txtYou need a Groq API Key for LLaMA3 access.
GROQ_API_KEY=your_groq_key_hereCreate a file at .streamlit/secrets.toml:
GROQ_API_KEY = "your_groq_key_here"streamlit run main.pyEZ_Gen_Ai_project/
├── main.py # Streamlit frontend
├── backend.py # LangChain logic + prompt handling
├── prompts.py # Prompt templates
├── requirements.txt
├── .env / secrets.toml # API keys
└── README.md| Technology | Description |
|---|---|
| Python | Core backend language used to build the application |
| Streamlit | UI framework for creating the interactive web app |
| LangChain | Framework for managing LLM chains (Q&A, summarization, MCQs) |
| Groq API (LLaMA3) | Fast LLM used for all generative tasks |
| FAISS | Vector database for efficient semantic search |
| PyPDF2 | PDF text extraction utility |
| dotenv / Secrets | Secure handling of API keys using .env or Streamlit secrets |
- Groq LLaMA3 API – For blazing fast LLM inference
- LangChain – For orchestration of LLM applications
- Streamlit – For building interactive web interfaces
- FAISS – For efficient vector searchs
- OpenAI ChatGPT – For brainstorming, debugging, and generating ideas
- Anthropic Claude – For logic testing and prompt design
This project is licensed under the MIT License.