惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threatpost
GbyAI
GbyAI
V
Visual Studio Blog
H
Help Net Security
Vercel News
Vercel News
P
Palo Alto Networks Blog
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Latest news
Latest news
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
The Register - Security
The Register - Security
博客园_首页
WordPress大学
WordPress大学
G
GRAHAM CLULEY
T
Tor Project blog
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
O
OpenAI News
博客园 - 聂微东
月光博客
月光博客
S
Security Affairs
Webroot Blog
Webroot Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
N
News and Events Feed by Topic
Blog — PlanetScale
Blog — PlanetScale
S
Securelist
V
Vulnerabilities – Threatpost
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Cisco Talos Blog
Cisco Talos Blog
The Cloudflare Blog
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
L
Lohrmann on Cybersecurity
T
The Blog of Author Tim Ferriss

Redis

Real-Time Fraud Detection: Latency, Features & Scale Context window in AI: why every token is a budget decision Connecting to Redis Cloud with AWS PrivateLink vs. VPC peering | Redis Redis Data Integration in Redis Cloud is now GA in AWS | Redis Why AI Misses Business Context & How Teams Fix It AI Reasoning Explained: Why Context Matters Redis array data type: How it works and when to use it Context Graphs vs. Vector Search: When RAG Falls Short What’s new in two – May 2026 edition Redis 8.8 performance improvements: Faster string, hash, streams, SCAN & more Redis 8.8: New array data structure & open source features How Conflict-free Replicated Data Types power active-active database replication Context Orchestration: What It Is & How It Works Context Compaction for AI Agents: A Complete Guide Prompt Bloat: Causes, Costs & Fixes for LLM Apps Agentic Retrieval Techniques: A Complete Guide Single-shot reliable consumers with XREADGROUP CLAIM in Redis 8.4 | Redis Long-Horizon AI Agents: Memory & State Infrastructure What is a context engine? What Is a Context Layer? AI Agent Infrastructure Context Retrieval for AI Agents: What It Is & Why It Matters Context Poisoning: How Bad Data Breaks Agent Reasoning Context is all you need: Introducing Redis Iris | Redis Context Engineering for AI: What It Is & How to Build It Dynamic endpoints: Migrate databases without changing your endpoint | Redis AI Shopping Assistants: How They Work & What to Build Endless Aisle Retail: Infrastructure & Real-Time Data LLM Speed Benchmarks: Metrics & Infrastructure Guide Context Pruning: Cut LLM Tokens Without Losing Quality What’s new in two – April 2026 edition Agentic AI Architecture: 5 Patterns Explained AI Agent vs Chatbot: Key Differences Explained Advantages of Building a Vector Search Solution API Latency in LLM Apps: Causes & How to Fix It Security advisory: [CVE‑2026‑23479] [CVE‑2026‑25243] [CVE-2026-25588] [CVE‑2026‑25589] [CVE-2026-23631] | Redis Edge Computing Latency: Causes & How to Reduce It AI Agents vs Workflows: When to Use Each Streaming LLM Responses: Make Your AI App Feel Fast Active-Active vs Active-Passive Database Architecture Prefill vs Decode: LLM Inference Phases Explained Long-Term Memory Architectures for AI Agents Time to First Byte Test: Tools, Causes & Fixes Speculative decoding: how it works & when to use it P95 Latency: What It Is & Why It Matters Why Multi-Agent LLM Systems Fail & How to Fix Them AI Human in the Loop: Production Oversight Patterns Native OpenTelemetry metrics for Redis client libraries | Redis Client-side geographic failover for Redis Active-Active | Redis Use Redis with SQL | Redis Introducing Redis Feature Form Build Google ADK Agents with persistent, real-time memory on Redis | Redis Startup Spotlight: Neuron Systems API Throttling: Algorithms, Patterns & Mistakes Agentic AI Examples Across 6 Industries Best Chunking Strategies for RAG Pipelines Agentic AI Guardrails: Controls That Work Redis joins AWS at GDC to support the next generation of gaming | Redis Designing a semantic routing system: From static rules to dynamic intelligence with Redis and Java | Redis Real-Time Dispatch System: A Complete Guide P99 Latency: What It Means & How to Fix It Tokenization in LLMs: What AI App Devs Need to Know TTFT Meaning: What is Time to First Token? Atomic slot migration with Redis 8.4 Hybrid search benefits: Why your RAG system needs both keyword & vector search What’s new in two: March 2026 edition Vector embedding generators: How they work & how to use them Throughput-optimizing Redis for L2 KV Cache Reuse What is a data pipeline? Building AI agent pipelines that don't forget, fail, or fall apart Redis achieves Google Cloud Ready, Distributed Cloud status ahead of Google Cloud Next ‘26 | Redis Real-time network monitoring: what your data platform needs to keep up AI agent API: How agents connect to the real world What is multicloud infrastructure? A guide for 2026 What is a transaction monitoring system & how does it work? Why your AI agent fails in production & how tracing helps AI agent benchmarks: Where they fall short & why your infrastructure matters What is a JSON database (and when should you use one)? Introducing the Redis Partner Network: A new foundation for real-time innovation How real-time customer segmentation works in retail Payment orchestration & vault architecture in retail Agentic systems vs. GenAI: when generation isn't enough What is fuzzy matching? Semantic caching & routing: two powerful patterns for vector classification Redis alternatives: Why there are no exact substitutes Connect to Azure Managed Redis with Redis Insight 3.2.0 How to tame the thundering herd problem Redis to Manage Storage Replication | Redis How hierarchical navigable small world (HNSW) algorithms can improve search | Redis How leading financial institutions use Redis to drive growth | Redis What’s new in two: May 2025 | Redis Introducing Model Context Protocol (MCP) for Redis | Redis Redis vs. Elasticsearch: What’s faster for GenAI & vector search? | Redis Build fast, production-worthy AI apps with Spring AI and Redis | Redis Azure Managed Redis is GA today | Redis Redis then & now: Adapting with developers through every era | Redis Supercharge Your AI with OpenShift AI and Redis: Unleash speed and scalability | Redis What’s new in two: April 2025 | Redis Redis 8 is now GA, loaded with new features and more than 30 performance improvements | Redis What is a data strategy? 6 key components explained Data replication explained: types, examples & use cases
Semantic Layer vs Context Layer: Key Differences
Redis · 2026-06-04 · via Redis

