You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. [Azure Managed Redis](https://azure.microsoft.com/en-us/products/managed-redis): Fully managed Redis Enterprise on Azure
72
77
73
-
# Overview
78
+
> Enhance your experience and observability with the free [Redis Insight GUI](https://redis.io/insight/).
74
79
80
+
# Overview
75
81
76
82
## Index Management
83
+
77
84
1. [Design a schema for your use case](https://docs.redisvl.com/en/stable/user_guide/01_getting_started.html#define-an-indexschema) that models your dataset with built-in Redis and indexable fields (*e.g. text, tags, numerics, geo, and vectors*). [Load a schema](https://docs.redisvl.com/en/stable/user_guide/01_getting_started.html#example-schema-creation) from a YAML file:
85
+
78
86
```yaml
79
87
index:
80
88
name: user-idx
@@ -86,6 +94,12 @@ Choose from multiple Redis deployment options:
86
94
type: tag
87
95
- name: credit_score
88
96
type: tag
97
+
- name: job_title
98
+
type: text
99
+
attrs:
100
+
sortable: true
101
+
no_index: false# Index for search (default)
102
+
unf: false # Normalize case for sorting (default)
89
103
- name: embedding
90
104
type: vector
91
105
attrs:
@@ -94,12 +108,15 @@ Choose from multiple Redis deployment options:
@@ -110,6 +127,15 @@ Choose from multiple Redis deployment options:
110
127
"fields": [
111
128
{"name": "user", "type": "tag"},
112
129
{"name": "credit_score", "type": "tag"},
130
+
{
131
+
"name": "job_title",
132
+
"type": "text",
133
+
"attrs": {
134
+
"sortable": True,
135
+
"no_index": False, # Index for search
136
+
"unf": False # Normalize case for sorting
137
+
}
138
+
},
113
139
{
114
140
"name": "embedding",
115
141
"type": "vector",
@@ -125,6 +151,7 @@ Choose from multiple Redis deployment options:
125
151
```
126
152
127
153
2. [Create a SearchIndex](https://docs.redisvl.com/en/stable/user_guide/01_getting_started.html#create-a-searchindex) class with an input schema to perform admin and search operations on your index in Redis:
154
+
128
155
```python
129
156
from redis import Redis
130
157
from redisvl.index import SearchIndex
@@ -135,10 +162,12 @@ Choose from multiple Redis deployment options:
135
162
# Create the index in Redis
136
163
index.create()
137
164
```
165
+
138
166
> An async-compatible index class also available: [AsyncSearchIndex](https://docs.redisvl.com/en/stable/api/searchindex.html#redisvl.index.AsyncSearchIndex).
> Learn more about using [vectorizers]((https://docs.redisvl.com/en/stable/user_guide/04_vectorizers.html))in your embedding workflows.
222
254
223
-
224
255
### Rerankers
225
-
[Integrate with popular reranking providers](https://docs.redisvl.com/en/stable/user_guide/06_rerankers.html) to improve the relevancy of the initial search results from Redis
226
256
257
+
[Integrate with popular reranking providers](https://docs.redisvl.com/en/stable/user_guide/06_rerankers.html) to improve the relevancy of the initial search results from Redis
227
258
228
259
## Extensions
260
+
229
261
We're excited to announce the support for **RedisVL Extensions**. These modules implement interfaces exposing best practices and design patterns for working with LLM memory and agents. We've taken the best from what we've learned from our users (that's you) as well as bleeding-edge customers, and packaged it up.
230
262
231
-
*Have an idea for another extension? Open a PR or reach out to us at applied.ai@redis.com. We're always open to feedback.*
263
+
*Have an idea for another extension? Open a PR or reach out to us at <applied.ai@redis.com>. We're always open to feedback.*
232
264
233
265
### Semantic Caching
266
+
234
267
Increase application throughput and reduce the cost of using LLM models in production by leveraging previously generated knowledge with the [`SemanticCache`](https://docs.redisvl.com/en/stable/api/cache.html#semanticcache).
235
268
236
269
```python
@@ -254,13 +287,15 @@ llmcache.store(
254
287
response = llmcache.check(prompt="What is France's capital city?")
255
288
print(response[0]["response"])
256
289
```
290
+
257
291
```stdout
258
292
>>> Paris
259
293
```
260
294
261
295
> Learn more about [semantic caching]((https://docs.redisvl.com/en/stable/user_guide/03_llmcache.html))for LLMs.
262
296
263
297
### Embedding Caching
298
+
264
299
Reduce computational costs and improve performance by caching embedding vectors with their associated text and metadata using the [`EmbeddingsCache`](https://docs.redisvl.com/en/stable/api/cache.html#embeddingscache).
265
300
266
301
```python
@@ -286,6 +321,7 @@ embedding = vectorizer.embed("What is machine learning?")
286
321
# Subsequent calls retrieve from cache (much faster!)
287
322
cached_embedding = vectorizer.embed("What is machine learning?")
288
323
```
324
+
289
325
```stdout
290
326
>>> Cache hit! Retrieved from Redis in <1ms
291
327
```
@@ -305,31 +341,49 @@ history = SemanticMessageHistory(
305
341
distance_threshold=0.7
306
342
)
307
343
344
+
# Supports roles: system, user, llm, tool
345
+
# Optional metadata field for additional context
308
346
history.add_messages([
309
347
{"role": "user", "content": "hello, how are you?"},
> Learn more about [semantic routing](https://docs.redisvl.com/en/stable/user_guide/08_semantic_router.html).
367
423
368
424
## Command Line Interface
425
+
369
426
Create, destroy, and manage Redis index configurations from a purpose-built CLI interface: `rvl`.
370
427
371
428
```bash
@@ -387,17 +444,18 @@ Redis is a proven, high-performance database that excels at real-time workloads.
387
444
388
445
Built on the [Redis Python](https://github.com/redis/redis-py/tree/master) client, RedisVL provides an intuitive interface for vector search, LLM caching, and conversational AI memory - all the core components needed for modern AI workloads.
389
446
390
-
391
447
## 😁 Helpful Links
392
448
393
449
For additional help, check out the following resources:
394
-
- [Getting Started Guide](https://docs.redisvl.com/en/stable/user_guide/01_getting_started.html)
- [Redis AI Recipes](https://github.com/redis-developer/redis-ai-resources)
398
454
399
455
## 🫱🏼🫲🏽 Contributing
456
+
400
457
Please help us by contributing PRs, opening GitHub issues for bugs or new feature ideas, improving documentation, or increasing test coverage. [Read more about how to contribute!](CONTRIBUTING.md)
401
458
402
459
## 🚧 Maintenance
460
+
403
461
This project is supported by [Redis, Inc](https://redis.io) on a good faith effort basis. To report bugs, request features, or receive assistance, please [file an issue](https://github.com/redis/redis-vl-python/issues).
0 commit comments