---
title: "Discussion on \"Knowing When Your RAG App Is Wrong\" | Hashnode"
description: "Discussion on \"Knowing When Your RAG App Is Wrong\". Metrics that see past HTTP 200, guardrails that don't trust the model, and an evaluation that gates every pull request"
url: "https://hashnode.com/posts/knowing-when-your-rag-app-is-wrong/6b097a8d80a3c8b65219a374"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Knowing When Your RAG App Is Wrong](https://cloudcompass.hashnode.dev/knowing-when-your-rag-app-is-wrong?utm_source=hashnode&utm_medium=feed)

Metrics that see past HTTP 200, guardrails that don't trust the model, and an evaluation that gates every pull request

13h ago · 8 min read · cloudcompass.hashnode.dev  
Read the article

-   [#genai](https://hashnode.com/tag/genai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#observability](https://hashnode.com/tag/observability)
-   [#prometheus](https://hashnode.com/tag/prometheus)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Ashok Gharpankar](https://hashnode.com/@cloudcompass)

@cloudcompass · Mumbai, India

  
[View profile](https://hashnode.com/@cloudcompass)

CLCD — Continuous Learning, Continuous Deployment

## Responses 2

Markdown supported · ⌘↵ to post

[Osama Malik](https://hashnode.com/@osamamalik)

[13h ago](https://hashnode.com/posts/knowing-when-your-rag-app-is-wrong/6b097a8d80a3c8b65219a374/comment/6b0981639f5cf4c0e00fa221)

Good point about the 200 being sent before the answer exists. One thing to add to the outcome list is a separate label for client disconnects. When a user closes the tab mid stream, the server sees a cancelled request, and counting that as an error will eat your error budget for no real fault. It is also worth making sure the disconnect actually cancels the upstream model call, otherwise you keep paying for tokens nobody reads.

[Ashok Gharpankar](https://hashnode.com/@cloudcompass)

[10h ago](https://hashnode.com/posts/knowing-when-your-rag-app-is-wrong/6b097a8d80a3c8b65219a374/comment/6b0981639f5cf4c0e00fa221#reply-6b09a5db7d05e81f182fd9c1)

Thanks, this was a really useful comment, and I've noted down both points.

Disconnects were already kept out of the errors, but in a separate counter. They're now their own outcome, `cancelled`, excluded explicitly from the error SLI, with a rule test. On cancelling upstream, I'm adding an end-to-end cancellation test against a fake model server, so it proves the server actually sees the disconnect and stops generating, not just that my own loop stopped. Next is checking each provider's side: whether billing stops once the stream closes.
