Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
Blog
GitHub Logo

Noetic Caching: The Key to Smarter, Faster Chatbots

Since late 2022, Large Language Model (LLM) chatbots have revolutionized AI-driven conversations using Retrieval-Augmented Generation (RAG) to pull in relevant data for context. However, latency remains a challenge in retrieving information quickly. Noetic Caching addresses this by caching contextual data rather than responses, leveraging locality principles to store frequently used or regionally relevant data closer to users. This approach, integrated by Harper, optimizes retrieval speeds, reduces reliance on distant databases, and enhances chatbot performance, offering a balance of speed, accuracy, and cost-effectiveness for better AI experiences.
Blog

Noetic Caching: The Key to Smarter, Faster Chatbots

By
Vince Berk
February 6, 2025
By
Vince Berk
February 6, 2025
By
Vince Berk
February 6, 2025
February 6, 2025
Since late 2022, Large Language Model (LLM) chatbots have revolutionized AI-driven conversations using Retrieval-Augmented Generation (RAG) to pull in relevant data for context. However, latency remains a challenge in retrieving information quickly. Noetic Caching addresses this by caching contextual data rather than responses, leveraging locality principles to store frequently used or regionally relevant data closer to users. This approach, integrated by Harper, optimizes retrieval speeds, reduces reliance on distant databases, and enhances chatbot performance, offering a balance of speed, accuracy, and cost-effectiveness for better AI experiences.
Vince Berk
Board Member

Since November of 2022, the Large Language Model Chatbot has taken center stage.  A steady march of progress in neural network research – which aims to duplicate the functioning of the human brain through mathematical models of neurons – had reached a zenith where a convincing conversation could be had with a computer.  It appears that the various Chatbots are practically unbeatable in their knowledge of virtually any topic.  Ask any question, and some very good answers come back.

But much like anything, tipping the veil on how this works under the hood reveals a complex system with many moving parts.  In fact, the actual “chatbot” part turns out to know very little.  Other than how to converse convincingly.


How Chatbots “Know”

The magic behind the “knowing” of specific details is in large part based on a technique called RAG – retrieval augmented generation.

It works like this:  in its simplest form, the Chatbot predicts a sequence of words that would best follow the words it has recently seen.  This history is what we call a “context.”  The bigger and more specific the context, the better the conversation will go and the more details the Chatbot seems to have.  The trick, therefore, to get a Chatbot to talk about specific details of any kind is to fill this context window with as many relevant details as possible.

So when I ask a Chatbot what the frost depth is in New Hampshire, the RAG backend will quickly try to retrieve articles on “frost depth,” on “New Hampshire,” perhaps on building codes, foundation footings, etc.  These articles are then entered into the context of the Chatbot as if they were part of my question.  Only then is my question appended, and the Chatbot can now assertively answer with the details that were given to it right before.

This works the same way if you’d like a Chatbot on your site that describes, for instance, what people think of a particular product you are selling or answer a question hidden deep inside your product's documentation.  And the quicker you can feed the relevant articles to the Chatbot, the more convincing and natural the answer will appear to your user.

RAG and the Latency Dilemma

Speed is of the essence, but speed is elusive on websites with tens of millions of possible pieces of data.

Retrieval Augmented Generation relies on mapping words to these data pieces.  It allows the quick matching of all your data pieces to whatever the conversation is currently about.  Vector databases have made great advances here allowing for this matching to be quick and easy. However, if the data to be retrieved is located far away, the retrieval speed decreases. This refers to the actual articles, reviews, and other text snippets that need to be integrated into the chatbot's context.

At first glance, caching does not work.  The answer that the Chatbot gives is unique to each interaction.  Likewise, the summary of reviews is unique to the product the customer is looking for, or the synopsis of the documentation or tech support question is likewise unique.  In large and distributed sites, this seems to be an Achilles heel, and it is true in the traditional sense of caching.

Noetic Caching: Storing Knowledge Beyond the Origin

However, if we change our perspective and take the view of the fully integrated database and caching system, it is possible to see a world where the relevant contextual data is cached, and the conversations or answers produced by the Chatbot are fully unique.

Here’s how it works:  much like caching of traditional website content, most of the context that goes into a Chatbot will be similar for most conversations or questions.  Consider this “base knowledge.”  These data pages can be cached instead.  Similarly, caching of more specific data pages, articles, or reviews has a certain principle of locality to it: either in time or in location.  Put another way:  because topics ebb and flow with what is on people's minds, problems to solve, events that happen, or simply because the same people tend to connect to the same local edge web servers, there is tremendous value in caching the data before it goes into the Chatbot.

We call this Noetic Caching.  The deeply integrated design of Harper allows the caching of LLM content for RAG to happen after the vector query is resolved.  This means the data that is needed for the Chatbot to carry a meaningful conversation quickly, and with the right details is immediately available from Harper, and there is no need to retrieve this from a far-away origin database.  Nor does all the content need to be kept at the edge.

This gives an almost magical mixture of speed, accuracy, and cost that cannot be achieved in more traditional architectures.

Get Started with Noetic Caching

If you're looking to reduce the latency of generative AI, Noetic Caching could be a game-changer. Understanding how caching can optimize retrieval speeds while keeping responses relevant is key to building better AI experiences. If you’d like to explore how this works in practice, our team is happy to share insights and best practices.

Since November of 2022, the Large Language Model Chatbot has taken center stage.  A steady march of progress in neural network research – which aims to duplicate the functioning of the human brain through mathematical models of neurons – had reached a zenith where a convincing conversation could be had with a computer.  It appears that the various Chatbots are practically unbeatable in their knowledge of virtually any topic.  Ask any question, and some very good answers come back.

But much like anything, tipping the veil on how this works under the hood reveals a complex system with many moving parts.  In fact, the actual “chatbot” part turns out to know very little.  Other than how to converse convincingly.


How Chatbots “Know”

The magic behind the “knowing” of specific details is in large part based on a technique called RAG – retrieval augmented generation.

It works like this:  in its simplest form, the Chatbot predicts a sequence of words that would best follow the words it has recently seen.  This history is what we call a “context.”  The bigger and more specific the context, the better the conversation will go and the more details the Chatbot seems to have.  The trick, therefore, to get a Chatbot to talk about specific details of any kind is to fill this context window with as many relevant details as possible.

So when I ask a Chatbot what the frost depth is in New Hampshire, the RAG backend will quickly try to retrieve articles on “frost depth,” on “New Hampshire,” perhaps on building codes, foundation footings, etc.  These articles are then entered into the context of the Chatbot as if they were part of my question.  Only then is my question appended, and the Chatbot can now assertively answer with the details that were given to it right before.

This works the same way if you’d like a Chatbot on your site that describes, for instance, what people think of a particular product you are selling or answer a question hidden deep inside your product's documentation.  And the quicker you can feed the relevant articles to the Chatbot, the more convincing and natural the answer will appear to your user.

RAG and the Latency Dilemma

Speed is of the essence, but speed is elusive on websites with tens of millions of possible pieces of data.

Retrieval Augmented Generation relies on mapping words to these data pieces.  It allows the quick matching of all your data pieces to whatever the conversation is currently about.  Vector databases have made great advances here allowing for this matching to be quick and easy. However, if the data to be retrieved is located far away, the retrieval speed decreases. This refers to the actual articles, reviews, and other text snippets that need to be integrated into the chatbot's context.

At first glance, caching does not work.  The answer that the Chatbot gives is unique to each interaction.  Likewise, the summary of reviews is unique to the product the customer is looking for, or the synopsis of the documentation or tech support question is likewise unique.  In large and distributed sites, this seems to be an Achilles heel, and it is true in the traditional sense of caching.

Noetic Caching: Storing Knowledge Beyond the Origin

However, if we change our perspective and take the view of the fully integrated database and caching system, it is possible to see a world where the relevant contextual data is cached, and the conversations or answers produced by the Chatbot are fully unique.

Here’s how it works:  much like caching of traditional website content, most of the context that goes into a Chatbot will be similar for most conversations or questions.  Consider this “base knowledge.”  These data pages can be cached instead.  Similarly, caching of more specific data pages, articles, or reviews has a certain principle of locality to it: either in time or in location.  Put another way:  because topics ebb and flow with what is on people's minds, problems to solve, events that happen, or simply because the same people tend to connect to the same local edge web servers, there is tremendous value in caching the data before it goes into the Chatbot.

We call this Noetic Caching.  The deeply integrated design of Harper allows the caching of LLM content for RAG to happen after the vector query is resolved.  This means the data that is needed for the Chatbot to carry a meaningful conversation quickly, and with the right details is immediately available from Harper, and there is no need to retrieve this from a far-away origin database.  Nor does all the content need to be kept at the edge.

This gives an almost magical mixture of speed, accuracy, and cost that cannot be achieved in more traditional architectures.

Get Started with Noetic Caching

If you're looking to reduce the latency of generative AI, Noetic Caching could be a game-changer. Understanding how caching can optimize retrieval speeds while keeping responses relevant is key to building better AI experiences. If you’d like to explore how this works in practice, our team is happy to share insights and best practices.

Since late 2022, Large Language Model (LLM) chatbots have revolutionized AI-driven conversations using Retrieval-Augmented Generation (RAG) to pull in relevant data for context. However, latency remains a challenge in retrieving information quickly. Noetic Caching addresses this by caching contextual data rather than responses, leveraging locality principles to store frequently used or regionally relevant data closer to users. This approach, integrated by Harper, optimizes retrieval speeds, reduces reliance on distant databases, and enhances chatbot performance, offering a balance of speed, accuracy, and cost-effectiveness for better AI experiences.

Download

White arrow pointing right
Since late 2022, Large Language Model (LLM) chatbots have revolutionized AI-driven conversations using Retrieval-Augmented Generation (RAG) to pull in relevant data for context. However, latency remains a challenge in retrieving information quickly. Noetic Caching addresses this by caching contextual data rather than responses, leveraging locality principles to store frequently used or regionally relevant data closer to users. This approach, integrated by Harper, optimizes retrieval speeds, reduces reliance on distant databases, and enhances chatbot performance, offering a balance of speed, accuracy, and cost-effectiveness for better AI experiences.

Download

White arrow pointing right
Since late 2022, Large Language Model (LLM) chatbots have revolutionized AI-driven conversations using Retrieval-Augmented Generation (RAG) to pull in relevant data for context. However, latency remains a challenge in retrieving information quickly. Noetic Caching addresses this by caching contextual data rather than responses, leveraging locality principles to store frequently used or regionally relevant data closer to users. This approach, integrated by Harper, optimizes retrieval speeds, reduces reliance on distant databases, and enhances chatbot performance, offering a balance of speed, accuracy, and cost-effectiveness for better AI experiences.

Download

White arrow pointing right

Explore Recent Resources

Blog
GitHub Logo

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Cache
Blog
Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Jan 2026
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Tutorial
GitHub Logo

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Harper Learn
Tutorial
Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Jan 2026
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
News
GitHub Logo

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Announcement
News
Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Colorful geometric illustration of a dog's head resembling folded paper art in shades of teal and pink.
Harper
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper
Jan 2026
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper
Comparison
GitHub Logo

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Comparison
A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Dec 2025
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Tutorial
GitHub Logo

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Harper Learn
Tutorial
Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Tutorial

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.
Dec 2025
Tutorial

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.
Tutorial

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.