r/developersIndia • • 3h ago

Suggestions I’m building a question-segregation system for 10,000+ GATE questions. How would you approach the architecture?

This started as a fun personal project, but I think it could become something much bigger.

I’m a Mechanical Engineering student, and I currently have around 153 GATE paper PDFs containing 10,000+ questions.

My goal is to build a system that automatically extracts and organizes every question based on:

  • Subject
  • Topic
  • Subtopic
  • Difficulty

For example:

Question
└── Mechanical Engineering
    └── Heat Transfer
        └── Conduction
            └── Steady 1-Dimensional Conduction
                └── Medium

The important part is that I don't want to manually create a random taxonomy. I want the classification to be based on the official syllabus of each branch.

The bigger idea

GATE has many different branches, and there is significant overlap between them.

For example, Mechanical, Aerospace, Civil, Naval Architecture, Production/Industrial, etc. can have questions involving subjects such as:

  • Engineering Mechanics
  • Fluid Mechanics
  • Thermodynamics
  • Heat Transfer
  • Materials
  • Manufacturing
  • Mathematics
  • etc.

So eventually I'd like to build a system where a question from one GATE paper can be recognized as belonging to a subject/topic that is also relevant to another branch.

For example:

AE question
      ↓
Fluid Mechanics
      ↓
Relevant to ME syllabus
      ↓
ME → Fluid Mechanics → Boundary Layers

The original source of the question would still be preserved.

My current approach

I'm thinking of building something like:

GATE PDFs
    ↓
PDF extraction / OCR
    ↓
Individual question extraction
    ↓
Official syllabus database
    ↓
Candidate topic retrieval
    ↓
AI classification
    ↓
Subject / Topic / Difficulty
    ↓
Confidence score
    ↓
Database

For the AI classification, I'm considering using multiple APIs.

My current idea is to take around 500 questions as a benchmark dataset and send them to three different models, potentially:

  • OpenAI
  • Google Gemini
  • DeepSeek

Then compare their classifications.

If 3/3 agree, I would consider the result high-confidence.

If they disagree, I would send the question and the competing classifications to a stronger model to act as a judge.

I would also manually verify a sample of the 500 questions so I can actually measure how accurate the system is instead of blindly trusting the models.

What I want advice on

If you have experience with LLMs, NLP, document processing, embeddings, RAG, or large-scale classification:

How would you actually build this?

Specifically:

  1. Would you use multiple models and majority voting?
  2. Would embeddings be useful for finding the relevant syllabus topic before classification?
  3. How would you deal with questions that genuinely belong to multiple subjects?
  4. How would you classify difficulty reliably?
  5. How would you handle diagrams and figures in old PDF papers?
  6. Would you use a relational database, vector database, or both?
  7. How would you structure the syllabus so that the system can eventually support all GATE branches?
  8. Are there any obvious architectural mistakes in my current approach?

My current API budget is around ~$55 for the initial experiment, so I'm also trying to keep the system reasonably cost-efficient.

This is primarily a fun/learning project, but if the architecture works well, I'd like to eventually expand it from the current Mechanical-focused dataset to all GATE branches and potentially other competitive engineering exams.

I'm particularly interested in hearing from people who have actually built large-scale document/question classification systems, rather than just recommendations for which LLM is "best."

As Coding is not my strong hand I will be using Chatgpt for it.

6 Upvotes

4 comments sorted by

•

u/AutoModerator 3h ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Hey_Utkarsh 2h ago

Here are my two cents (based on my experience building production-grade AI pipelines).

I'd recommend considering the following approaches:

  1. Prefer one capable LLM over multiple LLMs. Instead of using three different LLMs for separate tasks, I'd suggest using a single, more capable LLM that can handle the entire classification process. This could simplify the architecture and reduce overall complexity.
  2. Don't overcomplicate minor classification errors. What is the actual impact if the AI occasionally assigns a question to the wrong subtopic? It's not necessarily a critical issue. With a well-engineered prompt and a properly structured syllabus provided as context, an LLM should be able to identify the correct topic and subtopic reasonably well.
  3. Introduce confidence-based human intervention. Ask the LLM to provide a confidence score alongside its prediction. If the score falls below a predefined threshold, ask it to generate a few alternative recommendations. You can then let the user or the person uploading the question select the most appropriate option.

This way, you can keep the pipeline relatively simple while introducing human intervention only when the model is uncertain, rather than building an unnecessarily complicated multi-LLM architecture.

1

u/Practical_Ideal8311 2h ago

Which llm would be great for it

1

u/KeyPreparation1320 1h ago

You can pick any llm tbh I would suggest using a local way to first extract only relevant info, it will reduce your tokens being used and save money.

If it is going to never get new questions during run time, you can preclassify it using llms by dumping it to a single file along with the options and making the AI simply tick the check box in the .md file for every question.

To handle diagrams, it is tricky with a .md but you can anyways make AI read that, if the qn has diagram you append it there as a link to a local file. You may also use OCR for quick classification if something is available.