Menu

Use cases

Search for RAG pipelines

Retrieval decides what your model can say. MillionShort gives a RAG pipeline ranked passages from the web and specialist sources, with controls over which sites are allowed in.

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

A RAG pipeline answers a question in two steps: it retrieves text, then a model writes from that text. The model can only be as good as what was retrieved. When the retrieval step is web search, three things usually go wrong.

The problem

How MillionShort addresses it

A retrieval call

This asks two sources for eight passages of up to 1,500 characters, keeps documentation and tutorials among the web results (the page-type filter acts on web and news, so the response names discussions in a filter_not_applied warning), drops results from sites with a risk label, and blocks one site:

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "rate limiting with a token bucket",
    "sources": ["web", "discussions"],
    "num_results": 8,
    "max_chars_per_result": 1500,
    "page_types": ["documentation", "tutorials"],
    "exclude_domains": ["example.com"],
    "exclude_risky": true
  }'

The call searches two sources, so it costs 2 credits. The Python SDK is not published to a package registry yet; until it is, send the same request with any HTTP client.

What it does not do

This page as Markdown ยท llms.txt