456
Dictionary

Retrieval

Selecting the most relevant chunks for a query before generation.

1 min readupdated 2026-07-04

/ quick answer

Retrieval is the R in RAG: given a query, score candidate chunks by similarity (vector, keyword, or hybrid) and return the top-k to inject into the prompt. Selecting the most relevant chunks for a query before generation.

Selecting the most relevant chunks for a query before generation. Retrieval is the R in RAG: given a query, score candidate chunks by similarity (vector, keyword, or hybrid) and return the top-k to inject into the prompt. In practice: Query 'refund policy' returns the 3 highest-similarity chunks from the help-center index. This dictionary node is part of the Onexial knowledge graph and links to related concepts, workflows and tools below.
Definition
Retrieval is the R in RAG: given a query, score candidate chunks by similarity (vector, keyword, or hybrid) and return the top-k to inject into the prompt.
Example
Query 'refund policy' returns the 3 highest-similarity chunks from the help-center index.
Related Workflows
Related Tool Stacks
/ frequently asked

What is Retrieval?

Retrieval is the R in RAG: given a query, score candidate chunks by similarity (vector, keyword, or hybrid) and return the top-k to inject into the prompt.

What is an example of Retrieval?

Query 'refund policy' returns the 3 highest-similarity chunks from the help-center index.

Why does Retrieval matter for AI and automation?

Selecting the most relevant chunks for a query before generation. It connects to the workflows, prompts and tool stacks linked on this page, so you can move from definition to execution without leaving Onexial.