redis-vl-dotnet
Examples
This section maps the main feature areas to runnable sample projects and the canonical Antora pages that explain each workflow.
Prerequisites
All current examples assume:
-
.NET 9 SDK
-
Redis Stack or another RediSearch-capable Redis deployment
-
REDIS_VL_REDIS_URLwhen Redis is not reachable atlocalhost:6379
Examples that use JSON storage also require RedisJSON. Provider-backed examples additionally require:
-
OPENAI_API_KEY -
HF_TOKEN -
COHERE_API_KEY
Coverage map
| Feature area | Antora entry point | Example | Runtime requirements |
|---|---|---|---|
Core JSON workflows |
|
RediSearch + RedisJSON. Supports |
|
Core vector workflows |
|
RediSearch with vector similarity support. Supports |
|
Embeddings cache |
|
Basic Redis only. Supports |
|
Message history and semantic retrieval |
|
RediSearch with vector similarity support. Supports |
|
Semantic cache |
|
RediSearch with vector similarity support. Supports |
|
Semantic router |
|
RediSearch with vector similarity support. Supports |
|
OpenAI vectorization |
|
RediSearch with vector similarity support. Requires |
|
Hugging Face vectorization |
|
RediSearch with vector similarity support. Requires |
|
Cohere reranking |
|
RediSearch + RedisJSON. Requires |
|
CLI workflows |
|
Index commands require RediSearch plus |
Build validation
Validate all example projects from the repository root:
npm run examples:build
This sweep is also used by CI so documented samples fail fast when they drift from the codebase.
Related sections
-
Getting Started for local Redis setup
-
Extensions for provider package context and per-package setup details
-
Testing for the example validation gate