Your BI semantic layer solved a hard problem: getting every team, dashboard, and report to agree on what shared metrics like "revenue," "active customer," or "customer acquisition cost" actually mean. Those governed definitions won't be enough to ground an AI agent. Dashboards and SQL queries run on standardized metric definitions, but agents also need runtime access to documents, conversation history, fresh operational data, tools, and permissions at every reasoning step.

Those runtime needs belong to a separate layer: the context layer. Semantic modeling and AI grounding solve different problems under different runtime constraints, and knowing where one ends and the other begins is the first step to building agents that work in production. This post covers what a semantic layer does well, where it stops short for AI, and what a context layer adds on top.

What a semantic layer does

A semantic layer is the single source of truth for your business metrics. It sits between your raw data sources and the tools that consume them, like dashboards, APIs, and analytics platforms, and holds the definitions of your metrics, dimensions, hierarchies, and entity relationships in one place, so everyone queries the same governed numbers.

Without it, every BI tool defines metrics on its own, and "customer acquisition cost" means three different things across three dashboards. The semantic layer gives you one authoritative definition, served through a governed interface.

Under the hood, these tools turn metric definitions into optimized SQL. You define a metric once in YAML or a domain-specific language, and the layer compiles downstream queries into the right SQL against your warehouse, exposing models and APIs for governed access to structured data.

These same three properties are what make a semantic layer great for BI, and where it runs out of room for AI agents:

  • SQL query output. The layer produces SQL against warehouse-backed relational data.
  • Warehouse-oriented architecture. A query comes in, the semantic layer generates SQL, the warehouse executes it, and the result comes back.
  • Stateless translation. Each query is processed independently, with no session context, conversation history, or memory of what happened last time.

