Lesson 9: Ask USTP, COR & Skills

Goal of this lesson

Explain RAG and how Ask USTP works offline and online, walk through COR import, and list the study skills with their requirements.

What is RAG?

Retrieval-Augmented Generation: first retrieve relevant source passages, then generate an answer from those passages, and show the sources. This reduces made-up answers because the reply must be supported by evidence.

Ask USTP sources

  • The USTP Student Handbook (2023 edition).
  • The USTP Cagayan de Oro knowledge snapshot: AY 2026–2027 semester, exam and enrollment dates, offices and contacts, PRISMS and other portals, the library, programs, scholarships, and student organizations.

USTP features follow the student’s USTP eligibility (student setup). A handbook chat never reaches retrieval without it.

Ask USTP offline

Student asks "What is the INC completion policy?"
Build a search query Keywords, stop words removed, follow-ups merged
SQLite FTS5 full-text search handbook_chunks_fts over handbook_chunks
Rank and filter passages Evidence gate
evidence found
Answer with excerpts + sources Page numbers / official pages
no evidence
"I couldn't verify that from my USTP sources…" Suggests better terms or the Registrar / OSA

Ask USTP online

Student asks (Online Mode)
Local passages found?
yes
Send local passages as evidence Backend skips Pinecone
no
Backend retrieves from Pinecone Vector search over the handbook
DeepSeek writes the answer from the evidence Streamed. Sources attached
Citations shown only if the passages actually answered it

Why it's trustworthy

Answers show their sources, so students can check the exact passage. When the sources don’t support an answer, LAFINA says it couldn’t verify it instead of guessing. Students should still confirm official decisions with the university.

COR import

Student picks the COR Portal PDF (best) or a photo / screenshot
PDF
PDF → PDFBox Reads the exact text layer + checks the layout
image
Image → ML Kit OCR On-device text recognition
Parse and check Subjects, units, days, times, rooms. Reading problems flagged, not guessed
Review screen Student corrects and confirms
Classes added to the schedule Undo removes the imported classes cleanly
  • Runs on the phone. No login to or integration with the university portal.
  • Small or blurry images can lose details. The original portal PDF works best.

Study skills

SkillWhat it doesNeeds internet?
Pomodoro / Focus timerTimed focus sessions, started from Home gaps tooNo
FlashcardsStudy decks with reviewNo to review. Yes to AI-generate
Quiz makerQuizzes from your materialYes (AI generation)
GWA calculatorSemester general weighted averageNo
SummarizerSummaries of uploaded materialYes
Lesson Q&AAsk questions about your uploaded study material (local library + chunked search)Yes for AI answers
Recording / transcriptionRecord lectures. Transcribed locally with WhisperNo to transcribe. Yes for AI notes
DocumentsGenerate PDF, Word, Excel, PowerPointYes
To-dos, notes, alarmsCore toolsNo

Privacy detail: for AI meeting notes, only the transcript text is sent, after consent. The recording audio is not uploaded.

Check yourself

  • Define RAG in one sentence, and say why it matters for handbook questions.
  • What search technology does offline Ask USTP use? What about online?
  • What does LAFINA say when the sources don’t support an answer?
  • Walk through COR import for a PDF and for a photo.
  • Which skills work fully offline?