Natural Language Processing · 免费预览

稠密检索与 RAG

词表不匹配问题;采用最近邻搜索的双编码器稠密检索;基于可信段落的检索增强生成。

1. Dense Retrieval and RAG

Dense Retrieval and RAG

2. Bi-encoder score

A query embedding is [0.46,0.96,0.89][0.46, 0.96, 0.89] and a document embedding is [0.13,0.97,0.19][0.13, 0.97, 0.19]. Compute their dot-product relevance score, rounding to three decimals.

3. Why sparse retrieval missed

A query asks for something to eat and the best passage is a chowder recipe, with no query word appearing in it. What is this failure called, and which fix addresses it?

4. Choosing the encoder arrangement

Why do large-scale systems use a bi-encoder for first-pass retrieval and a cross-encoder only for reranking the top candidates?

5. What retrieval adds over parameters

Which set of problems with prompting a pretrained model does retrieval-augmented generation directly target?

6. Beyond the basic RAG loop

A question needs two facts that live in different documents, and the retrieved set also contains an irrelevant passage. Which two extensions address these issues?

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课