引导式测验 · 硬 等级
缓存增强生成 (CAG) 测验
测试您对缓存增强生成的理解:如何预加载和重用 KV 缓存、查询之间的缓存重置以及语料库大小限制。
问题 1 的 8
CAG 用什么代替每次查询的检索?
预览每个问题8 问题
当您参加测验时,就会出现答案和解释。
- CAG 用什么代替每次查询的检索?
- A keyword search engine
- Fine-tuning the model on the documents
- A new vector index per question
- Preloading the whole knowledge base into the KV cache once and reusing it
- Transformer 中的 KV 缓存是什么?
- A database of user accounts
- The stored attention keys and values computed for tokens the model has already read
- A list of document URLs
- The model's trained weights
- 为什么 CAG 系统在每个答案后会截断缓存?
- To save the answer for training
- To delete the documents permanently
- To restore the documents-only state so the next query does not see the previous question and answer
- To switch to a different model
- CAG 的主要限制是什么?
- The entire corpus must fit in the model's context window
- It requires a vector database
- It cannot answer questions quickly
- 它改变了模型的权重
- 为什么 CAG 的回答速度比将文件粘贴到每个请求中更快?
- It skips generating output tokens
- The model only needs to compute the new question tokens on top of the cached prefix
- 它使用较小的模型
- It retrieves fewer documents
- Which knowledge base is the best fit for CAG?
- A news archive updated every hour
- Millions of customer records with per-user permissions
- An entire web crawl
- A small, stable product manual that rarely changes
- Which statement about CAG is a misconception?
- CAG removes retrieval errors because all documents are present
- Changing documents requires rebuilding the cache
- CAG fine-tunes the model's weights on the documents
- Hosted prompt caching is related to the idea
- Which techniques reduce the memory needed for a large KV cache?
- Grouped-query attention and cache quantization
- 添加更多关注头
- 使用较长的提示
- Raising the sampling temperature