Skip to content

Where to find "invariant.detectors" ? #56

@ole2412

Description

@ole2412

Hi,
thank you for the work towards secure AI interactions.
Where to find invariant.detectors? The module does not seem to exist (anymore?). How can we run the detector nowadays?

In detail:
The example from https://invariantlabs.ai/blog/guardrails

from invariant.detectors import pii

raise "Found PII in message" if:
    (msg: Message)
    any(pii(msg))

leads to ModuleNotFoundError: No module named 'invariant.detectors'

Thank you,
Ole

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions