Skip to content

Commit e32f5f4

Browse files
committed
Merge branch 'main' into DOC-5496
2 parents d5446d3 + 94eba7d commit e32f5f4

File tree

231 files changed

+13848
-785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+13848
-785
lines changed

assets/css/index.css

Lines changed: 526 additions & 20 deletions
Large diffs are not rendered by default.

build/components/example.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
'java-sync': '@Test',
1515
'java-async': '@Test',
1616
'java-reactive': '@Test',
17-
'c#': r'\[Fact]|\[SkipIfRedis\(.*\)]'
17+
'c#': r'\[Fact]|\[SkipIfRedis\(.*\)]',
18+
'c#-sync': r'\[Fact]|\[SkipIfRedis\(.*\)]',
19+
'c#-async': r'\[Fact]|\[SkipIfRedis\(.*\)]',
20+
'rust': r'#\[test]|#\[cfg\(test\)]|#\[tokio::test]'
1821
}
1922
PREFIXES = {
2023
'python': '#',
@@ -25,8 +28,13 @@
2528
'java-reactive': '//',
2629
'go': '//',
2730
'c#': '//',
31+
'c#-sync': '//',
32+
'c#-async': '//',
2833
'redisvl': '#',
29-
'php': '//'
34+
'php': '//',
35+
'rust': '//',
36+
'rust-sync': '//',
37+
'rust-async': '//'
3038
}
3139

3240

build/local_examples.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,20 @@
2525
'.go': 'go',
2626
'.cs': 'c#',
2727
'.java': 'java',
28-
'.php': 'php'
28+
'.php': 'php',
29+
'.rs': 'rust'
2930
}
3031

3132
# Language to client name mapping (from config.toml clientsExamples)
3233
LANGUAGE_TO_CLIENT = {
3334
'python': 'Python',
3435
'node.js': 'Node.js',
3536
'go': 'Go',
36-
'c#': 'C#',
37+
'c#': 'C#-Sync',
3738
'java': 'Java-Sync', # Default to sync, could be overridden
3839
'php': 'PHP',
39-
'redisvl': 'RedisVL'
40+
'redisvl': 'RedisVL',
41+
'rust': 'Rust-Sync'
4042
}
4143

4244

@@ -65,6 +67,16 @@ def get_client_name_from_language_and_path(language: str, path: str) -> str:
6567
return 'Java-Async'
6668
if 'lettuce-reactive' in path:
6769
return 'Java-Reactive'
70+
if language == 'rust':
71+
if 'rust-async' in path:
72+
return 'Rust-Async'
73+
if 'rust-sync' in path:
74+
return 'Rust-Sync'
75+
if language == 'c#':
76+
if 'async' in path:
77+
return 'C#-Async'
78+
if 'sync' in path:
79+
return 'C#-Sync'
6880
# Default behavior for all languages (and Java fallback)
6981
return get_client_name_from_language(language)
7082

config.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ tagManagerId = "GTM-TKZ6J9R"
4545
gitHubRepo = "https://github.com/redis/docs"
4646

4747
# Display and sort order for client examples
48-
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#", "RedisVL", "PHP"]
48+
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#-Sync", "C#-Async", "RedisVL", "PHP", "Rust-Sync", "Rust-Async"]
4949
searchService = "/convai/api/search-service"
50-
ratingsService = "/docusight/api/rate"
50+
ratingsService = "/docusight/api/rate/docs"
5151

5252
# RDI params
5353
rdi_rlec_min_version = "6.2.18"
@@ -64,9 +64,12 @@ rdi_current_version = "1.14.1"
6464
"Java-async"={quickstartSlug="lettuce"}
6565
"Java-reactive"={quickstartSlug="lettuce"}
6666
"Go"={quickstartSlug="go"}
67-
"C#"={quickstartSlug="dotnet"}
67+
"C#-Sync"={quickstartSlug="dotnet"}
68+
"C#-Async"={quickstartSlug="dotnet"}
6869
"RedisVL"={quickstartSlug="redis-vl"}
6970
"PHP"={quickstartSlug="php"}
71+
"Rust-sync"={quickstartSlug="rust"}
72+
"Rust-async"={quickstartSlug="rust"}
7073

7174
# Markup
7275
[markup]

content/commands/acl-log.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ title: ACL LOG
4747
---
4848
The command shows a list of recent ACL security events:
4949

