Lyzr API Responsible & Safe AI Documentation
1. Introduction
Ensuring Responsible & Safe AI is critical in AI development. Lyzr provides configurable features that help in mitigating biases, preventing toxicity, ensuring factual correctness, and guarding against prompt injection attacks.2. Responsible AI Features
a) Context Relevance
- Ensures AI responses are aligned with the input query.
- Prevents AI from drifting away from the intended topic.
b) Reflection
- The AI evaluates its own response before generating a final answer.
- Improves logical consistency.
c) Groundedness
- Ensures AI responses are based on verifiable facts.
- Helps maintain accuracy and prevent hallucinations.
- Configuration:
- Define key facts AI should adhere to.
- Example:
3. Safe AI Features
a) Fairness & Bias
- Detects and mitigates biased responses.
- Ensures inclusivity and ethical AI behavior.
b) Toxicity Check
- Filters out harmful, offensive, or inappropriate language.
- Helps maintain user-friendly interactions.
c) Prompt Injection Protection
- Prevents users from manipulating AI into behaving undesirably.
- Configuration:
- Set a threshold (0-1) to determine sensitivity.
- Example: