Challenge

Multimodal Macro-Reasoning RAG for Colonoscopy Analysis with LlamaIndex and Together AI

Standard RAG systems often fail on complex technical documents like medical reports because they focus on 'micro-matching' (finding specific text chunks) while ignoring 'macro-reasoning' (understanding the overall procedural context). Inspired by the 'DualG-MRAG' and colonoscopy foundation model research, this challenge requires you to build a multimodal RAG pipeline using LlamaIndex. You will implement a dual-graph approach where one graph tracks the high-level medical procedure (macro) and the other handles specific visual/textual findings (micro). You will use Together AI's high-speed inference for Llama 3.2 Vision to process both medical imagery and textual routine reports.

Computer VisionHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Standard RAG systems often fail on complex technical documents like medical reports because they focus on 'micro-matching' (finding specific text chunks) while ignoring 'macro-reasoning' (understanding the overall procedural context). Inspired by the 'DualG-MRAG' and colonoscopy foundation model research, this challenge requires you to build a multimodal RAG pipeline using LlamaIndex. You will implement a dual-graph approach where one graph tracks the high-level medical procedure (macro) and the other handles specific visual/textual findings (micro). You will use Together AI's high-speed inference for Llama 3.2 Vision to process both medical imagery and textual routine reports.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Loading datasets...
Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

Phase Alignment

Fails if findings from the 'Insertion' phase are misattributed to 'Withdrawal'.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

Retrieval Precision

Percentage of retrieved chunks that are clinically relevant. • target: 0.88 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Configure LlamaIndex for Multimodal RAG: Set up a MultiModalVectorStoreIndex to handle both colonoscopy images and report text.

  • Integrate Together AI Inference: Use Together AI's API to run Llama 3.2 Vision for rapid image feature extraction and grounding.

  • Build the Macro-Reasoning Graph: Use LlamaIndex Property Graphs to model the standard phases of a colonoscopy (insertion, withdrawal, inspection).

  • Implement Micro-Matching Retrieval: Develop a specialized retriever that finds high-resolution visual evidence for specific polyps or lesions.

  • Orchestrate Dual Retrieval: Write a custom query engine that fuses findings from the macro-graph (contextual severity) and micro-matching (exact location).

  • Grounding via Foundation Models: Apply techniques from the 280,000-report vision-language model research to align agent responses with clinical standards.

How this agent runs

The system must accurately identify the 'withdrawal phase' findings across 5 different colonoscopy reports, correctly linking visual polyp images to the textual size description.

Preview configuration

Challenge input

Zip file containing 10 images and 5 report PDFs.

LlamaIndex

Expertly handles the dual-graph retrieval and multimodal indexing required for medical data.

Together AI

Provides low-latency access to large vision-language models for procedural analysis.

Evaluated output

Structured Diagnostic Summary (JSON).

Checks for
  • Fails if findings from the 'Insertion' phase are misattributed to 'Withdrawal'.
  • Percentage of retrieved chunks that are clinically relevant. • target: 0.88 • range: 0-1
Proof of success
  • Benchmark: Med-RAG Benchmark
  • Retrieval Precision target: 0.88
  • 1 public reference case
Runtime evidence
  • Docker execution harness
  • Python sandbox
View technical recipe

Configured tools

Environment
  • Modal · Optional
Action Space
  • RAI · Required
  • Llama Index · Optional
Policy Serving
  • Modal · Optional

Evaluation contract

  • Phase Alignment · Weight 1
  • Retrieval Precision · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Run this agent on your dataset and AI stack

Bring your dataset, model providers, and success criteria. We will scope the right managed run for your team.

Scope a managed run
Start from your terminal
$npx -y @versalist/cli start multimodal-macro-reasoning-rag-for-colonoscopy-analysis-with-llamaindex-and-together-ai

[ok] Wrote CHALLENGE.md

[ok] Wrote .versalist.json

[ok] Wrote eval/examples.json

Requires VERSALIST_API_KEY. Works with any MCP-aware editor.

Docs
Manage API keys
Explore

Find another challenge

Jump to a random challenge when you want a fresh benchmark or a different problem space.

Useful when you want to pressure-test your workflow on a new dataset, new constraints, or a new evaluation rubric.

Frequently Asked Questions about Multimodal Macro-Reasoning RAG for Colonoscopy Analysis with LlamaIndex and Together AI