What are the key steps in the CAG mechanism?
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Morbi adipiscing gravdio, sit amet suscipit risus ultrices eu.Fusce viverra neque at purus laoreet consequa.Vivamus vulputate posuere nisl quis consequat.
Answers ( 1 )
The CAG mechanism consists of three key steps:
1. **Knowledge Preloading**: Documents are preprocessed and stored as KV caches using the formula `C_{KV} = KV-Encode(D)`.
2. **Inference Generation**: The model generates responses using preloaded KV caches and user queries, following the formula `r = M(q | C_{KV})`.
3. **Cache Reset**: KV caches are efficiently reset (e.g., by truncating new tokens) to support multiple inference sessions.