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
Copy file name to clipboardExpand all lines: docs/index.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@ RedisAI is a Redis module for executing Deep Learning/Machine Learning models an
7
7
## Where Next?
8
8
* The [Introduction](intro.md) is the recommended starting point
9
9
* The [Quickstart](quickstart.md) page provides information about building, installing and running RedisAI
10
-
* The [Commands](commands.md) page is a reference of the RedisAI API
10
+
* The [Commands](commands.md) page is a reference of the RedisAI API
11
+
* The [RedisGears integration](https://oss.redis.com/redisgears/master/redisai.html) page is a reference of the built-in integration of [RedisGears](https://oss.redis.com/redisgears/) with RedisAI via a Python plugin.
11
12
* The [Clients](clients.md) page lists RedisAI clients by programming language
12
13
* The [Configuration](configuration.md) page explains how to configure RedisAI
13
14
* The [Performance](performance.md) page provides instructions for running benchmarks with RedisAI
Copy file name to clipboardExpand all lines: docs/intro.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -349,9 +349,51 @@ The tensors that were stored under the given INPUTS names can be accessed from t
349
349
```
350
350
Moreover, it is possible to run 'native' Redis commands from within a TorchScript in RedisAI, and even executing a model in RedisAI. These capabilities enable RedisAI users to run end-to-end processes with their data. Further details and examples can be found under [`AI.SCRIPTEXECUTE` command](commands.md#aiscriptexecute)
351
351
352
+
## Running AI flows via Python plugin
353
+
354
+
[RedisGears](https://oss.redis.com/redisgears/) module has a built-in integration with RedisAI via a Python plugin that enables the registration of AI flows, and triggering it upon events.
355
+
For example, we can store the following AI flow which sets tensors in Redis and executes `mymodel` over these tensors:
Then, you can trigger this execution and get the results by running:
380
+
381
+
```
382
+
redis> RG.TRIGGER ModelRun
383
+
1) "ModelRun_OK"
384
+
redis> AI.TENSORGET c{1} VALUES
385
+
1) "2"
386
+
2) "6"
387
+
3) "6"
388
+
4) "12"
389
+
```
390
+
391
+
The full reference page for the RedisGears-RedisAI-Python integration which also includes setup instructions and more detailed examples, can be found [here](https://oss.redis.com/redisgears/master/redisai.html).
392
+
352
393
## Where Next?
353
394
This covers the basics of RedisAI's data structures and capabilities. For more information refer to:
354
395
355
396
* The [Commands page](commands.md) provides a reference of the RedisAI API
397
+
* The [RedisGears integration](https://oss.redis.com/redisgears/master/redisai.html) page is a reference of the built-in integration of RedisGears with RedisAI.
356
398
* The [Clients page](clients.md) lists RedisAI clients in several programming languages
357
399
* The [Examples page](examples.md) showcases several examples that can be extended
0 commit comments