‹ Harness Lab
STAGE 5 · AGENTIC RAG

Agentic RAG

Search, grade the evidence, rewrite and search again when it is weak, and abstain when the corpus cannot back an answer.

ASK NORTHWIND

How grounding is graded

Hybrid score = 0.55 x keyword score (BM25-style term overlap with IDF) + 0.45 x cosine similarity over hashed term vectors. A result is GROUNDED only when the top score is at least 0.30 AND the top document covers at least half of the question's content terms. Fail either check and the agent rewrites the query once (question words dropped, synonyms added), searches again, and abstains if it still fails.

AGENT LOOP

Trace is empty. Ask a question.

ANSWER

No answer yet.

WHAT THIS PROVES