Prompt Buddy logoPrompt Buddy

google · Google AI Docs

Gemini API Safety and factuality guidance

Guidelines for configuring safety settings and managing factuality to mitigate risks such as hate speech, harassment, and hallucinations in Gemini API responses.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Gemini API Safety and factuality guidance

Guidelines for configuring safety settings and managing factuality to mitigate risks such as hate speech, harassment, and hallucinations in Gemini API responses.

When To Use

Use when you need to configure safety thresholds or implement strategies to reduce model hallucinations and harmful content in an application.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-safety-and-factuality-guidance-workflow-guide.mdGuidelines for understanding and mitigating safety risks, bias, and factuality issues when using the Gemini API.Questions about guidelines for understanding and mitigating safety risks, bias, and factuality issues when using the Gemini API.

What This Skill Covers

  • Generative artificial intelligence models are powerful tools, but they are not without their limitations. Their versatility and applicability can sometimes l...
  • Main sections: Understand the safety risks of your application, Advanced tips, Consider adjustments to mitigate safety and factuality risks, Perform safety testing appropriate to your use case, Monitor for problems.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://ai.google.dev/gemini-api/docs/safety-guidance