Skip to content
Skip to lesson
Back to Topics
LearnAdvanced Agents & RetrievalAdvanced RAG: HyDE & Self-RAG
HardRAG & Retrieval13 min read

Advanced RAG: HyDE & Self-RAG

A fast vector index still misses what a user means when the query is vague or phrased differently from the corpus. Learn query rewriting, HyDE, Self-RAG, and CRAG, then weigh their latency and accuracy trade-offs.

On this page

A developer asks an API documentation assistant, "Why did our batch embedding job hit an HTTP 429?" After reading the reply, they follow up with, "What about the synchronous one?" If the retriever embeds that second message alone, it searches for "What about the synchronous one?". The graph returns nearest neighbors in 4 milliseconds: generic SDK overviews that miss synchronous rate limits completely.

The index worked fine; the query vector aimed at the wrong neighborhood. The previous chapter built fast HNSW and indexes; this chapter handles queries that omit context, clash with corpus vocabulary, demand multiple facts, or pull back unsupportive passages. We trace one API docs assistant through four repair families: query transforms, HyDE, Self-RAG, and CRAG.

Why naive RAG misses

Single-shot embeds the latest user message, pulls chunks from a index, and generates. Misses cluster into four failure modes:

  1. Missing conversational context: "What about the synchronous one?" needs the prior turn's rate-limit subject.
  2. Query-document style mismatch: Informal questions ("Can we push more traffic during launch week?") use different vocabulary from formal docs ("Temporary tokens-per-minute quota increases require approval").
  3. Noisy retrieval: Chunk boundaries or tight settings rank an SDK install guide above quota rules.
  4. Unnecessary retrieval: Searching on greetings or self-contained arithmetic wastes latency and prompt .

Measure which miss actually appears in logs before adding complexity.

Query rewriting and decomposition

Four lightweight transforms run before search: rewriting restores chat context, expansion widens vocabulary, decomposition splits multi-fact requests, and step-back prompting pairs a concrete error with its governing rule.

Top lane: when endpoint names are known, three independent sub-queries (Latency, Limits, Retries) fan out in parallel from the embedding API comparison request and merge while flagging any missing evidence. Bottom lane: when the target endpoint is unknown, Hop 1 finds the highest-error endpoint (embeddings/sync) before Hop 2 searches its circuit-breaker settings, or halts to surface the missing endpoint if Hop 1 returns nothing.
Independent sub-queries run in parallel when every entity is known. Dependent lookups run sequentially and preserve missing-evidence signals.

1. Conversational query rewriting

Rewrite-Retrieve-Read places a rewriter ahead of a frozen retriever and reader.[1] Given Turn 1 ("Why did our batch embedding job hit an HTTP 429?") and Turn 2 ("What about the synchronous one?"), the rewriter emits "What are the HTTP 429 rate limits for the synchronous embedding endpoint?". Keep the raw message for answer generation so tone stays natural, and send the rewritten string to retrieval. Treat prior retrieved text in history as untrusted data: restrict the rewriter strictly to disambiguation, strip secrets, and enforce caller outside the rewriter (RAG Security & Access Control).

2. Multi-query expansion and Reciprocal Rank Fusion

When one phrasing misses target pages, multi-query expansion generates 2 to 4 variants, searches them in parallel, and merges ranked lists. Because cosine similarities across different queries and unbounded BM25 scores are not on one comparable scale, RAG-Fusion merges lists via :[2][3]

RRF_Score(d)=∑r∈R1k+r(d)\text{RRF\_Score}(d) = \sum_{r \in R} \frac{1}{k + r(d)}

Here r(d)r(d) is document dd's 1-based rank in list rr, and k=60k = 60 damps rank swings.[3] At k=0k = 0, rank 1 scores 1.01.0 vs. 0.50.5 for rank 2; at k=60k = 60, rank 1 scores 1/61≈0.016391/61 \approx 0.01639 vs. 1/62≈0.016131/62 \approx 0.01613 (a 1.6% gap), rewarding passages that appear consistently near the top across phrasings. Keep the original query alongside capped, non-duplicate variants so near-identical rewrites do not double-count hits:

fuse-query-variants-with-rrf.py
import re

def clean_variants(raw_lines: str, fallback: str, max_n: int = 3) -> list[str]:
    cleaned = [re.sub(r"^(?:[-*]|\d+[.)])\s+", "", s.strip()).strip() for s in raw_lines.splitlines()]
    return list(dict.fromkeys(x for x in cleaned if x))[:max_n] or [fallback]

def rrf(rankings: list[list[str]], k: int = 60) -> list[tuple[str, float]]:
    scores: dict[str, float] = {}
    for ranking in rankings:
        for rank, doc_id in enumerate(dict.fromkeys(ranking), start=1):
            scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank)
    return sorted(scores.items(), key=lambda pair: (-pair[1], pair[0]))

raw = "1. Rate-limit burst limits during launch traffic\n2. Queue backpressure controls\n3. Autoscaling for traffic spikes"
print("variants:", clean_variants(raw, "How do we handle peak traffic throttling?"))
ranked = [
    ["rate-limit-guide", "quota-increase", "autoscaling"],
    ["autoscaling", "rate-limit-guide", "backpressure"],
    ["rate-limit-guide", "batch-api", "autoscaling"],
]
for doc_id, score in rrf(ranked)[:3]:
    print(f"{doc_id}: {score:.4f}")
Output
variants: ['Rate-limit burst limits during launch traffic', 'Queue backpressure controls', 'Autoscaling for traffic spikes']
rate-limit-guide: 0.0489
autoscaling: 0.0481
batch-api: 0.0161

3. Query decomposition and step-back prompting

Some requests span multiple pages at once: "Compare synchronous and batch embedding API latency, limits, and retry behavior." No single chunk holds all six cells of that comparison, so one vector query returns partial facts and tempts the generator to invent the missing ones. Query decomposition breaks the request into focused sub-queries:

  1. "What latency does the synchronous embedding endpoint target?"
  2. "What throughput and completion limits apply to the batch embedding endpoint?"
  3. "What retry behavior applies to each endpoint?"

Execution follows two topologies: parallel scatter-gather when every entity is already known (taking max⁡(T1,…,Tn)\max(T_1, \dots, T_n) plus planning and synthesis), or sequential least-to-most chains when a later hop depends on an earlier result ("Find the endpoint with the highest error rate last week, then fetch its circuit-breaker settings").[4] Whenever a sub-query returns nothing, pass that missing-evidence marker explicitly to the synthesizer so it reports the gap instead of fabricating a plausible answer.

When narrow runtime details obscure the underlying rule, step-back prompting abstracts the concrete question into its governing concept and retrieves both queries together:[5]

  • Specific query: "Why did our client hit HTTP 429 at 120 requests/minute on the tier 2 embedding endpoint?"
  • Step-back query: "What are the rate limits, burst thresholds, and quota rules for tier 2 embedding endpoints?"

Searching both queries preserves the concrete error context while pulling in the foundational quota rules.

HyDE (Hypothetical Document Embeddings)

All four transforms still search with a question. bridges question-vs-document asymmetry in in three steps:[6]

  1. Generate: Prompt an instruction-tuned LLM zero-shot to draft NN hypothetical answer passages.
  2. Embed: Encode each hypothetical passage d^k\hat{d}_k with the corpus document encoder ff and average the vectors:
v^q=1N∑k=1Nf(d^k)\hat{\mathbf{v}}_q = \frac{1}{N}\sum_{k=1}^{N} f(\hat{d}_k)
  1. Retrieve: Search with v^q\hat{\mathbf{v}}_q (normalized for cosine similarity), discard the hypothetical text, and pass only real retrieved passages to the generator.

Even when the hypothetical draft invents details, the dense encoder bottleneck preserves topical geometry.[6] On TREC DL19 with InstructGPT + Contriever, HyDE lifted @10 from 44.5 to 61.3, and on DL20 from 42.1 to 57.9, with similar zero-shot gains on BEIR and Mr. TyDi.[6]

Left: 2D embedding neighborhood map with three corpus chunks (Quota and Batch as required targets, Overview as a generic distractor) and three query embeddings. The raw question lands between Quota and Overview; a useful HyDE proxy shifts into the Quota-Batch neighborhood so its top-2 capture ring encloses both required chunks; a drifting proxy moves toward Overview and drops Quota. Right: aligned 0-to-9 overlap score bars compare top-2 ranks across the three queries, lifting Recall@2 from 1/2 to 2/2 with a useful proxy and dropping back to 1/2 with drift.
A document-style proxy recovers both the quota and batch guides, whereas a drifting proxy pulls retrieval back to generic overviews.

