Back to directory

UniversalRAG

A research framework for retrieval-augmented generation across text, image, video, and mixed-granularity corpora, using a learned or training-free router to pick the right corpus per query.

UniversalRAG

UniversalRAG is a retrieval-augmented generation framework, presented as an ACL 2026 paper, that retrieves across corpora of different modalities and granularities rather than assuming a single fixed one. A modality-aware routing mechanism dynamically identifies the most appropriate modality-specific corpus for each incoming query, addressing gaps between modalities and the limits of fixed-granularity retrieval used in typical RAG setups.

The released code covers preprocessing datasets and extracting embeddings for queries and corpora across modalities, training a router, such as a vision-language model or a smaller text model, or using a training-free router such as a general-purpose LLM, running inference with a chosen router, and evaluating the resulting routed retrieval against a target dataset with a vision-language model of choice. Dependencies are managed with uv, and multi-GPU preprocessing is controlled through a device list.

More in RAG

See all 540
  • ai·rete·rag

    ai-rete-rag.com

    A platform that pairs a Rete rule engine with retrieval-augmented generation, so deterministic rules decide an outcome and grounded retrieval explains the decision in plain language.

  • Xtriever

    github.com

    A hybrid retrieval engine for retrieval-augmented generation, written in Rust to run on-device on a phone or a laptop, combining lexical BM25 search, dense embedding search, reciprocal-rank fusion and cross-encoder re-ranking with no server.

  • FileFlux

    github.com

    A .NET library that turns PDF, DOCX, HWP and other documents into optimized chunks for RAG systems, through a five-stage pipeline built on high-performance Rust FFI readers.