CAPRISErag_core :: caprise
Distance-preserving embedding encryption — server runs plain cosine over ciphertext, recovers cleartext only with the key. Asymmetric noise coefficients keep query-doc rank order intact.
- method
- scale + radial-Gaussian noise on the unit sphere · PRF-derived per-nonce direction ·
3/8coefficient for docs,1/8for queries ·CapriseKey::from_seedtakes HKDF output - source
- Ye et al. 2026 / prRAG — arXiv
- secures
- stored embedding vectors against a curious operator without the key
- threat
- curious cloud operator with full DB access. NOT secure against a key-holder running Vec2Text.
- cost
- ~0 retrieval overhead · 2,339 vec/s encryption · Vec2Text BLEU drops 83 → 12.4 (paper)