Configuring Semantic Guardrails
This service provides AI conversation scanning and semantic analysis capabilities for Semantic Guardrails.
API Endpoints
This section provides an overview of the primary endpoints.
| Name | Endpoint |
|---|---|
| Main API | /pty/semantic-guardrail/v1.1/conversations/messages/ |
| Models API | /pty/semantic-guardrail/v1.1/domain-models/ |
Configuration Variables
The semantic-guardrail service can be configured by setting variables in the helm chart values.yaml, or overriding them
with -f my.values.yaml.
Service variables
| Key | Sub-Key | Description |
|---|---|---|
semanticGuardrailsAppConfig | environment.LOG_LEVEL | Sets the application log level, default is INFO |
Other variables
Semantic Guardrails Service Configuration
These Service variables are available to help diagnose and fix any resource allocation problems. It is not recommended to change them.
| Key | Sub-Key |
|---|---|
semanticGuardrailsService | port |
semanticGuardrailsService | containerName |
semanticGuardrailsService | resources.Required.memory |
semanticGuardrailsService | resources.Required.cpu |
semanticGuardrailsService | resources.Limits.memory |
semanticGuardrailsService | resources.Limits.cpu |
semanticGuardrailsService | replicas |
Application Runtime Configuration
These Data Discovery related variables are available to help diagnose and fix any connection problems. It is not recommended to change them.
| Key | Sub-Key |
|---|---|
semanticGuardrailsAppConfig | environment.LOG_LEVEL |
semanticGuardrailsAppConfig | environment.DATA_DISCOVERY_SEARCH |
semanticGuardrailsAppConfig | environment.DATA_DISCOVERY_URL |
semanticGuardrailsAppConfig | environment.DATA_DISCOVERY_VERSION |
semanticGuardrailsAppConfig | environment.DATA_DISCOVERY_PORT |
Updating cluster
To update the deployed cluster, run the following command.
helm template semantic-guardrails charts/semantic-guardrails > semantic_guardrails.yaml 2>&1
kubectl delete -f semantic_guardrails.yaml
kubectl apply -f semantic_guardrails.yaml
Update settings
To update the deployed cluster, run the following command.
helm template semantic-guardrails charts/semantic-guardrails > semantic_guardrails.yaml 2>&1
kubectl delete -f semantic_guardrails.yaml
kubectl apply -f semantic_guardrails.yaml
Feedback
Was this page helpful?