Skip to content
OnlyProjects
M.Tech / M.E. · Data ScienceFor educational purposes only

BM25 vs Sentence-Embedding Retrieval on the data.gov.in Catalogue: A Significance-Tested Query-Level Evaluation

Graded-relevance, significance-tested comparison of sparse and dense retrieval on India's open-data catalogue

Mapped to your syllabusAnna University M.E. Regulation 2021 · CP4411 Project Work II · Semester 4

Overview

1 min read

OpenData-IR is an evaluation study that measures, with a defensible protocol, whether transformer-based sentence-embedding retrieval actually finds government datasets better than the classic BM25 lexical ranker when searching the metadata catalogue of data.gov.in — India's national open-government data platform.

data.gov.in publishes a very large catalogue of government datasets — over a lakh API-exposed resources by independent counts — each described by a title, description, sector tags and publishing organisation. Finding the right dataset is the first hurdle every student, journalist and analyst faces, and the portal's search is keyword-based: ask for "rainfall" and a dataset described as "actual precipitation" can rank below weaker matches. Dense retrieval promises to close that vocabulary gap, but adopting heavier infrastructure without measured evidence is engineering folklore.

The study builds a clean corpus of catalogue metadata through the portal's official resource APIs, designs a sampled query set of realistic information needs, collects graded relevance judgments (0/1/2) under a pooling protocol fixed in advance, and scores both systems with nDCG@10, MAP and MRR. Because single-number comparisons mislead, every pairwise claim is tested at query level with the Wilcoxon signed-rank test. Index build time, memory footprint and query latency of both index families are measured on the same laptop, so the accuracy-versus-cost trade-off is stated numerically, not rhetorically.

The deliverable is a paper-style study — corpus snapshot, judgment set, evaluation harness, results tables with confidence statements and an error analysis — executable end to end on a personal machine.

Relevant for
Tamil Nadu
Level
Intermediate · 24 weeks · solo
Common at
Anna University, Chennai, Jawaharlal Nehru Technological University Hyderabad, Visvesvaraya Technological University
Updated
Nov 2026

Syllabus alignment

Anna University · M.E. Regulation 2021

CP4411 · Project Work II · Semester 4 · 12 credits

Subjects this project applies
  • RM4151 Research Methodology & IPR
  • CP4155 Advanced Data Structures Lab
  • CP4212 Software Engineering Lab
  • Elective machine-learning and data-science coursework (Sem 2)
How it is evaluated

See your department's project guidelines.

Also fits: JNTUH M.Tech R22, VTU M.Tech 2022 Scheme.

What's in the box

11 parts · 5 free · 3 previewed · 3 unlock for ₹2,000

Problem & synopsis

6 min read

Problem statement

India's open-data catalogue holds government datasets across agriculture, health, education, finance and utilities, but discovery still depends on keyword matching between a user's words and a record's words. Department authors use official terminology — scheme names, acronyms, technical terms — while citizens and analysts phrase needs in everyday language, so relevant records are missed ("crop insurance" against the actual scheme name) and near-duplicates crowd out the right one. Whether sentence-embedding retrieval fixes this on real catalogue metadata is asserted far more often than it is measured, and no graded-relevance benchmark for data.gov.in is public. An organisation upgrading its search must therefore either trust results borrowed from foreign web collections or run an unstructured bake-off. This study produces the missing evidence: a documented corpus, a pre-declared query and judgment protocol, head-to-head nDCG/MAP/MRR results with statistical significance, and measured latency and memory costs — turning the retrieval choice for government catalogue search into a defensible engineering decision rather than an article of faith.

Synopsis

Abstract

This dissertation evaluates lexical (BM25) and sentence-embedding (dense) retrieval over the metadata catalogue of data.gov.in, India's national open-government data platform. A corpus of dataset records (title, description, sector, organisation) is assembled through the portal's official resource APIs; a sampled query set of 30–40 realistic information needs is judged for graded relevance under a pre-declared pooling protocol; and both systems are compared on nDCG@10, MAP and MRR with query-level Wilcoxon signed-rank tests. The study also measures index build time, index size and query latency, and closes with an error analysis locating where dense retrieval earns its cost.

