Retrieval-augmented generation and tool use

Advanced Machine learning
Created by Best · 01.06.2026 at 06:20 UTC

Parametric weights cannot stay current with the live web. Retrieval-augmented generation (RAG) conditions the model on retrieved passages inserted into the prompt context window . Dual-encoder contrastive training aligns queries and documents in a shared embedding space for efficient search .

Enterprise RAG stacks add rerankers, access-control filters on document IDs, and logging of retrieved chunks for audit. Without logging, debugging a wrong answer means guessing which passage misled the model .

Toolformer-style training encourages models to emit API calls (calculator, search, database) when external computation beats parametric guessing . Retrieval quality, citation honesty, and stale corpora remain bottlenecks: wrong documents produce confident wrong answers .

Adversarially poisoned retrieval can steer outputs toward malicious content. RAG shifts failure modes from pure hallucination to grounded hallucination when citations lie .

RAG pipelines need freshness metadata so the model can reason about recency. Citations should map to retrievable IDs; otherwise the model invents plausible references that pass casual inspection .

Tool APIs should return structured JSON the model can quote; free-form tool text increases injection risk and makes citation auditing harder .

Hybrid answers should separate quoted evidence from model synthesis so users can verify claims without trusting fluent prose alone .

University approvals: 0
Related cards
Video Content
Tasks
Question 1

Retrieval-augmented generation (RAG) conditions the model on:

Hint

Skim the paragraphs on Retrieval augmented generation conditions model in Retrieval-augmented generation and tool use before choosing. Eliminate options that contradict a definition stated in the card.

Question 2

Toolformer-style training encourages the model to:

Hint

Skim the paragraphs on Toolformer style training encourages model in Retrieval-augmented generation and tool use before choosing. Eliminate options that contradict a definition stated in the card.

Question 3

Contrastive retrieval training aligns:

Hint

Skim the paragraphs on Contrastive retrieval training aligns in Retrieval-augmented generation and tool use before choosing. Eliminate options that contradict a definition stated in the card.

Question 4

What failure mode arises if retrieved documents are stale or adversarially poisoned?

Hint

Skim the paragraphs on failure mode arises if retrieved documents are stale in Retrieval-augmented generation and tool use before choosing. Eliminate options that contradict a definition stated in the card.

Card Info
  • Topic: Machine learning
  • Difficulty: Advanced
  • Completed: 0 users
Creator
Best
Best
BestBuddy