Skip to main content

Module fingerprint

Module fingerprint 

Source
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§

FingerprintIndex
Cosine-matches outbound content against registered sensitive documents.

Constants§

DEFAULT_THRESHOLD
Default cosine threshold for FingerprintIndex::new.