liveBook · Manning

Prompt

As explained in AI-Powered Search

A prompt is input text supplied to a language model to provide instructions, questions, or contextual material.

A prompt is input text that gives a language model instructions, questions, or contextual material. In search, it can combine a user query with retrieved documents and directions for producing a grounded summary. section 15.2.2 section 2.5.2

Prompts supply context for interpreting tokens: surrounding words influence how each word part is understood. A search workflow first retrieves relevant results, then constructs a prompt containing the query, those results, and an instruction such as “Be concise.” section 2.5.2 section 15.2.2

Effective search prompts make the requested output and evidence explicit:

  • Include retrieved results with source URLs or citation markers so the generated answer can be checked. section 15.2.2
  • Treat the prompt as an influence on the answer, not as a guarantee of factual accuracy: models can hallucinate or reflect wording and bias. section 15.2.2

Search summarization prompt

A compact prompt can provide retrieved web results followed by: “Query: What is a large language model? Be concise.” The model then summarizes the results and attaches citation markers.

How AI-Powered Search covers it

How deep it goes
Explains contextual token interpretation and prompt assembly, but defers Transformer implementation details.
Examples
Uses retrieved web results, URLs, citation markers, and a “Be concise” instruction to demonstrate summarization.
What it assumes
Assumes familiarity with search queries and retrieved documents while introducing contextual token interpretation.
What you can do after
Apply it via a search pipeline by combining a query, retrieved results, citations, and output instructions.
How it connects
Connects prompts to foundation models, RAG, dense vector search, Transformer models, and attention.

Also explained in

Compare how 50 books explain prompt →

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.