Skip to content

All work

Academic RAG Assistant at Pokja AI, LTDKA

Hasanuddin University's institutional academic assistant, built end to end from the interface and backend to the AI pipeline: three-tier OCR ingestion, dense retrieval with reranking, a six-layer safety and routing pipeline, and a vision-language model served with vLLM on one GPU.

Year
2026
Kind
LLM System
Role
AI Engineer (Part-time): interface, backend and AI pipeline
Duration
February 2026 to present
With
Part-time, alongside my studies
For
Pokja AI, Institute for Digital Transformation and Artificial Intelligence (LTDKA), Universitas Hasanuddin

Question

  1. 1Keyword filter
  2. 2Llama Guard moderation
  3. 3IndoBERT intent classifier
  4. 4Private API handler
  5. 5RAG pipeline
  6. 6Output filter

Answer

FIG. 01Six layers between a question and its answer
Problem
University knowledge lives in heterogeneous PDFs, many of them scanned, and an institutional assistant has to answer from those documents safely and at the scale of a whole campus.
Approach
A retrieval pipeline built on Qwen3 embeddings, a BGE reranker and Qdrant, with Redis semantic caching, a three-tier OCR ingestion strategy, six layers of safety and routing, and Qwen3-VL-8B served through vLLM behind FastAPI and Nginx.
Result
In development. Load testing is aimed at 500 concurrent users; that figure is a target, not yet a result.

Built with

  • Python
  • FastAPI
  • Qdrant
  • Redis
  • vLLM
  • Qwen3-Embedding-0.6B
  • BGE Reranker
  • Qwen3-VL-8B-Instruct
  • Llama Guard
  • IndoBERT
  • PyMuPDF
  • Tesseract
  • Nginx
  • Docker

Scanned PDFs, and answers that must come from them

Students and staff ask an academic assistant about rules, schedules and procedures that are written down in university documents. Those documents are PDFs of very different quality: some are clean text, many are scans. An assistant for an institution also cannot answer everything it is asked, and what it does answer has to come from the documents, not from the model's memory.

From document to answer

Ingestion. Documents go through a three-tier OCR strategy. PyMuPDF reads PDFs that already carry text. Tesseract handles scanned pages. Pages that defeat both fall back to a vision-language model (Qwen3-VL). The aim is a clean retrieval corpus from sources that were never written to be machine-read.

Retrieval. Queries and passages are embedded with Qwen3-Embedding-0.6B and stored in Qdrant. A BGE reranker reorders the candidates before generation. Redis keeps a semantic cache, so a question that has effectively been asked before does not pay for retrieval and inference again.

Safety and routing. Every request passes six layers: a keyword filter, Llama Guard moderation, an IndoBERT intent classifier, a handler for private API requests, the RAG pipeline itself, and an output filter.

Serving. Qwen3-VL-8B-Instruct is served with vLLM behind FastAPI and Nginx on a single NVIDIA L40S. Serving parameters such as GPU memory utilisation and batching are tuned against load tests.

Where it stands

The system is in development. Load testing is working toward 500 concurrent users. That number is the target the tests are aimed at, not a measured result.

Screens of the assistant are not shown here: it is an internal system of the university.

Institution: LTDKA, Universitas Hasanuddin · LTDKA on Instagram