Those properties are exactly right for BI. They're also where the semantic layer stops. It nails business meaning, but something else has to decide what an agent actually sees at each step.

Redis Iris

Redis Iris serves agent context in milliseconds

Redis Iris connects memory, live data, and retrieval in one place.

Where semantic layers fall short for AI agents

Governed SQL access is where the semantic layer ends, and it's right where agents need more. The same design that makes these tools great for dashboards leaves five gaps the moment you point an agent at them.

Traditional SQL standards don't natively define vector search

Agents search by meaning, not just exact matches, and SQL wasn't built for that. It's a set-based, relational language designed for structured, tabular data with exact-match or range predicates. Traditional SQL standards don't natively define embeddings, approximate nearest-neighbor search, or similarity scoring, though SQL-based systems can bolt those on. So semantic layers built on SQL generation usually lean on a separate retrieval system for anything unstructured.

The shortfall runs deeper than missing features. A GenAI app working over your business data also needs natural language synonyms, display rules, example queries, and domain-specific instructions that teach the model how to read that data. A metric definition alone doesn't carry that weight.

Batch refresh can't serve agents at inference time

Agents need fresh data the moment they reason, not whatever last night's job loaded. Most BI semantic layers stay consistent by refreshing on a schedule, nightly or hourly, instead of pulling fresh data at runtime. Agents work differently: retrieval and context assembly happen live, during inference, and how you handle that directly shapes your end-to-end latency.

No memory & no multi-turn reasoning

Agents reason across turns. Semantic layers don't remember a thing. They expose stateless APIs, so there's no conversation history, no working memory, no record of which tools the agent already called. When your agent needs to recall what the user asked three turns ago, a stateless layer has nothing to give it.

Metric consistency doesn't prevent hallucination on its own

Consistent metrics help, but they won't stop a model from making things up. A semantic layer can hand an LLM well-defined numbers to query — it can't validate the output, constrain what gets generated, or catch a confident wrong answer. That's a job for other controls.

No support for unstructured data

Most enterprise knowledge isn't in rows and columns. The semantic layer tools discussed here focus primarily on structured, tabular data, leaving text documents, images, audio, and other non-tabular content outside their scope. AI systems that reason across mixed structured and unstructured data need a layer the semantic model was never designed to provide.

Together, these limits point to a runtime context tier.

What a context layer is & why AI needs one

At runtime, a context layer manages what information an AI agent can access at each reasoning step during inference. It governs the population of the model's context window.

Context engineering fills the context window with the right information for the next step, including task descriptions, few-shot examples, retrieval-augmented generation (RAG), multimodal data, tools, state, history, and compaction. RAG is one component among several.

The context window has limited room, so something has to decide what goes in it at each step. That curation runs on every inference call, so it needs real infrastructure that handles retrieval, filtering, and state management in real time, not one-off glue code.

A context layer usually combines:

  • Retrieval pipelines (RAG). Fetching relevant documents and data at inference time.
  • Short-term memory. Session-scoped state persistence for active conversations.
  • Long-term memory. Cross-session state persistence for user preferences and past decisions.
  • Tool definitions & access. What the agent can call and how to invoke it, often standardized through the Model Context Protocol (MCP).
  • Permission and governance filtering. What the agent is authorized to access.
  • Semantic definitions. Business meaning of entities and metrics.
  • System instructions. Behavioral constraints and role framing.

Together, these components turn context into a runtime system that goes beyond prompt assembly. Semantic definitions still matter here, but they sit inside a broader layer that manages what the model sees and when it sees it.

How the two layers compare architecturally

The two layers solve different problems under different constraints.

