Downloads · 30 days
0
anteyuh/medvqa-bm25-llava-rag
medvqa-bm25-llava-rag is a machine learning model from anteyuh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This repository contains a Hugging Face submission package for ImageCLEF MEDVQA-GI 2026, Task 1.
Downloads · 30 days
0
Access
Public
Updated May 6, 2026
Repo size
113 MB
Likes
0
Public
Click a slice to open those files.
.pkl66.2 MB · 100%
From the Hugging Face model README
This repository contains a Hugging Face submission package for ImageCLEF MEDVQA-GI 2026, Task 1.
The submitted system is a BM25 Retrieval-Augmented Generation (RAG) ranking pipeline built around LLaVA-1.5-7B with 4-bit quantization.
The system follows a retrieval-and-ranking approach rather than direct free-form generation:
This corresponds to the final selected project variant:
.
├── submission_task1.py
├── requirements.txt
├── index/
│ ├── bm25_index.pkl
│ └── evidence_index.pkl
└── medvqa_rag/
├── __init__.py
├── answer.py
├── bm25_retriever.py
├── evidence_index.py
├── llava_wrapper.py
├── normalise.py
├── pipeline.py
├── prediction.py
├── prompt.py
└── schema.py
The competition entrypoint is:
submission_task1.pyThis script:
SimulaMet/Kvasir-VQA-test,index/,medvqa_rag.answer,predictions_1.json.The repository exposes a minimal inference API through medvqa_rag.answer:
from medvqa_rag.answer import load, answer
load()
pred = answer(image=image, question=question, question_id=img_id)
medvqa_rag.* module paths to ensure compatibility during loading.Install dependencies:
pip install -r requirements.txt
Run the submission script:
python submission_task1.py
This repository was prepared for the AIR SS2026 course project on ImageCLEF MEDVQA-GI and packages the final BM25 RAG-rank submission variant in a competition-compatible Hugging Face repository format.
This submission uses the Kvasir-VQA family of gastrointestinal endoscopy VQA datasets.
The retrieval evidence was built from the training split of SimulaMet/Kvasir-VQA-x1.
References:
This repository uses the Kvasir-VQA-x1 dataset. If you use this repository or the dataset in academic work, please cite the associated dataset paper.
@incollection{Gautam2025Oct,
author={Gautam, Sushant and Riegler, Michael and Halvorsen, P{\aa}l},
title={Kvasir-VQA-x1: A Multimodal Dataset for Medical Reasoning and Robust MedVQA in Gastrointestinal Endoscopy},
booktitle={Data Engineering in Medical Imaging},
year={2025},
publisher={Springer, Cham},
doi={10.1007/978-3-032-08009-7_6}
}
@article{Gautam2025Jun,
author = {Gautam, Sushant and Riegler, Michael A. and Halvorsen, P{\aa}l},
title = {Kvasir-VQA-x1: A Multimodal Dataset for Medical Reasoning and Robust MedVQA in Gastrointestinal Endoscopy},
journal = {arXiv},
year = {2025},
month = jun,
eprint = {2506.09958},
doi = {10.48550/arXiv.2506.09958}
}