Skip to content

Migration

Benmebrouk edited this page Apr 12, 2026 · 1 revision

Adding Guard to Any Rust LLM Pipeline

let guard = HttpClient::new(HttpConfig::new("https://api.wauldo.com").with_api_key("KEY"))?;

let answer = your_llm.generate(question, context).await?;
let check = guard.guard(&answer, &context, None).await?;
if check.is_blocked() {
    return Err("Cannot verify".into());
}
Ok(answer)
Without Guard With Guard
Hallucination detection None Yes
Trust score None 0.0-1.0
Wrong answers Served Blocked
Latency 0ms <1ms (lexical)

Clone this wiki locally