Introduction

Open data creates value only when it can be found. A citizen looking for crop-insurance statistics, a journalist verifying procurement numbers and a researcher building a district panel all start from the catalogue's search box. Metadata records are short, jargon-heavy and written by dozens of departments with inconsistent vocabulary, so keyword overlap is a fragile basis for ranking. The question is empirical: on this catalogue, does embedding-based ranking measurably improve retrieval quality over a well-tuned classical baseline?

Existing system and literature gap

The portal's discovery layer is keyword-led. The information-retrieval literature — from Cranfield through TREC practice to modern neural-ranking work — establishes BM25 as a strong baseline and dense retrieval as strong on large web collections. But published comparisons rarely cover Indian government catalogues: no public graded-relevance benchmark exists for data.gov.in, and web-collection findings do not automatically transfer to short, department-authored records where relevance often hinges on one scheme name or acronym. Adoption arguments for embeddings are asserted far more often than they are measured on this domain.

Proposed work

  • Build a provenance-logged corpus via the official resource APIs (paginated harvest, cleaning, deduplication, snapshot date).
  • Sample and freeze a query set from four sources: sector names, published scheme names, analyst tasks and everyday paraphrases.
  • Collect graded judgments (0/1/2) by pooling the top 10 of each system plus the portal's own first page; double-judge 20% and report inter-assessor agreement.
  • Implement BM25 (k1/b tuned only on a development slice of queries) and a transformer-based sentence-embedding retriever (cosine similarity) behind one harness; an optional reciprocal-rank-fusion hybrid is a stretch goal.
  • Score nDCG@10, MAP and MRR; test every pairwise difference with the Wilcoxon signed-rank test.
  • Profile index build time, index size and p50/p95 latency on identical hardware, and classify per-query failures into an error taxonomy.

Feasibility

  • Technical: tens of thousands of short records is a small corpus by IR standards; BM25 via rank-bm25 and embeddings via sentence-transformers run on a 16 GB laptop, with FAISS or NumPy handling vectors.
  • Data: the resource APIs are free with a registered key; every request is logged so the corpus is auditable.
  • Economic: no licences or paid services; the main cost is judgment effort, bounded by the pooling protocol.
  • Operational (research): the harness is fully scripted, so every number regenerates from the pinned corpus snapshot and the frozen judgment sheet.

Objectives

  1. 01Assemble a clean, provenance-logged corpus of data.gov.in dataset metadata (title, description, sector, organisation) via the official resource APIs, with a recorded snapshot date and documented deduplication rules.
  2. 02Design a sampled, frozen query set of 30–40 realistic catalogue information needs covering acronyms, scheme names, plain-language paraphrases and multi-topic queries.
  3. 03Collect graded relevance judgments (0 = not relevant, 1 = partially relevant, 2 = highly relevant) under a pooling protocol with depth 10 per system, double-judging a 20% sample and reporting inter-assessor agreement.
  4. 04Implement BM25 (with k1/b tuned only on a development slice) and a transformer-based sentence-embedding retriever (cosine similarity) behind one common evaluation harness.
  5. 05Evaluate both systems on nDCG@10, MAP and MRR and test every pairwise difference at query level with the Wilcoxon signed-rank test.
  6. 06Measure index build time, index size and p50/p95 query latency for both index families on identical hardware, stating the accuracy-per-cost trade-off numerically.
  7. 07Analyse per-query failures into an error taxonomy (vocabulary mismatch, acronym coverage, metadata sparsity, multi-topic drift) that explains where dense retrieval wins and loses.

Scope

In scope

  • Catalogue metadata records (title + description + sector/organisation fields) as the document unit; English-language metadata.
  • Two primary systems — BM25 and one sentence-embedding family — plus an optional reciprocal-rank-fusion hybrid; one pinned evaluation snapshot of the catalogue.
  • 30–40 judged queries; 3-point graded judgments via pooling; nDCG@10, MAP and MRR; Wilcoxon signed-rank tests; CPU latency and memory measurements on one machine.

