Inspiration
Learning shouldn't mean juggling a PDF, a search engine, a chatbot, and a separate quiz app just to understand one difficult concept. Yet that's exactly what many students do. Study material is often static, explanations are scattered, and students are left to figure out what they understand and what they need to revisit.
We wanted to change that. LearnMate AI transforms passive reading into active, personalized learning, helping students move from confusion to clarity without losing the context of their own study material.
What it does
LearnMate AI turns any supported study PDF into an interactive learning companion. Students can listen to their notes, ask questions in natural language, simplify complex concepts, generate summaries, and test their understanding with AI-generated quizzes.
What makes it different is its focus on learning from the student's own material. A lightweight retrieval system finds relevant passages before the AI generates an answer, with page references that help students trace explanations back to their notes.
Beyond the traditional web interface, LearnMate includes an MCP server that exposes document-search, page-reading, and summarization capabilities as structured tools. This creates a foundation for AI assistants to interact with learning material through a standardized interface rather than relying exclusively on manual navigation.
How we built it
We built LearnMate AI with React and Vite for the frontend, PDF.js for document processing, and a Node.js API layer for AI-powered features. Groq provides language-model inference, while our retrieval pipeline selects relevant document excerpts to ground responses in the source material.
Browser speech APIs enable text-to-speech and voice input, making it possible to listen to study material or ask questions without relying entirely on typing. The application also incorporates input validation, document-size limits, bounded context, and error handling to make the experience more reliable.
The MCP integration extends the same learning capabilities beyond the application's interface. Instead of treating each feature as an isolated button, we designed tools that can be discovered and invoked by compatible AI clients through structured requests and responses.
Challenges we faced
One of our biggest challenges was making AI responses useful without allowing the model to drift away from the source material. Sending an entire document with every question would be inefficient, so we implemented targeted retrieval to select relevant passages and preserve their page references. This introduced another challenge: keyword-based retrieval can miss relevant content when a student's wording differs from the document, making retrieval quality an important area for continued improvement.
We also had to account for different document sizes, invalid inputs, model failures, and inconsistent AI-generated output. Extending the application through MCP introduced a different set of engineering considerations, including tool schemas, request validation, transport compatibility, and the way external clients provide document context.
What we learned
LearnMate AI taught us that building a meaningful AI product is not just about generating impressive responses. The quality of the context, the ability to verify answers, the reliability of the underlying systems, and the simplicity of the user experience matter just as much.
We also explored how standardized tool interfaces can make an application more flexible and interoperable, allowing its capabilities to be used beyond a single frontend.
Our vision is simple: study material should do more than sit on a page. It should answer questions, clarify confusion, encourage practice, and help every student learn with greater confidence. LearnMate AI is our step toward making that possible.
Built With
- ai
- artificial
- context
- edtech
- express.js
- generation
- generative
- groq
- intelligence
- javascript
- language
- large
- learning
- mcp
- models
- natural
- node.js
- pdf.js
- personalized
- processing
- rag
- react
- retrieval-augmented
- tutor
- vite
Log in or sign up for Devpost to join the conversation.