Watch for hallucination drift: HyDE hurts on exact identifiers (error codes like E-9410, dates, CVE numbers, commit hashes, prices) because a fabricated proxy drags search toward the wrong subsystem. Route exact-identifier lookups straight to hybrid dense + sparse search:

hyde-search-and-exact-router.py
import numpy as np

EXACT_LOOKUP = re.compile(r"\b(?:[A-Z]+-\d+|(?:HTTP|error)\s+[A-Z0-9-]+|\d{4}-\d{2}-\d{2})\b|[$€£]\s*\d", re.I)

def tokens(text: str) -> set[str]:
    return set(re.findall(r"[a-z0-9-]+", text.lower()))

chunks = [
    ("generic-embeddings", "The embedding API converts text into vectors for search."),
    ("throughput-quota", "Launch traffic needs a temporary tokens-per-minute quota request and approval."),
    ("batch-embeddings", "Batch embedding jobs support offline workloads with retry backoff."),
]
required = {"throughput-quota", "batch-embeddings"}
cases = [
    ("raw question", "Can we increase embedding throughput during a launch week?"),
    ("useful proxy", "Embedding throughput increases need a temporary tokens-per-minute quota request, batch embedding jobs, and retry backoff."),
    ("drifting proxy", "The embedding API converts text into vectors for search."),
]
for label, text in cases:
    q = tokens(text)
    hits = [cid for cid, body in sorted(chunks, key=lambda c: len(q & tokens(c[1])), reverse=True)[:2]]
    print(f"{label:14s}: {hits} | Recall@2={len(required & set(hits)) / len(required):.1f}")

print("mean proxy vec:", np.round(np.array([[0.2, 0.8, 0.1], [0.4, 0.6, 0.3]]).mean(axis=0), 2).tolist())
for q in ["What caused error E-9410?", "How should we plan embedding throughput for launch traffic?"]:
    print(f"{'hybrid_exact' if EXACT_LOOKUP.search(q) else 'hyde_candidate':14s}: {q}")
Output
raw question  : ['throughput-quota', 'generic-embeddings'] | Recall@2=0.5
useful proxy  : ['throughput-quota', 'batch-embeddings'] | Recall@2=1.0
drifting proxy: ['generic-embeddings', 'batch-embeddings'] | Recall@2=0.5
mean proxy vec: [0.3, 0.7, 0.2]
hybrid_exact  : What caused error E-9410?
hyde_candidate: How should we plan embedding throughput for launch traffic?

Self-RAG (Self-reflective RAG)

fine-tunes the generator itself to emit four reflection token families during autoregressive decoding:[7]

  1. Retrieve (Yes, No, Continue): skips search on self-contained turns or triggers on-demand lookup before a segment.
  2. ISREL (Relevant, Irrelevant): rates passage relevance before drafting from it.
  3. ISSUP (Fully, Partially, No support): checks whether the passage entails the draft segment.
  4. ISUSE (1 through 5): rates usefulness, mapped linearly onto [−1,1][-1, 1].

Trace our launch-week throughput question through one Self-RAG step:

  1. [Retrieve=Yes] -> fetch candidate passages from the index.
  2. Retrieved passage: "Temporary tokens-per-minute (TPM) increases require approval. Clients must use exponential backoff after rate-limit errors."
  3. [ISREL=Relevant] -> passage directly addresses the launch-week quota question.
  4. Candidate segment: "For launch traffic, request a temporary TPM increase and keep exponential backoff enabled."
  5. [ISSUP=Fully Supported] -> every claim in the segment is entailed by the passage.
  6. [ISUSE=4] -> direct, actionable answer.

When the model emits [Retrieve=Yes], Self-RAG decodes one continuation per top-kk passage in parallel and ranks branches via segment-level (default width 2):[7]

Score(yt,d)=L(yt,d)+wrelsrel+wsupssup+wusesuse\text{Score}(y_t, d) = L(y_t, d) + w_{\text{rel}} s_{\text{rel}} + w_{\text{sup}} s_{\text{sup}} + w_{\text{use}} s_{\text{use}}

