AutomotiveCloudWatch

Glossary · Artificial Intelligence

Prompting, Context and Retrieval

83 terms in the Artificial Intelligence glossary, each with its one-line definition.

83 terms, A to Z

  • Agentic RAG A RAG variant in which an agent plans, retries and chooses retrieval steps instead of running one fixed search.
  • Answer relevance Whether the answer addresses the question asked, neither leaving parts out nor padding with unneeded detail.
  • Approximate nearest neighbor ANN Search that returns very close, not guaranteed exact, matches much faster by skipping most vectors; often shortened to ANN.
  • Attention budget The idea that a model has a finite supply of attention to spread over its context, so more tokens leave less for each one.
  • BM25 A classic keyword ranking function based on term frequency, how rare a term is, and document length.
  • Chunk A piece of a document that is embedded and retrieved as one unit.
  • Chunk overlap Text repeated at the edges of neighboring chunks so a thought is not cut in half.
  • Chunking Splitting documents into pieces that are embedded and retrieved one at a time.
  • Citation A pointer from a claim in the answer to the source passage that supports it.
  • Compaction Summarizing a conversation that is near the context limit and starting a new window with the summary.
  • Context editing Automatically clearing stale tool calls and results from the window as it nears its limit.
  • Context engineering The practice of curating and maintaining the best set of tokens the model sees on each call: instructions, documents, tools, memory and history.
  • Context isolation Keeping detailed work in a separate window, or giving each agent only what its job needs, so the lead agent's window stays small.
  • Context relevance Whether the retrieved context is focused on what the question needs.
  • Contextual retrieval Adding a short explanation of a chunk's place in its document before embedding it, so the chunk can be found.
  • Cosine similarity A measure of the angle between two vectors, near 1 when they point the same way.
  • Delimiter A separator or tag, such as XML tags or Markdown headings, that marks where one part of a prompt ends and the next begins.
  • Dimension One number in a vector; the count of such numbers is the vector's dimensionality.
  • Dot product A sum of the products of matching values in two vectors; equals cosine similarity when both have length 1.
  • Embedding inversion Recovering source text from its embedding.
  • Embedding model A trained model that turns content, such as text or images, into vectors.
  • Euclidean distance The straight-line distance between two vectors, where smaller means closer.
  • Faithfulness Whether every claim in an output is supported by the source it was given, such as retrieved passages or a document being summarized.
  • Flat index An exact index that compares the query to every stored vector.
  • Graph RAG A RAG variant that builds an entity graph and community summaries to answer questions about a whole collection.
  • Grounding in quotes Asking the model to quote the relevant parts of a document before it answers, so the answer rests on actual text.
  • Hierarchical chunking Retrieving small child chunks and replacing them with their larger parent chunk.
  • Hit at k Whether any right document appears in the top k results, counted 1 if so and 0 if not, then averaged over queries.
  • HNSW HNSW Hierarchical Navigable Small World, a layered graph index for fast approximate nearest neighbor search.
  • Hybrid search Search that combines keyword and semantic (vector) results into one ranked list.
  • In-context learning A model adapting to a task from the text in its prompt alone, through instructions or examples, with no change to its weights.
  • Index A data structure that makes search faster than scanning every vector or document.
  • Indirect prompt injection Instructions hidden in content a model reads, such as a web page, file, email or tool result, that try to redirect it.
  • Ingestion Loading documents, splitting them into chunks, embedding them and writing them to an index.
  • Instruction hierarchy A ranking of instruction sources, such as developer over user over retrieved text, so that higher-privileged instructions win when they conflict.
  • IVF IVF Inverted file, an index that divides vectors into cells and searches only some of them.
  • Jailbreak An input that makes a model disregard its built-in safety rules; OWASP treats it as a form of prompt injection.
  • Just-in-time retrieval Keeping lightweight references and loading content with tools only when needed, instead of loading everything up front.
  • Keyword search Search that matches the words in the query against the words in documents, often scored with BM25.
  • Knowledge base A managed service object that holds the index and runs the retrieval pipeline.
  • Long context Putting the documents directly in the prompt instead of retrieving them.
  • Memory tool A tool that lets a model store and read information outside the context window, such as files that persist between sessions.
  • Metadata filtering Limiting a search to items whose stored fields, such as date, vehicle line or access group, match a condition.
  • MRR MRR Mean reciprocal rank, the average of 1 divided by the rank of the first right result.
  • Nearest neighbor search Finding the stored vectors closest to a query vector.
  • Needle in a haystack A test that hides one fact in long filler text and asks the model to find it.
  • Negative instruction A statement of what the model must not do, such as 'do not use markdown'; positive phrasing is often more reliable.
  • Non-parametric memory External knowledge the model looks up, such as a document index, as opposed to what is stored in its weights.
  • Normalization Scaling a vector to length 1 so that similarity measures agree.
  • nprobe The number of IVF cells searched per query.
  • One-shot prompting Few-shot prompting with a single worked example, plus a description of the task.
  • Output format The required structure of the answer, such as JSON, a table or a fixed set of labels, stated in the prompt.
  • Overlap Text repeated at the edges of neighboring chunks so a cut does not split an idea.
  • Parametric memory What a model knows in its weights from training.
  • Prefix The beginning of the input, which must match exactly, token for token, for a prompt cache hit.
  • Product quantization PQ A compression method that stores each vector as a short code built from quantized sub-vectors.
  • Prompt chaining Feeding the output of one prompt into the next in a sequence, so a task is split into separate model calls.
  • Prompt injection Input that changes a model's behavior in unintended ways, either typed by the user (direct) or hidden in content the model reads (indirect).
  • Prompt leakage Exposure of a system prompt's contents; OWASP says a system prompt should not be treated as a secret.
  • Prompt sensitivity How much results change when a prompt's wording or format changes in small ways that keep the meaning.
  • Prompt template A stored prompt with variables that a program fills in for each call.
  • Prompt versioning Keeping each prompt under a version identifier, with its change history and test results, so an answer can be traced to the prompt that produced it.
  • Query decomposition Splitting a complex question into smaller sub-queries that are searched separately.
  • Query rewriting Turning a user question into a better search query.
  • Re-indexing Re-embedding the content and rebuilding the index when the source content changes.
  • Re-ranking A second pass in which a model reorders a short list of retrieved candidates by relevance to the question.
  • Reciprocal rank fusion RRF A method that merges ranked lists by summing 1 divided by a constant plus the rank.
  • Role prompting Telling the model to act as a given role or persona, which shapes its tone and framing.
  • RULER A synthetic long-context benchmark that tests more than simple lookup, with varied needles, multi-hop tracing and aggregation.
  • Security trimming Filtering retrieval results so a user sees only the documents they are allowed to access.
  • Semantic search Search that matches meaning by comparing embeddings, so it finds related text even when the words differ.
  • Stepwise prompting Asking for a task to be done in ordered steps, such as plan first and answer second.
  • Structured note-taking An agent writing notes outside the window and reading them back later, to keep progress across context resets.
  • Subagent A helper agent that works in its own clean window and returns a short summary to the lead agent.
  • Sync Re-indexing a data source after files are added, changed or removed.
  • Tool result The output a tool returns to the model, sent back by the application and matched to the call by an id; it enters the window as text.
  • Untrusted content Text from a source you do not control, such as a web page or customer email, which must not be treated as instructions.
  • User prompt The message a person or program sends to the model for a specific task, as distinct from the developer's system prompt.
  • Vector A list of numbers, one per dimension, that gives a position in the vector space.
  • Vector database A store for vectors, their content and metadata, with an index for fast nearest-neighbor search.
  • Vector index A store that finds the embeddings nearest to a query embedding.
  • Vector space The space of all possible vectors, in which distance stands for difference in meaning.
  • Zero-shot prompting Asking for a task with no worked examples, giving only an instruction.

Full entry for members

Every term has a full entry for members: the plain-words definition, the practitioner note and the typed links between terms.

See membership

ACW Artificial Intelligence Glossary, edition 2026.11.1. The headword and one line are open to everyone.