A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
中文简介正在准备中。当前显示原文说明。
Expert guide for AI Safety, Governance, and Responsible AI in production — Constitutional AI enforcement, runtime guardrails (NeMo Guardrails 2.0, Llama Guard 3), bias auditing, hallucination detection, EU AI Act compliance, model cards, and content provenance / Panduan ahli untuk Keamanan AI, Tata Kelola, dan AI Bertanggung Jawab di produksi.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
<a name="english"></a>
prompt-injection-firewall, ai-prompt-engineering-expertautonomous-red-teamer, zero-trust-secret-vaultcompliance-gdpr-privacy-expert, formal-spec-z3-verifierai-llm-integration-expert, session-memory-manager, agentic-memory-architectzero-to-prod-orchestrator, production-ready-hardener, anti-slop, brainstormingDefine constitutional rules as structured guardrails for all AI operations. Implement policies at multiple interception points: pre-generation, post-generation, and retrieval.
# NeMo Guardrails configuration example (config.yml)
models:
- type: main
engine: openai
model: gpt-4o
rails:
input:
flows:
- check_jailbreak
- check_topic_restriction
output:
flows:
- check_hallucination
- check_toxicity
instructions:
- type: general
content: |
You are a helpful, respectful, and honest assistant.
Always prioritize safety, avoid giving harmful advice, and maintain neutrality.
Implement layered defense mechanisms to intercept unsafe input and redact sensitive output. Utilize state-of-the-art moderation models such as Llama Guard 3.
// Multi-layer guardrail pipeline in TypeScript
import { LlamaGuard } from '@safety/llama-guard';
import { PIIRedactor } from '@safety/redactor';
import { LLMService } from './llm';
export async function generateSafeResponse(prompt: string): Promise<string> {
// Layer 2: Input Guardrail
const inputCheck = await LlamaGuard.checkPrompt(prompt);
if (!inputCheck.isSafe) {
throw new Error(`Unsafe prompt detected: ${inputCheck.violationCategory}`);
}
// Layer 3: Model Generation
const rawResponse = await LLMService.generate(prompt);
// Layer 4: Output Guardrails
const outputCheck = await LlamaGuard.checkResponse(prompt, rawResponse);
if (!outputCheck.isSafe) {
throw new Error('Unsafe response blocked by output guardrails.');
}
const redactedResponse = PIIRedactor.redact(rawResponse);
// Layer 5: Delivery
return redactedResponse;
}
Employ grounding techniques and retrieval-augmented verification to minimize hallucinations. Implement real-time factuality metrics on generated text.
# Hallucination detection with SelfCheckGPT principles
from selfcheckgpt.modeling_selfcheck import SelfCheckNLI
import spacy
nlp = spacy.load("en_core_web_sm")
selfcheck_nli = SelfCheckNLI(device="cpu") # use cuda if available
def detect_hallucination(response_text, context_documents):
sentences = [sent.text for sent in nlp(response_text).sents]
# Calculate NLI scores against provided context
nli_scores = selfcheck_nli.predict(
sentences=sentences,
sampled_passages=[context_documents] * len(sentences)
)
threshold = 0.85
hallucinated_sentences = [
sentences[i] for i, score in enumerate(nli_scores) if score < threshold
]
return {
"is_grounded": len(hallucinated_sentences) == 0,
"hallucinations": hallucinated_sentences
}
Continuously monitor AI systems for demographic parity, equal opportunity, and equalized odds.
# Bias audit script using fairlearn
from fairlearn.metrics import demographic_parity_difference
from sklearn.metrics import accuracy_score
import pandas as pd
def audit_model_fairness(predictions, true_labels, sensitive_features):
df = pd.DataFrame({
'y_true': true_labels,
'y_pred': predictions,
'sensitive_feature': sensitive_features
})
dp_diff = demographic_parity_difference(
y_true=df['y_true'],
y_pred=df['y_pred'],
sensitive_features=df['sensitive_feature']
)
overall_accuracy = accuracy_score(df['y_true'], df['y_pred'])
print(f"Demographic Parity Difference: {dp_diff:.4f}")
print(f"Overall Accuracy: {overall_accuracy:.4f}")
if dp_diff > 0.1:
print("WARNING: Significant demographic parity violation detected.")
Maintain standardized Model Cards for transparency and accountability, automatically generated from evaluation results.
Map AI deployments against global regulatory frameworks. Implement automated risk classification checks.
# Risk classification decision tree
def classify_eu_ai_act_risk(system_purpose, employs_biometrics, affects_safety):
if system_purpose in ["social_scoring", "subliminal_manipulation"]:
return "UNACCEPTABLE_RISK"
if employs_biometrics or affects_safety or system_purpose in ["employment", "education", "credit_scoring"]:
return "HIGH_RISK"
if system_purpose in ["chatbot", "deepfake", "emotion_recognition"]:
return "LIMITED_RISK"
return "MINIMAL_RISK"
Ensure transparency in AI-generated outputs by embedding provenance data.
<a name="bahasa-indonesia"></a>
prompt-injection-firewall, ai-prompt-engineering-expertautonomous-red-teamer, zero-trust-secret-vaultcompliance-gdpr-privacy-expert, formal-spec-z3-verifierai-llm-integration-expert, session-memory-manager, agentic-memory-architectzero-to-prod-orchestrator, production-ready-hardener, anti-slop, brainstormingPanduan komprehensif tingkat produksi untuk Keamanan AI, Tata Kelola (Governance), dan AI Bertanggung Jawab (Responsible AI). Menerapkan penegakan AI Konstitusional, pengamanan waktu jalan (runtime guardrails via NeMo Guardrails dan Llama Guard), audit bias otomatis, deteksi halusinasi, kepatuhan regulasi EU AI Act / NIST RMF, kartu model terstandarisasi, dan tanda air bukti asal konten (C2PA / SynthID).
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
中文简介正在准备中。当前显示原文说明。
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
中文简介正在准备中。当前显示原文说明。
Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.
中文简介正在准备中。当前显示原文说明。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
中文简介正在准备中。当前显示原文说明。
Model cascading & complexity-scored routing (Grok, Gemini, Claude) / Routing kaskade model & scoring kompleksitas (Grok, Gemini, Claude).
中文简介正在准备中。当前显示原文说明。
Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.
中文简介正在准备中。当前显示原文说明。