AralMate AI — Your Personal AI Study Companion

Inspiration

Learning often involves working through lengthy PDFs, searching for important information, preparing for exams, and figuring out which topics need more attention. Students can spend hours switching between documents, notes, and different study tools.

I wanted to build something that could bring these activities together in one accessible learning companion. This inspired AralMate AI: an AI-powered study application that transforms learning materials into interactive study experiences and helps learners understand what they should focus on next.

The goal was not simply to create another chatbot, but to build a practical learning tool that supports a more organized and personalized study process.

What it does

AralMate AI allows learners to upload PDF study materials and use them through five main features:

  • Dashboard: Provides an overview of the learning experience and access to the application's features.
  • My Library: Allows users to upload and manage PDF learning materials.
  • AI Tutor: Answers questions using relevant passages from uploaded documents and provides page references to help learners locate the supporting material.
  • Practice Studio: Generates AI-powered quizzes, evaluates submitted answers, and provides explanations.
  • Flashcards: Creates study flashcards to support revision and knowledge retention.
  • Knowledge Gap Map: Analyzes quiz performance to identify topics where learners may need additional practice and review.

The Knowledge Gap Map is a particularly important part of the project because it connects practice results with actionable learning insights. Instead of only showing quiz scores, it helps learners recognize where to focus their efforts.

How I built it

I developed AralMate AI using Python and Streamlit, integrating document processing, information retrieval, and generative AI into a single application.

The document-processing workflow uses PyMuPDF to extract text from uploaded PDFs. For document retrieval, I implemented TF-IDF vectorization and cosine similarity to identify relevant passages based on a learner's question.

The retrieved passages are then used as context for the AI Tutor, which connects to the Groq API through the OpenAI-compatible Python SDK, using the openai/gpt-oss-20b model. The same AI integration supports quiz and flashcard generation.

I also implemented quiz evaluation and topic-level performance tracking to power the Knowledge Gap Map. The application uses Streamlit session state to manage uploaded materials and learning interactions during a session.

The project was tested locally, deployed through Streamlit Community Cloud, and synchronized with its GitHub repository.

Challenges I faced

One of the main challenges was connecting multiple features into a coherent learning workflow. PDF extraction, relevant passage retrieval, AI-generated responses, quiz evaluation, and performance analysis each required different logic, but they needed to work together smoothly.

Another challenge was making AI responses useful and grounded in the learner's uploaded materials. I addressed this by retrieving relevant document passages before sending context to the AI model.

Deployment also required careful configuration of API credentials and environment settings. I used Streamlit Secrets for cloud deployment and kept sensitive credentials out of the public repository.

I also encountered Unicode encoding issues that affected some interface icons and labels. I repaired the affected text, validated the Python files, reran the project tests, and verified the corrected interface in the deployed application.

What I learned

Building AralMate AI strengthened my practical experience in Python application development, document processing, information retrieval, generative AI integration, prompt and context handling, automated testing, API configuration, and cloud deployment.

More importantly, I learned that building a useful AI application involves more than connecting a language model to an interface. The surrounding workflow—retrieving relevant information, managing user interactions, evaluating results, handling errors, and presenting useful insights—is equally important.

This project reinforced my interest in building practical AI-powered systems that solve real problems and make technology more accessible to learners.

Future improvements

There is room to expand AralMate AI with persistent learning history, more advanced semantic retrieval, OCR support for scanned documents, and additional learning analytics. These improvements could make the application more capable and support longer-term personalized learning.

AralMate AI — Learn smarter. Understand deeper. Prepare better.

Built With

Share this project:

Updates

Submission history