Hallucination detection tools measure
factual drift. RAG verification catches
contradictions. Claim density scoring
flags unverifiable assertions.
None of them measure this:
A model that responds to a complex medical,
legal, or financial question with absolute
certainty. No hedging. No caveats. Full
confidence in an answer that may be
dangerously incomplete or wrong.
This is the failure mode that gets
companies sued.
Today I shipped linguistic hedge detection
in Ajah — the first LLM observability tool
to score responses for overconfidence
relative to question complexity.
How it works:
Every response is evaluated on two dimensions:
Question complexity — does the prompt
contain conditional language, high-stakes
domain markers (medical, legal, financial,
scientific), or multi-part uncertainty signals?
Response certainty — does the response use
absolute language ("definitely", "certainly",
"guaranteed", "proven", "without question")
without appropriate hedging ("may", "might",
"it depends", "consult a professional")?
hedge_risk = certainty_score × complexity_score
When hedge_risk exceeds the threshold,
Ajah flags the response as
"overconfident_response" in the Warnings
dashboard — with the exact score, the
feature name, and the full response for review.
This runs async on every LLM call.
Zero latency added to your users.
For teams building AI in healthcare,
finance, legal, or government — this is
the signal that tells you when your model
is speaking with authority it hasn't earned.
MIT license. Self-hosted.
No data leaves your server.
→ github.com/VigneshReddy-afk/ajah
→ useajah.com
Top comments (0)