Urgent.News

What's breaking now, across thousands of outlets.

AI

Guardrail para Claude, GPT e próprio

Resposta curta Guardrails para Claude, GPT e modelos próprios são camadas técnicas e políticas que limitam saídas inseguras, não éticas ou ilegais — aplicadas via filtragem de entrada/saída, classificação de conteúdo, regras de negação e RLHF. Não são obrigatórias por lei no Brasil, mas exigidas por boas práticas de governança de IA e diretrizes setoriais emergentes. TL;DR Guardrails operam em…

Guardrails serve as both technical and policy layers to safeguard AI model outputs from being unsafe, unethical, or illegal. These measures are applied through input/output filtering, content classification, negative rules, and reinforcement learning from human feedback (RLHF), though they are not legally mandated in Brazil. Best practices and sector-specific guidelines recommend implementing guardrails.

In real-time, they monitor text generation both before and after, employing techniques like prompt injection detection, output classification, and post-generative moderation.

For models like Claude from Anthropic, guardrails come as native features based on Constitutional AI, requiring a different approach than OpenAI’s GPT. GPT utilizes a moderation API alongside system prompts and supervised fine-tuning. Custom guardrails for proprietary models necessitate tailoring from simple regex rules to more sophisticated RAG-augmented pipelines with legal or medical validation.

While there isn’t a specific Brazilian federal law on guardrails, the National AI Strategy (Dec. 10.973/2022) advises "ethical and technical control mechanisms." Regulated industries must align guardrails with CFM, BCB, or CNJ requirements even without stringent legislation.

Guardrails operate at a system level, diverging from basic blacklist filters by assessing risk levels, logical rules (e.g., preventing Penal Code citations without legal context), and interruption mechanisms (stop sequences or rejection sampling). They are designed to be documented, auditable, and integrated into MLOps cycles. Claude prioritizes Constitutional AI, aligning responses with explicit principles during both training and inference.

OpenAI’s GPT relies more on external moderation layers and nuanced system messages, offering less transparency into internal mechanisms. Models without standard infrastructure require clear policies, tool selection (like Llama Guard or Microsoft Guidance), and domain-specific validation (legal, medical, financial).

Even without a federal law, guardrails are crucial due to liability considerations under the Consumer Protection Code (Lei 8.078/1990, art. 14) and STJ rulings recognizing the necessity of adequate technical controls in automated systems (REsp 1.892.345/SP, 2023). They help mitigate LGPD violations by preventing personal data leaks and ensuring explainable decision-making.

Frequently asked questions clarify that guardrails complement, not replace, human oversight in critical applications, and that while they reduce hallucinations, they do not eliminate them entirely. Continuous red-teaming and up-to-date risk scenarios are crucial for maintaining effectiveness.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

KNUST Researcher investigates how AI can improve brain scan analysis

How well can artificial intelligence developed using medical data from Europe and North America analyse brain scans from Ghanaian patients? This question took Ghanaian biomedical engineer Dr Prince Ebenezer Adjei to the German Cancer Research Center (DKFZ) in Heidelberg, where he worked with researchers to investigate how medical imaging…

AI saved air cargo? Rates up 30% YOY

AI isn’t just for chatbots—it’s fueling a surprising boom in air cargo, preventing an anticipated recession. FreightWaves’ Eric Kulisch breaks down how global disruptions and AI equipment demand are…

More from Tuesday 10 November →