RobotecAI/rai

Artifact Database

Open

#164 opened on Aug 28, 2024

 (1 comment) (1 reaction) (1 assignee)Python (73 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (554 stars)
PR merge metrics
 (PR metrics pending)

Description

Feature RAI uses an artifact database for saving artifacts such as images, audios, videos etc. returned by ToolCalls.

Current solution Currently, a simple pickle file is used, which creates a bunch of problems due to tool calling concurrency (concurrent io ops). https://github.com/RobotecAI/rai/blob/99ff0a9774ab4f4376a3d7a991fb51518851f001/src/rai/rai/agents/state_based.py#L84-L100 Better alternative An alternative would be to use a database like redis with a fallback method if the server is not accessible.

Contributor guide