Deploy a privacy-focused AI assistant

Build a healthcare AI assistant that ensures your large language model has multiple layers of protection, including PII detection and content moderation.

HealthcareOpenShift AIPII detection

This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.

Deploy a privacy-focused AI assistant

Build a healthcare AI assistant that ensures your large language model has multiple layers of protection, including PII detection and content moderation.

Detailed description

This quickstart includes a healthcare AI assistant demo showing how guardrails could help protect HIPAA-compliant applications.

The demo tests a patient services AI with four protection layers:

  1. PII Detection - Protects Social Security Numbers and medical IDs
  2. Content Moderation - Blocks inappropriate language
  3. Prompt Injection Protection - Prevents system manipulation
  4. Gibberish Detection - Filters out nonsense queries

For example, here's how PII detection works in action:

diagram.png

Explore the complete interactive demo in docs/healthcare-guardrails.ipynb.

The LLM Guardrails quickstart is a quick-start template for deploying multiple layers of protection for LLM applications using TrustyAI's orchestrator and specialized detector services.

This quickstart includes a Helm chart for deploying:

  • A Llama 3.2 3B Instruct model with GPU acceleration.
  • Multiple AI safety detectors: gibberish detection, prompt injection detection, and hate/profanity detection.
  • TrustyAI GuardrailsOrchestrator for coordinating safety checks.
  • Configurable detection thresholds and routing policies.

Architecture diagrams

architecture.png

Requirements

  • GPU required for main LLM: +24GiB vRAM
  • CPU cores: 12+ cores total (4 for LLM + 8 for detectors)
  • Memory: 24Gi+ RAM total
  • Storage: 10Gi

Minimum hardware requirements

  • GPU required for main LLM: 1 x NVIDIA GPU with 24GiB vRAM
  • CPU cores: 8+ cores total
  • Memory: 16Gi+ RAM total
  • Storage: 5Gi

Minimum software requirements

  • Red Hat OpenShift 4.19.9
  • Red Hat OpenShift Service Mesh 2
  • Red Hat OpenShift AI 2.23.0
    • KServe needs to be enabled

Please note before you start

This example was tested on Red Hat OpenShift 4.19.9 & Red Hat OpenShift AI 2.23.0.

Required user permissions

  • Cluster admin permissions are required

Install

Clone the repository

git clone https://github.com/rh-ai-quickstart/guardrailing-llms.git && cd guardrailing-llms/
Copy to Clipboard Toggle word wrap

Create a new project

PROJECT="guardrails-demo"

oc new-project ${PROJECT}
Copy to Clipboard Toggle word wrap

Install with Helm

helm install ${PROJECT} helm/ --namespace ${PROJECT} 
Copy to Clipboard Toggle word wrap

Wait for the pods to be ready

oc get pod -n ${PROJECT}
Copy to Clipboard Toggle word wrap

You should see an output similar to:

NAME                                                         READY   STATUS      RESTARTS   AGE
gibberish-detector-predictor-578fc59776-www4s                2/2     Running     0          25h
gorch-sample-5f95f587fd-wmk4x                                3/3     Running     0          51m
guardrails-workbench-0                                       2/2     Running     0          93m
guardrails-workbench-clone-repo-96jhd                        0/1     Completed   0          93m
ibm-hate-and-profanity-detector-predictor-846758cfb5-wnlnd   2/2     Running     0          25h
llama-32-3b-instruct-predictor-c8d55bd58-lctjn               2/2     Running     0          18m
prompt-injection-detector-predictor-7d784957f9-f2x5g         2/2     Running     0          25h
Copy to Clipboard Toggle word wrap

Test

You can get the OpenShift AI Dashboard URL by:

oc get routes rhods-dashboard -n redhat-ods-applications
Copy to Clipboard Toggle word wrap

Once inside the dashboard, navigate to Data Science Projects -> guardrails-demo (or what you called your ${PROJECT} if you changed from default).

OpenShift AI Projects

Inside the project you can see Workbenches, open up the one for guardrails-workbench.

OpenShift AI WB

Open the workbench, inside of the Jupyter Notebook folder, you'll see the guardrailing-llms repository already cloned, go to docs/healthcare-guardrails.ipynb and follow the instructions.

OpenShift AI Jupyter Notebook

Enjoy!

Delete

helm uninstall ${PROJECT} --namespace ${PROJECT} 
Copy to Clipboard Toggle word wrap

References

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat