Language Scanner
(Input and Output scanner)
This scanner identifies and assesses the authenticity of the language used in prompts.
How it works
The primary function of the scanner is to analyze the input prompt, determine its language, and check if it's in the list.
It supports the 20 languages:
Arabic
Bulgarian
German
modern Greek
English
Spanish
French
Hindi
Italian
Japanese
Dutch
Polish
Portuguese
Russian
Swahili
Thai
Turkish
Urdu
Vietnamese
Chinese
Language Detection: If the text is classified as Language, the Language score corresponds to the model's confidence in this classification.
Threshold-Based Flagging: Text is flagged as Language if the Language score exceeds a predefined threshold (default: 0.5).
Language Detection Policy for AI Chatbot
Create a new policy as same as shown in LLM Guardrails Policy, for Language detection select scanner Language(English selected which is not detect, passed Russian language which is detected).
Optionally, perform a test to ensure the policy is functioning as intended. Check that Language is detected and blocked as specified.
Last updated