---
title: "Discussion on \"Making My RAG App Cheaper Without Making It Wrong\" | Hashnode"
description: "Discussion on \"Making My RAG App Cheaper Without Making It Wrong\". Cost per question, a cache I turned off, and a model router that fixed one answer and broke another"
url: "https://hashnode.com/posts/making-my-rag-app-cheaper-without-making-it-wrong/6b0a7cfa8b7c09fbabbdeebb"
---

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

Discussion

# [Making My RAG App Cheaper Without Making It Wrong](https://cloudcompass.hashnode.dev/making-my-rag-app-cheaper-without-making-it-wrong?utm_source=hashnode&utm_medium=feed)

Cost per question, a cache I turned off, and a model router that fixed one answer and broke another

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

-   [#genai](https://hashnode.com/tag/genai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#finops](https://hashnode.com/tag/finops)
-   [#rag](https://hashnode.com/tag/rag)
-   [#aws](https://hashnode.com/tag/aws)

## 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

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[13h ago](https://hashnode.com/posts/making-my-rag-app-cheaper-without-making-it-wrong/6b0a7cfa8b7c09fbabbdeebb/comment/6b0ad294e6f1043a6b193cd3)

Splitting cost per question into variable token spend ($0.00004 on Nova Micro) versus fixed infrastructure ($40 to $60 a month) keeps low-volume teams from over-optimizing prompts while an always-on database dominates the bill. Pricing local evaluation runs against hosted production rates so context growth shows up as a cost regression in PR review is also a very practical habit.

Namespacing the exact cache under a composite hash of model, prompt version, retrieval settings, and corpus fingerprint eliminates stale-answer invalidation bugs cleanly. Treating a semantic cache as a binary classifier tested against labeled near-miss pairs—rather than guessing a cosine threshold—explains why turning it off is often safer than shipping a fluent wrong answer.

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

[8h ago](https://hashnode.com/posts/making-my-rag-app-cheaper-without-making-it-wrong/6b0a7cfa8b7c09fbabbdeebb/comment/6b0ad294e6f1043a6b193cd3#reply-6b0b16f4f36bad3a0efb8ba2)

Thanks, glad the cost split was useful. It surprised me too: at low volume the always-on platform costs about fifty times the tokens.

Curious whether you've run a semantic cache in production. Did you find an embedding model, or a check like a reranker or exact-entity match, that handles negation well enough to keep it on?
