A multi-agent AI Study Assistant built with LangGraph as part of the SDAIA Academy – Building AI Agent Systems programme.
The system allows users to upload PDF study materials and interact with them through an AI-powered workflow that can answer questions, generate summaries, and create quizzes. It combines Retrieval-Augmented Generation (RAG), memory, Human-in-the-Loop interaction, and error handling to create a more reliable study experience.
- Author: Tala Alhadawi
- Programme: SDAIA Academy – Building AI Agent Systems
- Cohort: 26–30 July 2026
- PDF document upload
- Multi-agent workflow using LangGraph
- FAISS-based Retrieval-Augmented Generation (RAG)
- Question Answering
- Automatic summarization
- Quiz generation
- Short-term and long-term memory
- Human-in-the-Loop quiz approval
- RetryPolicy and fallback error handling
- LangSmith tracing
- LangGraph Functional API
The assistant follows a multi-agent workflow:
PDF → Document Processing → RAG Retrieval → Specialized Worker → Response
Depending on the user's request, the system routes the task to the appropriate worker:
- Question Answering Worker — answers questions using retrieved document content.
- Summary Worker — generates concise summaries from the study material.
- Quiz Worker — creates quizzes and requests human approval before proceeding.
The workflow also uses memory to maintain context and includes retry and fallback mechanisms to improve reliability.
- Open the notebook in Google Colab.
- Add
GROQ_API_KEYto Colab Secrets. - Add
LANGSMITH_API_KEYto enable tracing. - Select Runtime → Restart session and run all cells.
- Upload a text-based PDF.
- Enter a study request.
- Type
yesornowhen quiz approval is requested.