50-
1. Failures to authenticate their connections with [`AUTH`]({{< relref "/commands/auth" >}}) or [`HELLO`]({{< relref "/commands/hello" >}}).
51-
2. Commands denied because against the current ACL rules.
52-
3. Commands denied because accessing keys not allowed in the current ACL rules.
50+
1. Failed authentications with [`AUTH`]({{< relref "/commands/auth" >}}) or [`HELLO`]({{< relref "/commands/hello" >}}) (reason = auth)
51+
2. Commands violating the current ACL rules
52+
- Disallowed commands (reason = command).
53+
- Disallowed keys (reason = key).
54+
- Disallowed pub/sub channel (reason = channel).
5355

5456
The optional argument specifies how many entries to show. By default
5557
up to ten failures are returned. The special [`RESET`]({{< relref "/commands/reset" >}}) argument clears the log.

content/commands/hdel.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ If `key` does not exist, it is treated as an empty hash and this command returns
6363

6464
## Examples
6565

66+
{{< clients-example set="cmds_hash" step="hdel" >}}
67+
HSET myhash field1 "foo"
68+
(integer) 1
69+
HDEL myhash field1
70+
(integer) 1
71+
HDEL myhash field2
72+
(integer) 0
73+
{{< /clients-example >}}
74+
75+
Give these commands a try in the interactive console:
76+
6677
{{% redis-cli %}}
6778
HSET myhash field1 "foo"
6879
HDEL myhash field1
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
Title: Redis AI Agent Builder
3+
alwaysopen: false
4+
categories:
5+
- docs
6+
- develop
7+
- ai
8+
description: Build custom AI agents powered by Redis with our interactive code generator
9+
linkTitle: Agent Builder
10+
hideListLinks: true
11+
weight: 50
12+
---
13+
14+
15+
Agents use Redis for data storage, vector search, and conversation memory. The interactive builder generates production-ready code in your preferred programming language.
16+
17+
## Get started
18+
19+
Use the interactive builder below to generate your custom AI agent code:
20+
21+
{{< agent-builder >}}
22+
23+
## What are AI agents?
24+
25+
AI agents are intelligent systems that can plan, remember, and take actions to help users accomplish goals. Unlike simple chatbots, agents can remember conversations, plan multi-step tasks, use external tools, and learn from interactions.
26+
27+
Redis powers these capabilities with fast, reliable data storage and retrieval that keeps your agents responsive and intelligent.
28+
29+
**Learn more**: [How agents work](agent-concepts/)
30+
31+
## What you can build
32+
33+
Choose from two types of intelligent agents:
34+
35+
- **Recommendation engines**: Personalized product and content recommendations
36+
- **Conversational assistants**: Chatbots with memory and context awareness
37+
38+
The agent builder will generate complete, working code examples for your chosen agent type.
39+
40+
## Features
41+
42+
- **Multiple programming languages**: Generate code in Python, with JavaScript (Node.js), Java, and C# coming soon
43+
- **LLM integration**: Support for OpenAI, Anthropic Claude, and Llama 2
44+
- **Redis optimized**: Uses Redis data structures for optimal performance
45+
46+
## After you generate your code
47+
48+
Use the **Copy** or **Download** buttons and follow the steps below to test it locally:
49+
50+
1. **Set up your environment**: Install Redis and the required dependencies
51+
2. **Configure your API keys**: Add your LLM provider credentials to environment variables
52+
3. **Test locally**: Start with simple conversations to verify everything works
53+
4. **Deploy and scale**: Use Redis Cloud for production deployments
54+
55+
The generated code includes detailed setup instructions and best practices to get you started quickly. If you want to generate another agent, select the **Start again** button.
56+
57+
## Learn more
58+
59+
### AI agent resources
60+
61+
- [How agents work](agent-concepts/) - Learn how agents work and why Redis is perfect for them
62+
63+
### Redis AI documentation
64+
65+
- [Redis Vector Search](/develop/interact/search-and-query/vector-search/) - Semantic search capabilities
66+
- [Redis Streams](/develop/data-types/streams/) - Real-time data and conversation history
67+
- [AI Notebooks Collection](/develop/ai/notebook-collection/) - Interactive tutorials and examples
68+
- [Ecosystem Integrations](/develop/ai/ecosystem-integrations/) - Redis with AI frameworks
69+
70+
### Community and support
71+
72+
- Join the [Redis Discord](https://discord.gg/redis) for community support
73+
- Explore [Redis AI Resources on GitHub](https://github.com/redis-developer/redis-ai-resources)
74+
- Watch [AI Video Collection](/develop/ai/ai-videos/) for tutorials and demonstrations

0 commit comments

Comments
 (0)