Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt

Use this file to discover all available pages before exploring further.

Guardrail-composition | 80%

Example Configuration

Here is an example of how you can set up Guards and Detectors (see the Configuring Dome section for more details):

 config = {
    ########################
    # setup Guardrails from Guards
    ########################
    # input Guardrail
    "input-Guards": ["prompt-injection", "input-privacy"],

    # output Guardrail
    "output-Guards": ["output-toxicity"],

    ##########################
    # assemble and configure Guards
    ##########################

    # a Guard for prompt injection
    "prompt-injection": {
        "type": "security",
        "methods" : ["prompt-injection-deberta-v3-base", "security-llm"],
    },

    # a Guard to remove PII from requests to the LLM
    "input-privacy": {
        "type": "privacy",
        "methods": ["privacy-presidio"]
    },

    # a Guard for toxic output content
    "output-toxicity": {
        "type": "moderation",
        "methods": ["moderation-llamaguard"]
    },
}
Last modified on April 28, 2026