Skip to content

Commit

Permalink
update the instruction to load existing data via docker (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou authored Nov 26, 2024
1 parent d55ec34 commit dbd8294
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,18 @@ or manual setup:
<AccordionItem value="item-1">
<AccordionTrigger>Docker is my thing.</AccordionTrigger>
<AccordionContent>
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"
```
</AccordionContent>
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>No, I don't want to use Docker.</AccordionTrigger>
Expand Down

0 comments on commit dbd8294

Please sign in to comment.