发布

  • [OPIK-1331] create sdk methods for guardrails creation usage (#1653)

    frostbyte_neo 发布于 2025-04-02 18:45:49 +00:00

    • Draft

    • Update the code to use correct multi_label argument

    • Update project structure

    • Setup linters for guardrails-backend

    • Remove absolute paths

    • Add dockerfile, readme and entrypoint script

    • [DRAFT] PII validator

    • Reorganize project structure, add PII detector, add combined validations endpoint

    • Updated validation results format

    • Fix lint errors

    • Refactor request body validation

    • Fix lint errors

    • Update the list of default PII entities, introduce threshold for PII detector

    • Update readme

    • Add run_debug.py script

    • Add device setting logic, update base docker image to nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04

    • Update dockerfile and readme to include CUDA setup part

    • Refactor services code, inverse dependencies in validator constructors

    • Reorganize project structure, remove src folder, added unit test for restricted topic

    • Add first version of unit tests

    • Add pii unit tests

    • Update readme

    • Refactor model and device setting logic

    • Remove invalid docker layer

    • Update readme and dockerfile

    • Make benchmark.py read the article no matter what the workdir is

    • Rename restricted topic service to topic match

    • Update topic match validator config, tests and readme

    • Update entrypoint

    • Add missing test file

    • Guardrail client API first draft

    • Add str method to guardrail exception

    • Fix lint errors

    • Updated PII guard

    • Fix bug in PII guard

    • Add lru cache to get_validation_configs

    • Add unit tests for PII and Topic guards

    • Update gemini model to fix test

    • Rename TOPIC_MATCH to TOPIC, remove obsolete single-validation endpoints as they are not needed now

    • Replace try-except blocks with errorhandlers in routes.py

    • fix lint errors

    • Update validation endpoints in benchmark script and SDK client code

    • Update SDK to follow new validation name

    • Update topic unit test

    • Update error response processing on the client side

    • Add example code snippet to Guardrail init

    • Update old test

    • Fix lint errors


    Co-authored-by: Andres Cruz andresc@comet.com

    下载附件