dipayan.tar retweeted
Redis built a cache that cuts LLM costs by 90%!
Production LLM apps do not receive completely new questions every time.
A customer-support assistant might receive all three of these:
- "Can I get a refund after buying the monthly plan?"
- "Is the monthly subscription refundable?"
- "Can I cancel the plan and get my money back?"
The wording is different, but the underlying question and its answer remain the same.
Yet LLM apps process every version as a new request. They assemble the prompt, send it to the model, and generate an answer that may have already been generated.
Prefix caching reduces part of these repeated calls.
When requests begin with the same system prompt or context, the model can reuse the KV states already computed for that shared prefix.
But the request still hits the LLM. The new tokens must be processed, and the complete answer must still be decoded.
So even with a prefix-cache hit, there's another generation call involved.
To solve this, instead of only caching computation inside the model, the application can cache the generated response outside it.
When another question arrives, the system embeds it and compares it with previously answered questions. If it finds a sufficiently close match, it returns the stored response without invoking the LLM again.
A cache hit removes the input tokens, output tokens, and decoding time associated with another LLM call.
In practice, it is important to decide which questions can safely share an answer since a production setup needs well-tuned similarity thresholds, expiration policies, data isolation, and monitoring for incorrect matches.
If you want to use this in practice, @Redisinc already implements it as a managed service called Redis LangCache.
Under the hood, it generates embeddings, searches previous responses, and returns a matching answer before another model call occurs.
Redis also handles access scopes, custom filtering, TTL and eviction controls, and cache monitoring through Redis Cloud.
I built an interface to compare it against direct LLM inference. The video below shows this in action, and I worked with Redis on this post to put this together.
For the paraphrased question in my run, direct inference took 2.232 seconds and consumed 514 input tokens plus 250 output tokens.
Redis returned the earlier response in 0.37 seconds with zero LLM input or output tokens. That was roughly 6x faster in this run.
Redis reports API cost savings of up to 90% and cache-hit responses up to 15x faster. The actual result depends on how much safe repetition exists in the workload.
You can try Redis LangCache here: fandf.co/4cBHitT
If you want to dive deeper, I have already written a detailed breakdown of KV, prefix, prompt, and semantic caching in the article quoted below. This demo builds on the final technique and shows it running in practice.
Read it below.
dipayan.tar retweeted
🚨Nalanda Engineer Secures Seed Funding for Fighter Jet Engine Project, Opening a New Front in India's Battle for Aerospace Self-Reliance
Aerospace innovation is taking a significant step forward from Nalanda, Bihar, where engineer Subrat Sandilya has secured seed funding support for an ambitious indigenous jet-engine project.
The project aims to take an indigenously developed jet-engine prototype through further testing and development, with the long-term goal of establishing a manufacturing capability in Bihar. The prototype has reportedly already undergone successful testing, but the crucial challenge now is to demonstrate reliability under the extreme temperatures, pressures and stresses involved in aviation.
The significance goes far beyond one project. Jet engines are among the most complex technologies in modern aviation and remain a major area of dependence for India's aerospace and defence sectors. Indigenous propulsion technology could eventually support UAVs, experimental aircraft, aerospace research and potentially advanced defence platforms.
The project is being supported through Bihar's startup-funding framework, with assistance linked to successive development milestones. If the technology successfully progresses from prototype to industrial production, it could create a new aerospace manufacturing ecosystem in the state, generating demand for precision engineering, electronics, specialised materials and skilled manpower.
The road ahead remains challenging. A working prototype is only the beginning; aviation-grade propulsion requires extensive testing, reliability validation, certification and precision manufacturing at scale.
But the direction is strategically important. India cannot achieve genuine aerospace self-reliance while remaining dependent on foreign engines for critical aircraft.
A jet-engine project emerging from Nalanda may therefore represent more than a startup experiment. It is an attempt to build one of the most difficult pieces of India's aerospace puzzle—and potentially open a new chapter in the country's journey toward indigenous propulsion technology.
dipayan.tar retweeted
Indians made this
DiscussingFilm@DiscussingFilmAug 27United Kingdom
United KingdomConnected via United Kingdom App StoreAccount-level information, not a live location or per-post device.
First gameplay of a car chase in GTA 6.
(via: @NotPaloIntel)
dipayan.tar retweeted
Spain just went dark in the middle of the day.
Total solar eclipse. Absolutely unreal. 🌑🇪🇸
Tarragona, Spain 🇪🇸
dipayan.tar retweeted
I don't understand why people don't just lock in on YouTube
My faceless YouTube channels make me $120,000+/mo (long form only)
There is 𝗻𝗼 𝗹𝘂𝗰𝗸 involved.
Let me send you a free course on exactly how to do it.
Just Retweet and Comment "YouTube" (must follow)































