← All questions
RAGMedium· CAG· CrAM· Generalization

Why might you choose to ship CAG over CrAM even if CrAM has a higher adversarial-injection score?

A high adversarial-injection score for CrAM indicates it is near-Oracle for the specific, narrow threat it was calibrated against. However, this does not translate to performance on broad-spectrum tasks, where CrAM often performs poorly compared to CAG.

CAG’s fine-tuned judgment allows it to handle arbitrary query traffic more effectively. The decision to ship should be based on whether the system faces a narrow, known injection pattern or requires robust performance across diverse, real-world query types.

Code playground (Python)