Menu

Glossary

What is source diversity in RAG?

Source diversity in RAG means drawing evidence from many independent sites, publishers and document types, not several copies of the same popular pages.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Source diversity in RAG means retrieving evidence from a wide range of independent origins: different domains, publishers, viewpoints and document types, rather than several near-identical pages from the same few popular sites. Diverse retrieval reduces duplicated context, exposes the model to dissenting or niche information, and produces answers that reflect more of the web than its most popular part.

Why does source diversity matter for RAG?

Information in a context window is only as valuable as it is new. When a retriever returns eight pages that all rewrite the same wire story, the model receives one source's worth of information at eight sources' token cost. Worse, it gets a false sense of consensus, because an error repeated across copies reads as corroboration. Diversity is the remedy: independent origins can confirm, contradict or extend one another, which lets a grounded system weigh evidence instead of counting echoes.

Diversity also protects against a subtler failure: systematic blind spots. Web ranking concentrates attention on a small set of large, heavily optimized domains. A retriever that only samples that head inherits its perspective, which is mainstream and commercial, and misses the forums, personal blogs, academic pages and niche documentation where firsthand expertise often lives.

What does diversity look like in practice?

Useful axes to vary:

A quick diagnostic: count the unique domains in your top results, and measure how similar the retrieved chunks are to each other. Few domains and high similarity mean you are paying for noise, not evidence.

How do you retrieve diversely?

Remove duplicates aggressively, enforce limits per domain, and query beyond the popular head of the web. Popularity signals are part of what causes the problem, so one direct alternative is to filter the top-N most popular sites out of the results, as long-tail search does, so that the tail of the web can surface at all.

Where MillionShort fits

MillionShort gives you two of those axes as request fields. Popularity tier: remove_top_sites removes the N most popular sites, and every result carries a popularity signal you can check. Publisher type: one call can search up to 5 of 13 sources, for example web, discussions and academic together, and returns one merged list with duplicates removed. Each result names its site and source, so the unique-domain count above is one line of code.

There is no per-domain cap field. If you need one, apply it to the list yourself, or use bury_domains for sites that dominate.

This page as Markdown ยท llms.txt