What are the key steps in the CAG mechanism?

Question

Answers ( 1 )

    0
    2025-04-01T04:57:36+00:00

    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.

Leave an answer