Out of scope

  • Full-text search inside the datasets' files (CSV/PDF contents); only metadata is indexed.
  • Multilingual retrieval (Hindi, Telugu, Tamil query variants) — listed as future work.
  • Learning-to-rank models, query autocompletion, click modelling and user-interface redesign.
  • A production deployment; the study stops at measured evidence and a deployment recommendation.
  • User studies with real portal visitors; relevance comes from the assessor protocol, not live traffic.

Methodology

The study uses a quantitative, comparative-experimental research design: the protocol is fixed before scoring, all comparisons are paired at query level, and every artefact (corpus snapshot, judgment sheet, run configuration) is versioned. The evaluation protocol — query sources, pooling depth, grade scale, metrics, statistical test — was written down before the first system ran, following the research-methodology discipline of RM4151, so results cannot be reshaped by re-deciding the protocol after seeing them.

PhaseWeeksActivitiesDeliverable
Survey and protocol design1–4IR evaluation literature (Cranfield/TREC practice, nDCG, pooling, significance testing); write the protocol pre-declarationSurvey chapter + frozen protocol
Corpus construction5–8Paginated harvest via the resource APIs; cleaning, deduplication, field selection; snapshot and data-quality reportVersioned corpus snapshot
Harness and systems9–11Implement indexers, retrievers and metrics behind one interface; tune BM25 k1/b and choose the embedding model on a development slice onlyReproducible harness
Query set and judgments12–15Sample and freeze queries; pool results (depth 10 per system plus portal order); grade 0/1/2; double-judge 20% and compute agreementJudgment sheet
Runs and statistics16–19Score all systems; nDCG@10/MAP/MRR; per-query Wilcoxon tests; latency and memory profilingResults tables
Error analysis and writing20–24Error taxonomy, qualitative examples, dissertation, slides and defence preparationDissertation + presentation

Relevance protocol (declared before scoring). Queries are sampled from four sources — sector names, real scheme names published on the portal, analyst-style tasks and everyday paraphrases — then frozen. For each query, pooling merges the top 10 results from BM25, the top 10 from the embedding retriever and the portal's own first page; each pooled record is graded 0/1/2 against its full metadata page. A second assessor re-judges a 20% stratified sample; Cohen's kappa is reported, and disagreements are resolved by re-reading the record together before any system is scored.

Leakage-free indexing. Indexes are built from the corpus snapshot only — no query text and no judgment information ever enters an index. Embedding-model choice and BM25 tuning touch only the development slice of queries; the judged set is untouched until the final run, and the report states this explicitly.

Study design

1 diagram · 8 tools · 2 min read

  • Python
  • pandas
  • rank-bm25
  • sentence-transformers
  • FAISS
  • scikit-learn
  • Matplotlib
  • Jupyter Notebook

OpenData-IR is a linear, scripted pipeline with strict artefact boundaries, so that corpus, judgments, runs and statistics cannot contaminate one another.

flowchart TD
  A["data.gov.in resource APIs<br/>official catalogue endpoints"] --> B["Harvest and clean<br/>dedupe, snapshot date, provenance log"]
  B --> C[("Corpus snapshot<br/>JSONL dataset records")]
  C --> D["BM25 indexer<br/>inverted index, k1/b from dev slice"]
  C --> E["Dense indexer<br/>sentence-transformers, cosine, FAISS/NumPy"]
  Q["Frozen query set<br/>30-40 information needs"] --> F["Retrieval harness<br/>one interface, both systems"]
  D --> F
  E --> F
  F --> G["Pooling depth 10<br/>BM25 top-10 + dense top-10 + portal order"]
  G --> H["Graded judgments 0/1/2<br/>20 percent double-judged, kappa reported"]
  H --> I[("Judgment sheet<br/>frozen before test runs")]
  F --> J["Ranked run tables<br/>query id, document id, rank"]
  I --> K["Metrics: nDCG@10, MAP, MRR"]
  J --> K
  K --> L["Wilcoxon signed-rank<br/>paired per-query tests"]
  K --> M["Cost profiler<br/>build time, index size, p50/p95 latency"]
  L --> N["Results tables + error taxonomy"]
  M --> N

