From 33eeacfde5aae070c988300a650ec988438bc437 Mon Sep 17 00:00:00 2001 From: XuhuiZhou Date: Tue, 26 Nov 2024 13:06:30 -0500 Subject: [PATCH] update the instruction to load existing data via docker --- docs/pages/index.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx index 26bec779..039cbfb7 100644 --- a/docs/pages/index.mdx +++ b/docs/pages/index.mdx @@ -144,13 +144,18 @@ or manual setup: Docker is my thing. - Please follow the [instruction](https://redis.io/docs/stack/get-started/install/docker/) to start a redis-stack server or use an existing server. You can also check [Q&A](/docs/troubleshooting.md) to initiate the redis server with the Sotopia data. + Please follow the [instruction](https://redis.io/docs/stack/get-started/install/docker/) to start a redis-stack server or use an existing server. If you want to use the existing data in Sotopia, you can download the `dump.rdb` file from [here](https://cmu.box.com/shared/static/xiivc5z8rnmi1zr6vmk1ohxslylvynur). Feel free to check more datasets related to Sotopia [here](https://huggingface.co/collections/cmu-lti/sotopia-65f312c1bd04a8c4a9225e5b). + + After downloading the `dump.rdb` file, make a `redis-data` folder in an desired {your_path} directory. And then you can start the server with the following command: + ```bash + docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 -v {your_path}/redis-data:/data/ redis/redis-stack:latest + ``` The `REDIS_OM_URL` need to be set before loading and saving agents: ```bash conda env config vars set REDIS_OM_URL="redis://user:password@host:port" ``` - + No, I don't want to use Docker.