Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions content/develop/ai/context-engine/interactive-demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
alwaysopen: false
categories:
- docs
- develop
- ai
description: Step through one agent request across Data Integration, LangCache, Agent Memory, and Context Retriever, then take a service away to see what the agent loses.
hideListLinks: true
linktitle: Interactive demo
title: Redis Iris interactive demo
weight: 7
bannerText: LangCache, Agent Memory, and Context Retriever are currently available in preview. Features and behavior are subject to change.
---

Redis Iris gives an AI agent governed access to live business data, memory, and cached answers. This tour follows one customer request through all four services, one step at a time. It starts where business data enters Iris, with Data Integration, and then follows the request through the other three services, in the order described in [How Redis Iris works](/content/develop/ai/context-engine/concepts/_index.md). The last step takes one service away to show what the agent loses without it.

The tour runs in your browser and doesn't connect to any service. Each step links to that service's own interactive demo, which covers it in depth with the same customer and data. The agent's reasoning, the reply, and the timings are illustrative.

{{< iris-demo >}}

## What each service adds

| Service | What it does in this request | Without it |
|:--|:--|:--|
| [Data Integration](/content/develop/ai/context-engine/data-integration/_index.md) | Syncs a change from PostgreSQL to Redis seconds after it happens | The agent reads last night's data and makes a promise it can't keep |
| [Context Retriever](/content/develop/ai/context-engine/context-retriever/_index.md) | Looks up delivery times, alternatives, and past orders through governed tools | The agent can't check whether the food will arrive in time |
| [Agent Memory](/content/develop/ai/context-engine/agent-memory/_index.md) | Recalls last week's order and the customer's peanut allergy | The agent can find the order, but not the allergy |
| [LangCache](/content/develop/ai/context-engine/langcache/_index.md) | Answers the general delivery fee question from the cache | The model answers it, which takes longer and costs output tokens |

## Next steps

- See [how a request flows through Redis Iris](/content/develop/ai/context-engine/concepts/request-flow.md), capability by capability.
- Get started with [Redis Iris on Redis Cloud](/content/operate/iris/_index.md).
42 changes: 42 additions & 0 deletions layouts/shortcodes/iris-demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{- /*
iris-demo
---------
Scripted, dependency-free tour of Redis Iris as one system, one step at
a time: data enters through Data Integration, then a single agent
request draws on LangCache, Agent Memory, and Context Retriever. Each
step links to that service's own demo for depth, and the last step
takes one service away to show what the agent loses. Runs entirely in
the browser; no service is called.

Usage (no arguments):
{{< iris-demo >}}

Base styles come from context-retriever-demo.css so the Iris demos share
one look; iris-demo.css adds this demo's pieces.

The assets are emitted on every call rather than deduplicated with
.Page.Store: the store survives `hugo server` rebuilds, so a page that
isn't edited would lose its assets after the first rebuild. The script
guards against running twice if the shortcode is used more than once.
*/ -}}

{{- /* ?v= is a hash of the file, so a reload never runs a stale cached copy. */ -}}
{{- $v := dict -}}
{{- range slice "css/context-retriever-demo.css" "css/iris-demo.css" "js/iris-demo.js" -}}
{{- $v = merge $v (dict . (substr (md5 (os.ReadFile (print "static/" .))) 0 10)) -}}
{{- end }}
<link rel="stylesheet" href="{{ "css/context-retriever-demo.css" | relURL }}?v={{ index $v "css/context-retriever-demo.css" }}">
<link rel="stylesheet" href="{{ "css/iris-demo.css" | relURL }}?v={{ index $v "css/iris-demo.css" }}">
<script defer src="{{ "js/iris-demo.js" | relURL }}?v={{ index $v "js/iris-demo.js" }}"></script>

{{- /* Links to each service's own demo, resolved here so they carry the site's base path.
The Data Integration demo isn't published yet, so its link goes to the overview. */}}
{{- /* The stage draws the Iris architecture diagram from redis.io/iris, as published there. */}}
<div class="rcr iris" data-iris
data-art="{{ "images/ai/context-engine/iris-diagram/" | relURL }}"
data-link-rdi="{{ relref .Page "/develop/ai/context-engine/data-integration" }}"
data-link-retriever="{{ relref .Page "/develop/ai/context-engine/context-retriever/interactive-demo" }}"
data-link-memory="{{ relref .Page "/develop/ai/context-engine/agent-memory/interactive-demo" }}"
data-link-cache="{{ relref .Page "/develop/ai/context-engine/langcache/interactive-demo" }}">
<noscript><p>This interactive demo needs JavaScript.</p></noscript>
</div>
Loading
Loading