projects/studymind-ai

StudyMind AI

Study material sharing platform with semantic search and AI Q&A over PDFs, an in-browser PDF reader, ratings, a moderation dashboard and 55 automated API tests running in CI.Nền tảng chia sẻ tài liệu học tập có tìm kiếm ngữ nghĩa và hỏi đáp AI trên PDF, đọc PDF ngay trên web, chấm điểm, trang kiểm duyệt và 55 test API tự động chạy trên CI.

  • 2026
  • AI
  • Full-stack
  • DevOps
github.com/NayuD06/StudyMind-AI
Screenshot of StudyMind AI

The problemVấn đề

Students share notes and past papers across scattered chat groups and drives, so good material is hard to find, quality is uneven, and finding the right page in a long PDF takes ages.Sinh viên chia sẻ tài liệu, đề cũ rải rác trong các nhóm chat và ổ đĩa, nên tài liệu tốt khó tìm, chất lượng không đồng đều, và tìm đúng trang cần trong một file PDF dài rất mất thời gian.

How it's builtCách làm

  • Split the system into four parts: a student site and a separate admin site (React, Vite, TypeScript, Tailwind), a REST API with Express and Prisma on MySQL, and a Python FastAPI service that reads PDFs, creates embeddings and answers questions with RAG over Qdrant.Chia hệ thống thành bốn phần: trang sinh viên và trang quản trị riêng (React, Vite, TypeScript, Tailwind), REST API bằng Express và Prisma trên MySQL, và một dịch vụ Python FastAPI đọc PDF, tạo embedding và trả lời câu hỏi bằng RAG trên Qdrant.
  • Built a moderation flow: new uploads wait for admin approval, PDFs are checked by their content rather than the file extension, and the first 30 pages are scanned for emails and phone numbers to warn about personal data.Làm quy trình kiểm duyệt: tài liệu mới chờ quản trị viên duyệt, file PDF được kiểm tra theo nội dung thật chứ không tin phần đuôi, 30 trang đầu được quét email và số điện thoại để cảnh báo lộ thông tin cá nhân.
  • Hardened sign-in: short-lived access tokens kept in memory, rotating httpOnly refresh cookies that end every session if one is reused, and rate limits on login, sign-up, uploads and comments.Siết chặt đăng nhập: access token sống ngắn chỉ nằm trong bộ nhớ, refresh token trong cookie httpOnly được đổi mới mỗi lần dùng và hủy mọi phiên nếu bị dùng lại, giới hạn tần suất cho đăng nhập, đăng ký, tải lên và bình luận.
  • Wrote 55 API tests that run against a separate test database, with GitHub Actions running them on every push and packaging Docker builds for release.Viết 55 test API chạy trên database riêng cho test, GitHub Actions chạy bộ test ở mỗi lần push và đóng gói bản phát hành bằng Docker.

Key featuresTính năng chính

  • Library search with filters by subject, school, major and ratingThư viện tìm kiếm, lọc theo môn, trường, ngành và điểm đánh giá
  • In-browser PDF reader with zoom and page navigationĐọc PDF ngay trên trang, chuyển trang và phóng to
  • Ratings, saved documents, downloads, comments and abuse reportsChấm sao, lưu tài liệu, tải xuống, bình luận và báo cáo vi phạm
  • AI Q&A, summaries and semantic search over documentsHỏi đáp, tóm tắt và tìm kiếm ngữ nghĩa trên tài liệu bằng AI
  • Admin dashboard with charts, a moderation queue, user management and an audit logTrang quản trị có biểu đồ, hàng chờ kiểm duyệt, quản lý người dùng và nhật ký thao tác
  • Notifications, password reset by email, light/dark theme and Vietnamese/EnglishChuông thông báo, đặt lại mật khẩu qua email, giao diện sáng/tối và tiếng Việt/tiếng Anh