Normalized within each family: srel=pRpR+pIs_{\text{rel}} = \frac{p_R}{p_R + p_I}, ssup=pF+0.5 pPpF+pP+pNs_{\text{sup}} = \frac{p_F + 0.5\,p_P}{p_F + p_P + p_N}, and suse=∑i=15aipi∑i=15pis_{\text{use}} = \frac{\sum_{i=1}^5 a_i p_i}{\sum_{i=1}^5 p_i} with a=[−1,−0.5,0,0.5,1]a = [-1, -0.5, 0, 0.5, 1]. Because suses_{\text{use}} can be negative or zero, critique terms add linearly rather than inside a log.[7] Raising wsupw_{\text{sup}} favors strict grounding over fluent speculation.[8]

A retrieved approval clause states that temporary tokens-per-minute increases require approval. With critique weights 0.2 relevance, 0.6 support, and 0.2 utility, stacked weighted bars on a shared 0 to 1 scale show Candidate A (following the approval clause) totaling 0.922 (0.184 + 0.576 + 0.162) versus Candidate B (claiming unlimited launch traffic) totaling 0.534 (0.190 + 0.168 + 0.176). Below, component deltas show Candidate A gains +0.408 on support while trailing by only 0.020 on relevance and utility combined, yielding a +0.388 net lead.
With weights (0.2, 0.6, 0.2) and equal generation likelihood, Candidate A's support score outweighs Candidate B's edge in relevance and utility.
score-self-rag-branches.py
def family_score(probs: list[float], weights: list[float]) -> float:
    p, w = np.asarray(probs, dtype=np.float64), np.asarray(weights, dtype=np.float64)
    return float(np.dot(p, w) / np.sum(p))

def critique_score(rel: list[float], sup: list[float], use: list[float]) -> float:
    return (
        0.2 * family_score(rel, [1.0, 0.0])
        + 0.6 * family_score(sup, [1.0, 0.5, 0.0])
        + 0.2 * family_score(use, [-1.0, -0.5, 0.0, 0.5, 1.0])
    )

branches = [
    ("temporary TPM increase requires approval", [0.92, 0.08], [0.94, 0.04, 0.02], [0.01, 0.02, 0.04, 0.20, 0.73]),
    ("all launch traffic is unlimited", [0.95, 0.05], [0.20, 0.16, 0.64], [0.0, 0.0, 0.04, 0.16, 0.80]),
]
scored = [(critique_score(r, s, u), text) for text, r, s, u in branches]
for score, text in scored:
    print(f"{score:.3f} | {text}")
best_score, best_text = max(scored)
print(f"winner: {best_text} ({best_score:.3f})")
Output
0.922 | temporary TPM increase requires approval
0.534 | all launch traffic is unlimited
winner: temporary TPM increase requires approval (0.922)

Distinguish true Self-RAG (a fine-tuned generator emitting reflection tokens inline[7]) from a prompted critique loop (application code calling an off-the-shelf LLM to grade passages and drafts). Prompted loops work immediately with frontier APIs; trained reflection tokens skip extra round-trips at the cost of hosting a custom model.

CRAG (Corrective RAG)

requires no generator retraining: a lightweight retrieval evaluator (fine-tuned T5-large in Yan et al.) scores each retrieved document and routes the set by its maximum score:[9]

  1. Correct (max⁡score>δU\max \text{score} > \delta_U): Refine surviving internal documents and generate.
  2. Incorrect (max⁡score<δL\max \text{score} < \delta_L): Discard internal hits and fall back to external search (or refuse if external search is disallowed).
  3. Ambiguous (δL≤max⁡score≤δU\delta_L \le \max \text{score} \le \delta_U): Refine internal hits, fetch external evidence, and merge both.
A calibrated 0 to 1 maximum document score scale divides into three CRAG routes at thresholds 0.2 and 0.7: 0.17 falls in Incorrect (below 0.2, discard internal passages), 0.45 falls in Ambiguous (0.2 to 0.7 inclusive, refine and merge), and 0.81 falls in Correct (above 0.7, keep refined internal strips). Both Incorrect and Ambiguous routes pass through an explicit external permission check before running public web fallback.
Thresholds 0.2 and 0.7 route retrieval from the highest document score. External fallback still requires explicit permission before leaving private data.

Before generation, CRAG runs decompose-then-recompose: split surviving passages into 1-to-3-sentence strips, drop strips below threshold β\beta, and recompose survivors in original order to cut boilerplate noise.[9]

