# What are primary sources in RAG?

Primary sources in RAG are the original documents where information first appeared, retrieved in place of the summaries and rewrites made from them.

Primary sources in RAG are the original documents where information first appeared: research papers, official documentation, standards, filings, datasets and firsthand reports. Retrieving them instead of secondary summaries or aggregator rewrites gives a language model cleaner evidence, fewer copy-of-a-copy errors, and citations that end users can trust and verify.

## Primary vs secondary sources: what's the difference?

A primary source is the document that said it first: the peer-reviewed paper, the vendor's own changelog, the court filing, the standards document, the earnings report, the maintainer's post announcing the change. A secondary source describes, summarizes or reacts to a primary one: news coverage of the paper, a listicle about the release, a forum thread paraphrasing the documentation.

Secondary sources are not worthless. They add interpretation and make hard material accessible. The problem is degree. On the open web one primary document often spawns many secondary rewrites, each a lossy copy competing to outrank the original.

## Why do primary sources matter for RAG quality?

- **Accuracy.** Every rewrite is a chance to drop a caveat, garble a number or flatten nuance. Grounding on the original removes the telephone game.
- **Citations users trust.** "According to the regulator's filing" carries more weight, and survives scrutiny better, than "according to a blog post about the filing". For [grounded systems](https://millionshort.com/docs/glossary/what-is-llm-grounding), citation quality is product quality.
- **Less redundancy.** Secondary accounts of the same story are near-duplicates of each other, so retrieving three adds little beyond retrieving one. Separate primary documents are usually distinct, which helps [source diversity](https://millionshort.com/docs/glossary/what-is-source-diversity).
- **Detail.** Summaries leave out the tables, parameters and edge cases that agents often need.

## Why is retrieving them hard?

Search rankings lean on popularity signals, and secondary coverage is often written to win those signals. The original paper can sit below a dozen articles about the paper, so a naive top-10 retrieval fills the context window with [noise](https://millionshort.com/docs/glossary/what-is-rag-noise) before it reaches the source. Practical fixes include boosting authoritative domains, removing duplicate rewrites, searching collections that hold primary material directly, and filtering the most popular, most heavily optimized sites out of the results, which is the approach behind [long-tail search](https://millionshort.com/docs/glossary/what-is-long-tail-search).

## Where MillionShort fits

Several MillionShort controls are aimed at this problem:

- [`remove_top_sites`](https://millionshort.com/docs/search/remove-top-sites) removes results from the N most popular sites, so less-visited originals can rank.
- [Lenses](https://millionshort.com/docs/search/lenses): `boost_domains` moves sites you trust up, `bury_domains` moves others down, and `include_domains` restricts the search to a list.
- [Sources](https://millionshort.com/docs/search/sources) such as `academic`, `medical`, `law` (United States), `finance` and `contracts` search specialist material directly, next to `web` in the same call.

None of these labels a result as primary or secondary. That judgment stays with you or your model. Results come as snippets; `include_content` adds the page text we hold to `web` and `news` results, not to the specialist sources. [Primary-source research](https://millionshort.com/docs/use-cases/primary-source-research) walks through the use case.

## Related terms

- [What is RAG?](https://millionshort.com/docs/glossary/what-is-rag)
- [What is RAG noise?](https://millionshort.com/docs/glossary/what-is-rag-noise)
