guardrails-ai / competitor_check

Guardrails AI: Competitor Check - Validates that LLM-generated text is not naming any competitors from a given list
Apache License 2.0
1 stars 3 forks source link

fix: warning for importing from validators directory #10

Open kaushikb11 opened 4 months ago

kaushikb11 commented 4 months ago

CompetitorCheck Validator was importing certain classes from guardrails.validators instead of guardrails.validator_base raising to an unnecessary warning.

    Importing validators from `guardrails.validators` is deprecated.
    All validators are now available in the Guardrails Hub. Please install
    and import them from the hub instead. All validators will be
    removed from this module in the next major release.

    Install with: `guardrails hub install hub://<namespace>/<validator_name>`
    Import as: from guardrails.hub import `ValidatorName`