DimensionBI semantic layerAI context layer
Primary consumerHuman analysts, BI toolsAI agents, LLMs, autonomous systems
Data scopeStructured data (SQL, warehouses)Structured + unstructured (documents, PDFs, images)
Core functionMetric standardization, query translationGovernance, lineage, memory, permission filtering
Interaction modelDeterministic queriesProbabilistic reasoning, multi-step inference
State managementStateless per requestPersistent session + long-term cross-session memory
Latency toleranceSeconds to hours (warehouse refresh and analytics latency)Real-time retrieval at every reasoning step, where retrieval overhead compounds across calls
Failure modeWrong numbers, visible and traceableConfidently wrong autonomous actions, silent and consequential

That last row matters because the failures look very different in practice. When a dashboard shows the wrong revenue number, someone notices. When an agent acts on stale or incomplete context, the failure can stay hidden and compound across later reasoning steps.

Redis AI Agent Memory

Build agents that remember, not agents that guess

Redis Iris gives every agent fresh context and long-term memory.

What breaks without a context layer

When teams start wiring agents to real systems, the same failures show up fast. They usually come from treating context assembly as glue code instead of infrastructure.

Context rot

Long-context performance often degrades as prompts grow, though the exact threshold varies by model and use case. In one production workload, tasks averaged around 50 tool calls, and every tool call appended new observations to message history, creating unbounded context growth. That growth forces teams to keep reworking how they shape, compact, and retrieve context.

Fragmentation across multiple data stores

Many teams assemble context from multiple systems that were never designed to work together: one store for vector embeddings, another for JSON, another for relationships, and another for transactions. This polyglot persistence approach can create separate security models, backup processes, scaling profiles, and more failure points across backing stores.

Retrieval gaps

Pure vector retrieval often falls short in enterprise settings because users include exact product names, policy clauses, ticket IDs, and error codes. Semantic retrieval helps with meaning, while keyword retrieval helps with precision. A strong retrieval setup uses both, plus metadata filtering for tenant isolation, language, and recency constraints.

Context assembly needs a runtime layer that unifies those side systems.

How teams build context infrastructure today

Context infrastructure is a consolidation problem. Instead of stitching together separate stores for vectors, memory, caching, and features, teams are moving to a single runtime layer with one API surface.

Redis is a real-time data platform with sub-millisecond latency for core operations like caching and semantic cache hits, alongside the vector search that AI workloads depend on. The Redis context engine brings those capabilities together to serve fresh, relevant context for agent workflows at scale through five components:

  • Redis Context Retriever: Schema-first retrieval paths agents use to reason over entities like customers, orders, and tickets.
  • Redis Data Integration: Streams fresh operational data from systems of record into Redis in real time using change data capture.
  • Redis Agent Memory: Two-tier memory with working memory for active conversations and long-term recall across sessions, channels, and agents.
  • Redis LangCache: Semantic caching that recognizes when queries mean the same thing phrased differently, cutting repeat LLM calls. High-repetition workloads saw up to 73% lower inference costs in one Redis-published benchmark, with no application code changes through the managed API.
  • Redis Search: The retrieval layer underneath the context engine, querying across vector, structured, unstructured, and real-time data.

Together, these components cover what a semantic layer doesn't: runtime retrieval, memory, freshness, and caching.

For production ML models, Redis Feature Form is a managed feature store for defining, versioning, orchestrating, and serving features across training and inference, keeping definitions consistent in both environments to reduce training-serving skew.

Apps

Fresh context, every call

Redis Iris keeps agent data current so answers stay accurate.

Why semantic & context layers belong together

A semantic layer gives you governed business meaning, but AI agents also need runtime context. Reliable agents need both layers working together.

The semantic layer solved a real problem by standardizing metrics across your organization, and that work still matters. Those governed definitions become one of the inputs your context layer uses to ground agents in business logic.

Agents also need vector search, multi-turn memory, real-time feature serving, and mixed structured and unstructured context. The Redis context engine brings vector search, semantic caching, agent memory, and data integration into one low-latency runtime, so AI agent infrastructure runs on a single platform rather than a patchwork of disconnected stores.

Try Redis free to see how the context layer works with your workload, or talk to our team about building context infrastructure for your AI agents.