Skip to content

Glossary · AI

Retrieval-augmented generation (RAG)

Also called: RAG, grounding, retrieval

Retrieval-augmented generation (RAG) is a technique in which relevant information is looked up from your own data at request time and added to the prompt, so the model answers from those facts rather than from memory alone.

A model only knows what it was trained on and what you put in the prompt. RAG is the second part done systematically: for each request, retrieve the few pieces of your data that matter (the customer's last orders, the refund policy, the product spec) and include them, with an instruction to answer only from that material.

The usual pipeline

  1. Index your documents (often split into chunks and converted into embeddings for similarity search).
  2. Retrieve the chunks most relevant to the question.
  3. Generate the answer with those chunks in the prompt, ideally citing which ones it used.

You may not need the full thing

Vector databases and embeddings are one way to retrieve. For most business automations, retrieval is simpler: look up the record by ID, fetch the policy by category, or read the rows for this customer. A precise lookup beats a fuzzy similarity search whenever you know what you're looking for.

What RAG doesn't fix

It reduces invention; it doesn't stop it. Tell the model to say "not in the provided information" when the answer isn't there, keep retrieved passages short (they compete for the context window), and validate anything the answer claims before acting on it.

In Fluxo Flow

Fluxo Flow doesn't sell a vector database. Its Retriever node looks up relevant entries from Memory or static data and passes them to an AI step; HTTP Request and Integration steps fetch records from your own systems by ID. A founders example on our site: a webhook question → Retriever finds relevant entries → an Agent answers from those entries only → a Validator checks the answer against a JSON schema.

All 40 glossary terms

Build your first workflow today.

Build and Dry Run on the Free plan, no credit card. Run live on a paid plan, on your own AI key at cost.

Free to explore · No credit card · 30-day money-back guarantee on paid plans