crag-router-and-refinement.py
def crag_route(scores: list[float], lower: float = 0.2, upper: float = 0.7) -> str:
    if not scores:
        return "incorrect"
    best = float(np.max(scores))
    return "correct" if best > upper else ("incorrect" if best < lower else "ambiguous")

def refine_strips(docs: list[tuple[str, str]], keywords: set[str], limit: int = 6) -> list[tuple[str, str]]:
    kept = []
    for src, text in docs:
        for sent in (s.strip() for s in text.split(".")):
            if sent and (keywords & set(sent.lower().split())):
                kept.append((src, sent))
    return kept[:limit]

def run_crag(internal_docs, scores, public_docs, approved_public_query: str | None = None):
    kw = {"quota", "tpm", "backoff"}
    route = crag_route(scores)
    ctx = refine_strips(internal_docs, kw) if route != "incorrect" else []
    if route != "correct":
        if not approved_public_query:
            return "needs_internal_evidence", ctx
        ext = refine_strips(public_docs, kw)
        ctx = ctx[:3] + ext[:3] if ctx and ext else ctx + ext
    return ("ready" if ctx else "no_evidence"), ctx[:6]

internal = [("internal:quota-v3", "TPM increases need approval. Old SDK install notes.")]
public = [("public:retry-v2", "Use exponential backoff after rate limits.")]
for label, scores in [("strong", [0.81, 0.15]), ("weak", [0.10, 0.17]), ("uncertain", [0.45, 0.09])]:
    status, ctx = run_crag(internal, scores, public, approved_public_query="public retry guide")
    print(f"{label:9s} ({crag_route(scores):9s}) -> {status}: {[s for s, _ in ctx]}")
print("private missing      ->", run_crag([], [], public, approved_public_query=None))
Output
strong    (correct  ) -> ready: ['internal:quota-v3']
weak      (incorrect) -> ready: ['public:retry-v2']
uncertain (ambiguous) -> ready: ['internal:quota-v3', 'public:retry-v2']
private missing      -> ('needs_internal_evidence', [])

Note that keyword strip filtering checks topic overlap rather than negation ("No TPM increase is permitted" matches "tpm" too); trained evaluators or handle polarity reliably.

Iterative retrieval, latency waterfalls, and failure modes

Self-RAG and CRAG still center on a single retrieval pass or one fallback step. When hop 2 depends on what hop 1 uncovers ("Which embedding endpoint had the highest last week, and what retry budget applies to it?"), IRCoT (Interleaving Retrieval with Chain-of-Thought) alternates retrieval and reasoning one hop at a time until the evidence chain is complete.[10] If hop 1 returns ambiguous metrics, stop and surface the ambiguity rather than guessing an endpoint name.

Pick the lightest tier that resolves your measured failure:

FeatureNaive RAGHyDESelf-RAGCRAG
When retrieval runsAlwaysAlwaysDynamic ([Retrieve])Always
Search inputRaw queryHypothetical passageRaw query + partial draftRaw query
Quality checkNoneNone (shifts query vector)Inline reflection tokensSeparate retrieval evaluator
Extra trainingNoneNoneFine-tuned generatorFine-tuned evaluator
Best fitDirect single-fact lookupsVocabulary/style mismatchStrict-grounding custom servingUneven internal recall
Added work per turnNoneProxy LLM call + embeddingOn-demand retrieval + branchingEvaluator + strip filter (+ web)

Every rewrite, proxy generation, or evaluator call extends time to first token (TTFT). Suppose an uncached serial rewrite-plus-rerank pipeline spends 120 ms rewriting, 20 ms embedding, 25 ms searching, 50 ms reranking, and 180 ms until the generator emits its first token: 395 ms total TTFT. Never estimate end-to-end p95 by summing per-stage p95s: because stalls in Stage A and Stage B land on different requests, sum durations per request first, then take the percentile:

percentiles-from-joint-request-traces.py
from math import ceil
import numpy as np

def nearest_rank(values: np.ndarray, p: float) -> int:
    return int(np.sort(values)[ceil(p * len(values)) - 1])