Three boundaries carry the study's credibility. First, the corpus snapshot is an immutable artefact with a recorded harvest date; both indexers read only it, which makes the comparison fair and repeatable even as the live catalogue grows. Second, the judgment sheet is produced by the pooling step and frozen before the final scoring run — systems are never modified after judgments exist, which is what separates an evaluation from a leaderboard climb. Third, the cost profiler runs on identical hardware for both index families and reports build time, on-disk size and p50/p95 latency, so every accuracy claim in the results chapter is paired with the price of achieving it.

The harness stores each run as a tidy table (query id, document id, rank, score); metrics are computed only by joining run tables to the frozen judgment sheet, so any number in the dissertation can be recomputed with a single command from two artefacts.

Work packages

6 packages

  1. Package 01

    Catalogue ingestion and corpus builder

    Harvests dataset records page by page from data.gov.in's official resource APIs with a registered API key, logging every request; normalises title, description, sector and organisation fields; removes duplicates and near-duplicates; records the snapshot date and writes a versioned JSONL corpus with a data-quality report.

  2. Package 02

    Indexing layer (sparse and dense)

    Builds the BM25 inverted index (rank-bm25) with document-length normalisation and development-slice-tuned k1/b, and the dense index that encodes each record as a normalised sentence-embedding vector (sentence-transformers) searched by cosine similarity via FAISS or NumPy; both expose one identical search interface to the harness.

  3. Package 03

    Query set and relevance-judgment collection

    Samples and freezes 30–40 realistic information needs from sector names, published scheme names, analyst tasks and everyday paraphrases; produces the pooled candidate list (depth 10 per system plus the portal's own ordering); and drives the 0/1/2 grading worksheet, including the 20% double-judgment sample and the Cohen's kappa computation.

  4. Package 04

    Evaluation harness and metrics

    Runs every system over the frozen query set into tidy run tables and computes nDCG@10, MAP and MRR per query and in aggregate, joined strictly against the frozen judgment sheet; no other component in the pipeline may compute a metric, which keeps the pre-declared protocol structurally tamper-proof.

  5. Package 05

    Statistical testing and cost profiler

    Applies the Wilcoxon signed-rank test to paired per-query nDCG scores for every system pair, reporting effect direction and p-values alongside descriptive statistics; measures index build time, index size and p50/p95 query latency for both families on the same machine with warm caches and single-query requests.

  6. Package 06

    Error analysis

    Assigns each query a class (acronym lookup, scheme-name lookup, plain-language paraphrase, multi-topic) and each error a cause (vocabulary mismatch, acronym absent from metadata, sparse description, multi-topic drift), then tabulates wins and losses per class so the aggregate result is explained, not just reported.

Slides

14 slides · titles free · bullets, notes and the .pptx unlock

  1. Slide 1

    BM25 vs Sentence-Embedding Retrieval on the data.gov.in Catalogue

  2. Slide 2

    Why catalogue search matters

  3. Slide 3

    Research questions

  4. Slide 4

    Gap in existing work

  5. Slide 5

    Corpus: official metadata, provenance-logged

  6. Slide 6

    Query set design

  7. Slide 7

    Relevance protocol

  8. Slide 8

    Systems compared

  9. Slide 9

    Evaluation and statistics

  10. Slide 10

    Results

  11. Slide 11

    Error analysis

  12. Slide 12

    Threats to validity and limitations

  13. Slide 13

    Conclusion & future scope

  14. Slide 14

    References & artefacts

Bullets, speaker notes and the .pptx · ₹2,000

The titles above are the real outline. The rest is what you present from.

Unlock for ₹2,000

Viva questions & answers

3 of 16 answered free · 13 unlock

Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.

  1. 01Concept

    Why is BM25 still a serious baseline against embedding-based retrieval?

    BM25 is a well-understood probabilistic ranking function that rewards exact term matches with length normalisation, and relevance in catalogues often hinges on exact strings — scheme names, acronyms, ministry titles. It is also cheap and fast. A tuned BM25 frequently stays competitive with dense systems on collections like this one, so any accuracy claim for embeddings must be measured against it, not assumed from web-collection literature.

  2. 02Concept

    Explain nDCG@10 and why graded judgments matter for catalogue search.

    nDCG@10 discounts each result's relevance gain logarithmically by its rank position up to rank 10, then divides by the ideal ranking's gain so scores are comparable across queries. Graded judgments matter because catalogue relevance is not binary — a district rainfall dataset is partially relevant to a crop-insurance query — and a 0/1/2 scale lets the metric reward the best record, penalise the merely adjacent one and capture the difference.

  3. 03Concept

    What is pooling and why is it necessary in this evaluation?

    Exhaustively judging tens of thousands of records for every query is impossible, so pooling merges the top results from every system under comparison — plus the portal's own ranking — into one candidate list that is judged once. Records outside the pool are treated as non-relevant, a standard TREC practice whose bias stays small when the pool covers the top ranks of all systems, which is exactly where ranking quality is decided.

+13 more questions, with answers

Try the free ones out loud first. Your examiner will not accept “it's in the PPT”.

How to reproduce the study

1 step · unlocks with the project

Unlocks with the project · ₹2,000

1 step

Every step to carry the project out with the tools in the tech stack, in order.

Unlock for ₹2,000

READMEFIRST

253 words · unlocks with the project

What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.

Unlocks with the project · ₹2,000

253 words · ~1 min read

The checklist of things to rename, re-seed and re-think so the project reads as yours.

Unlock for ₹2,000

Instructions

302 words · unlocks with the project

How to study it, adapt it and walk your examiner through it, step by step.

Unlocks with the project · ₹2,000

302 words · ~2 min read

Report structure, formatting rules and the submission checklist your department will grade.

Unlock for ₹2,000

References

8 sources

  1. Manning, C. D., Raghavan, P. & Schütze, H., Introduction to Information Retrieval, Cambridge University Press, 2008 (free online edition)
  2. Järvelin, K. & Kekäläinen, J. (2002), "Cumulated Gain-based Evaluation of IR Techniques", ACM Transactions on Information Systems, 20(4), 422–446
  3. Robertson, S. & Zaragoza, H. (2009), "The Probabilistic Relevance Framework: BM25 and Beyond", Foundations and Trends in Information Retrieval, 3(4), 333–389
  4. Reimers, N. & Gurevych, I. (2019), "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", EMNLP-IJCNLP 2019
  5. data.gov.in — India's Open Government Data Platform: dataset catalogue and API access
  6. datagovindia — Python wrapper for discovering and querying data.gov.in APIs
  7. NIST Text REtrieval Conference (TREC) — evaluation methodology and pooling practice
  8. SciPy v1.x Reference Guide — scipy.stats (Wilcoxon signed-rank test and non-parametric statistics)

Cite this bundle

OnlyProjects. (2026). BM25 vs Sentence-Embedding Retrieval on the data.gov.in Catalogue: A Significance-Tested Query-Level Evaluation: M.Tech / M.E. Data Science project bundle [Educational resource]. https://onlyprojects.online/projects/mtech-ds-bm25-vs-embedding-retrieval-datagov-catalogue-eval

Future scope

1 min read

  • Multilingual retrieval: Hindi and regional-language query variants against English metadata, evaluated with the same protocol.
  • Learning-to-rank on the released judgment set, and a properly powered hybrid-fusion study across several embedding families.
  • Scaling the corpus to the full catalogue and re-running annually to track drift.
  • Releasing the graded query set as a public benchmark for Indian open-government catalogue search.
  • Cross-portal transfer: state-level open-data catalogues evaluated with the identical protocol to test whether conclusions hold beyond the national portal.

Keep browsing

Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.

M.Tech / M.E.

Aerospace / Aeronautical

NACA 0012 Airfoil CFD Validation Study Against XFOIL with Mesh Convergence

A mesh-converged OpenFOAM study of the NACA 0012 aerofoil validated against XFOIL and NASA's turbulence-modelling reference data

  • OpenFOAM v12 (finite-volume CFD, SA and k-ω SST models)
  • XFOIL 6.99 (panel method with integral boundary layer)
  • Gmsh and blockMesh for structured C-grid generation
  • +3

advanced24 wkSolo