Expand description
L2 — fingerprint matching of registered sensitive documents. L2 — fingerprint matching of registered sensitive documents.
Registers sensitive documents by embedding and cosine-matches outbound
content against them, via any
EmbeddingProvider (e.g. the
kernel’s BGE-M3 fastembed backend).
match_content returns Result<Option<..>> rather than a bare Option
deliberately: embedding is fallible (model load, ONNX runtime), and an
error silently flattened to None would read as a false “clean” verdict
on a DLP path.
Structs§
- Fingerprint
Index - Cosine-matches outbound content against registered sensitive documents.
Constants§
- DEFAULT_
THRESHOLD - Default cosine threshold for
FingerprintIndex::new.