traces = [(10, 10)] * 18 + [(100, 10), (10, 100)]
a, b = np.array([x for x, _ in traces]), np.array([y for _, y in traces])
print(f"sum of stage p95s:     {nearest_rank(a, 0.95) + nearest_rank(b, 0.95)} ms")
print(f"p95 of request totals: {nearest_rank(a + b, 0.95)} ms")
Output
sum of stage p95s:     20 ms
p95 of request totals: 110 ms

Parallel fan-out amplifies tail latency too: three independent searches that each clear 25 ms with probability 0.950.95 all finish within 25 ms only 0.953≈85.7%0.95^3 \approx 85.7\% of the time, pushing 14.3% past 25 ms.

Guard five production failure modes:

  1. Prompt injection in rewrite history: Treat retrieved chunks and tool outputs strictly as data and enforce ACLs at the retriever.
  2. Cross-tenant cache bleed: Key rewrite and HyDE caches by (tenant, scope, permission_version, history_digest, normalized_query, technique, model_version) and recheck permissions on hits.
  3. SSRF on web fallback: Allowlist public domains, block private IPs, isolate fetches in a network , and require citations to stop and injected pages.
  4. Unbounded fan-out: Enforce hard per-request caps on variants, sub-queries, web fetches, and .
  5. Stacking stages blindly: Start with hybrid search + reranker; add HyDE, CRAG, or iterative loops only when held-out accuracy improves inside your end-to-end p95 budget.
Check your understanding

Mastery Check

Check each question as you go, or answer all of them and check together. Score 75% or higher to complete this lesson.

0 of 5 answered
1.A developer reports a failed batch job, then asks, "How can I retry it?" The retriever sees only the rewritten string. Which rewrite preserves intent and security?
2.Three query variants rank sources as [quota, batch, overview], [batch, overview, quota], and [batch, quota, overview] (best first). RRF adds 1/(40 + rank) starting at rank 1. Which source wins and with what score to five decimals?
3.Two Self-RAG branches share equal generation likelihood. Their normalized (relevance, support, utility) scores are [0.8, 0.9, 0.4] for A and [0.9, 0.3, 0.8] for B, with weights (0.2, 0.6, 0.2). Which branch wins?
4.CRAG marks internal retrieval Incorrect for a private internal question. Which fallback design prevents data leaks and SSRF?
5.Twenty-four serial requests take (20, 20) ms twenty-two times, (150, 20) once, and (20, 150) once. Each stage's nearest-rank p95 is 20 ms. What is the end-to-end p95?

5 questions remaining.

References

Query Rewriting for Retrieval-Augmented Large Language Models.

Ma, X., et al. · 2023 · arXiv preprint

https://arxiv.org/abs/2305.14283

RAG-Fusion: a New Take on Retrieval-Augmented Generation

Rackauckas, Z. · 2024

https://arxiv.org/abs/2402.03367

Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods.

Cormack, G. V., Clarke, C. L. A., & Buettcher, S. · 2009 · SIGIR '09

https://dl.acm.org/doi/10.1145/1571941.1572114

Least-to-Most Prompting Enables Complex Reasoning in Large Language Models

Zhou, D., et al. · 2022 · ICLR 2023

https://arxiv.org/abs/2205.10625

Take a Step Back: Evoking Reasoning via Step-Back Prompting in Large Language Models.

Zheng, H. S., Mishra, S., Chen, X., et al. · 2023 · ICLR 2024

https://arxiv.org/abs/2310.06117

Precise Zero-Shot Dense Retrieval without Relevance Labels.

Gao, L., Ma, X., Lin, J., & Callan, J. · 2022 · arXiv preprint

https://arxiv.org/abs/2212.10496

Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection.

Asai, A., et al. · 2023 · arXiv preprint

https://arxiv.org/abs/2310.11511

Self-RAG released short-form inference scorer (pinned source)

Asai, A., et al. · 2023

https://github.com/AkariAsai/self-rag/blob/1fcdc420e48f50a7d7ab1ece5494221b93252e99/retrieval_lm/run_short_form.py#L134-L157

Corrective Retrieval Augmented Generation.

Yan, S.-Q., et al. · 2024 · arXiv preprint

https://arxiv.org/abs/2401.15884

Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions

Trivedi, H., Balasubramanian, N., Khot, T., & Sabharwal, A. · 2022

https://arxiv.org/abs/2212.10509

Discussion

Questions and insights from fellow learners.

Discussion loads when you reach this section.