sotopia-lab / sotopia

Sotopia: an Open-ended Social Learning Environment (ICLR 2024 spotlight)
https://docs.sotopia.world
MIT License
148 stars 19 forks source link

[FEAT]: Run sotopia wo Redis #60

Closed XuhuiZhou closed 4 months ago

XuhuiZhou commented 5 months ago

Description

Currently, it looks like even if we provide an external dataset, the Redis still requests to connect to a database. This behavior is not good for extending Sotopia to other projects.

Additional Information

No response

ProKil commented 5 months ago

What do you mean by external dataset? As long as they can be converted into the EnvironmentProfile/AgentProfile format, they should be able to be saved onto Redis.

If they cannot be converted into those formats, the problem is not on Redis? It is best to describe the specific use case and we can find a way to support that.

ProKil commented 4 months ago

I added a colab example for setting up Redis for Sotopia. It is actually very straightforward. Feel free to reopen if there is a compelling use case where Redis the bottleneck for extending sotopia