引导式测验 · 硬 等级

微调检索测验的嵌入模型

测试正对和硬负例、嵌入训练的对比损失,以及如何测量和避免 RAG 检索中的假负例。

问题 1 的 8

什么是嵌入微调中的困难负样本?

预览每个问题8 问题

当您参加测验时,就会出现答案和解释。

  1. 什么是嵌入微调中的困难负样本?
    • A passage that looks relevant to the query but does not answer it
    • A passage from a different language
    • Any randomly chosen passage
    • A query with no answer
  2. 为什么困难负样本比简单负样本更有用?
    • They are cheaper to store
    • The base model already separates easy negatives, so hard ones teach new distinctions
    • They remove the need for positives
    • They shorten training time to zero
  3. 在此语境下,什么是假阴性?
    • A positive pair with a typo
    • A mined negative that actually does answer the query
    • A query that retrieves nothing
    • A vector with all zeros
  4. 在查询-段落对上训练嵌入模型通常使用哪种损失函数?
    • Mean squared error on token counts
    • A contrastive loss such as InfoNCE (MultipleNegativesRankingLoss)
    • Cross-entropy on next-word prediction only
    • Hinge loss on image pixels
  5. 切换到新微调的嵌入模型后,您必须对文档索引做什么?
    • Nothing; old vectors still work
    • Re-embed the entire collection with the new model
    • Delete half the documents
    • Convert vectors to text
  6. Which alternative might give larger gains than fine-tuning with less effort?
    • Removing all metadata
    • Improving chunking, adding BM25 hybrid search or a reranker
    • Using a smaller context window
    • Lowering the embedding dimension to 2
  7. Which metrics does the guide recommend for evaluating retrieval?
    • BLEU and ROUGE
    • recall@k and nDCG@10
    • Perplexity only
    • Training loss only
  8. Why should synthetic questions generated from documents be filtered?
    • They are always in the wrong language
    • They often copy the document's wording, making the task too easy
    • They cannot be embedded
    • They violate the loss function