# Glossary

Plain answers to the questions people ask about search APIs, retrieval for language models, and web data.

Each entry opens with a short answer you can quote, then explains the idea, and ends by saying plainly where MillionShort fits and where it does not.

## Web search APIs

- [Search API vs SERP API: what's the difference?](https://millionshort.com/docs/glossary/search-api-vs-serp-api): A search API queries an index and returns results made for programs, while a SERP API replays a search engine's results page as a person would see it.
- [What is a SERP API?](https://millionshort.com/docs/glossary/what-is-a-serp-api): A SERP API fetches a search engine's results page and returns what it displays, such as rankings, ads and featured snippets, as structured JSON.
- [What is a web search API?](https://millionshort.com/docs/glossary/what-is-a-web-search-api): A web search API lets software query an index of the web and get titles, URLs and text passages back as JSON instead of a results page made for people.
- [What is agentic search?](https://millionshort.com/docs/glossary/what-is-agentic-search): Agentic search is web search run by an AI agent that chooses its own queries, reads the results and searches again until the task is done.
- [What is an answer engine?](https://millionshort.com/docs/glossary/what-is-an-ai-answer-engine): An answer engine replies to a query with one written answer drawn from retrieved sources, where a search engine would return a list of links.
- [What is an independent search index?](https://millionshort.com/docs/glossary/what-is-an-independent-search-index): An independent search index is one a provider builds and runs itself, so its results, prices and terms do not depend on another search engine.
- [What is long-tail search?](https://millionshort.com/docs/glossary/what-is-long-tail-search): Long-tail search reaches the large part of the web below the most popular sites, usually by removing the top-N most popular sites from the results.
- [What is search index freshness?](https://millionshort.com/docs/glossary/what-is-search-api-freshness): Search index freshness is the lag between a page being published or changed and that page, in its current form, being retrievable through a search API.

## RAG and grounding

- [RAG vs fine-tuning: which do you need?](https://millionshort.com/docs/glossary/rag-vs-fine-tuning): Use RAG when a model needs current or private facts at answer time, and fine-tuning when it needs a new behavior, style or format.
- [What are primary sources in RAG?](https://millionshort.com/docs/glossary/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.
- [What is context engineering?](https://millionshort.com/docs/glossary/what-is-context-engineering): Context engineering is deciding what goes into a language model's context window, in what form and in what order, so that scarce tokens carry signal.
- [What is LLM grounding?](https://millionshort.com/docs/glossary/what-is-llm-grounding): LLM grounding ties a model's output to verifiable outside information, such as retrieved documents, so that each claim can be traced to a source.
- [What is llms.txt?](https://millionshort.com/docs/glossary/what-is-llms-txt): llms.txt is a proposed convention for a markdown file at a site's root that gives AI systems a short, curated map of the site's most useful content.
- [What is RAG?](https://millionshort.com/docs/glossary/what-is-rag): RAG (retrieval-augmented generation) fetches relevant documents and hands them to a language model as context, so it answers from evidence.
- [What is RAG noise?](https://millionshort.com/docs/glossary/what-is-rag-noise): RAG noise is the irrelevant, repeated or low-quality content that reaches a retrieval pipeline's context window and makes the answers worse.
- [What is source diversity in RAG?](https://millionshort.com/docs/glossary/what-is-source-diversity): Source diversity in RAG means drawing evidence from many independent sites, publishers and document types, not several copies of the same popular pages.

## Web data APIs

- [Scraping vs crawling: what's the difference?](https://millionshort.com/docs/glossary/scraping-vs-crawling): Scraping extracts content from pages whose URLs you already know, while crawling discovers pages by following links from a starting point.
- [What is headless browser scraping?](https://millionshort.com/docs/glossary/what-is-a-headless-browser): Headless browser scraping loads a page in a real browser with no visible window, runs its JavaScript, and then extracts the rendered content.
- [What is a web scraping API?](https://millionshort.com/docs/glossary/what-is-a-web-scraping-api): A web scraping API is a hosted service that fetches a webpage for you and returns its content as clean markdown, text or JSON in one HTTP call.
- [What is a webset?](https://millionshort.com/docs/glossary/what-is-a-webset): A webset is a list of entities, such as companies, people or papers, built from web search and checked item by item against criteria you wrote.
- [What is a website crawler?](https://millionshort.com/docs/glossary/what-is-a-website-crawler): A website crawler is a program that visits a site's pages by starting from a URL, downloading each page and following the links it finds.
- [What is document parsing?](https://millionshort.com/docs/glossary/what-is-document-parsing): Document parsing converts files such as PDF, DOCX and XLSX into text or markdown a language model can read, keeping headings and tables intact.
- [What is facet filtering?](https://millionshort.com/docs/glossary/what-is-facet-filtering): Facet filtering narrows a set of results by structured attributes such as category, domain or date, usually with a count shown for each value.
- [What is HTML to markdown conversion?](https://millionshort.com/docs/glossary/what-is-html-to-markdown): HTML to markdown conversion turns a webpage's markup into plain text that keeps headings, lists, links and tables, and drops tags, scripts and layout.
- [What is LLM-ready data?](https://millionshort.com/docs/glossary/what-is-llm-ready-data): LLM-ready data is web or document content cleaned of boilerplate and put in a consistent format, usually markdown or JSON, that a model can use directly.
- [What is OCR?](https://millionshort.com/docs/glossary/what-is-ocr): OCR (optical character recognition) recognizes text in images such as scanned pages, photos and screenshots and turns it into machine-readable characters.
- [What is robots.txt and how does it affect AI crawlers?](https://millionshort.com/docs/glossary/what-is-robots-txt): Robots.txt is a plain-text file at a site's root that tells crawlers, including AI crawlers, which paths they may visit, and following it is voluntary.
- [What is structured data extraction?](https://millionshort.com/docs/glossary/what-is-structured-data-extraction): Structured data extraction pulls specific fields such as prices, names and dates out of webpages and returns them as machine-readable JSON.
