liveBook · Manning

Synthetic data

As explained in AI-Powered Search

Synthetic training data is artificially generated data created to support the training or evaluation of machine-learning models.

Synthetic data is artificially generated training or evaluation data. In search, foundation models can generate domain-specific queries, documents, and relevance signals when user-behavior data is scarce. section 15.2.3

A practical pipeline supplies an LLM with several related search results, asks for queries that should retrieve them, and requests a result index for each query. The generated judgments can then become query-document relevance pairs. Related documents provide niche context and improve query specificity compared with a single document. section 15.2.3

Generating judgments for minimalist-shoe searches

For results retrieved by “What are minimalist shoes?”, the prompt produces queries such as “What is the definition of a minimalist shoe?” and “Are minimalist shoes suitable for all terrains?”, paired with result indexes. A parser converts those indexes into records containing each query and its relevant document ID. section 15.2.3

Listing 15.6 A prompt that generates queries describing documents
What are some queries that should find the following documents?  List at
least 5 unique queries, where these documents are better than others
in an outdoors question and answer dataset. Be concise and only
output the list of queries, and a result number in the format [n] for
the best result in the resultset. Don't print a relevance summary at
the end.

### Results:
{resultset}

Use the prompt template to request multiple concise queries and a best-result index from a supplied result set. section 15.2.3

How AI-Powered Search covers it

How deep it goes
Demonstrates prompting, multi-document context, generated judgments, and parsing, but does not detail foundation-model training internals.
Examples
Uses an outdoors collection, minimalist-shoe queries, retrieved result sets, relevance indexes, and parsed query-document records.
What it assumes
Assumes familiarity with queries, documents, search results, and foundation models while illustrating the generation workflow directly.
What you can do after
Apply it via an LLM prompt and parser to create synthetic query-document relevance pairs for search training.
How it connects
Connects foundation models, prompt engineering, relevance judgments, signals boosting, click models, and learning to rank.

Also explained in

Compare how 15 books explain synthetic data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.