Architecture

A meaning layer, not a retrieval replacement.

QueryProcessor adds measured structure to the question. Semantic retrieval and NEC source chunks remain responsible for finding and grounding the answer.

Evidence-first answering path

  1. Step 1

    Student question

    Natural language, shorthand, spelling variation, or a follow-up.

  2. Step 2

    NLP / NLU

    Normalize text and extract intent, entity, department, question type, and year.

  3. Step 3

    Hybrid retrieval

    Embed both canonical and original formulations; combine FAQ, Pinecone, and keyword signals.

  4. Step 4

    Evidence selection

    Re-rank the most relevant NEC chunks before answering.

  5. Step 5

    Grounded response

    Ollama receives only the selected NEC evidence and query context.

NEC Assist prepares a meaningful retrieval query; it does not replace evidence retrieval.

NLP → hybrid retrieval → grounded answer

⚡Built with GenMB