Guardrails
Get effective guardrails settings.
Returns the effective guardrails settings based on the hierarchy (chat session > collection > global admin > defaults).
get/guardrails/effective
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
chat_session_idstring
Optional chat session ID to check for chat-level settings
collection_idstring
Optional collection ID to check for collection-level settings
Response
Successful operation
Example response
{
"disallowed_regex_patterns": [
"secret_disallowed_word",
"(?!0{3})(?!6{3})[0-8]\\d{2}-(?!0{2})\\d{2}-(?!0{4})\\d{4}"
],
"presidio_labels_to_flag": [
"IBAN_CODE",
"US_SSN"
],
"pii_labels_to_flag": [
"IBAN",
"SSN"
],
"prompt_guard_labels_to_flag": [
"JAILBREAK"
],
"guardrails_labels_to_flag": [
"Violent Crimes",
"Non-Violent Crimes",
"Intellectual Property",
"Code Interpreter Abuse"
],
"guardrails_llm": "h2oai/h2o-danube3-4b-chat",
"guardrails_safe_category": "Safe",
"column_redaction_custom_entities_to_flag": [
"Mother's Maiden Name"
],
"column_redaction_custom_entities": {
"Mother's Maiden Name": "Mother's maiden name"
},
"custom_pii_entities_to_flag": [
"Mother's Maiden Name"
],
"custom_pii_entities": {
"Mother's Maiden Name": "Mother's maiden name"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.