Dria Docker is an all-in-one environment to use Dria, the collective knowledge for AI.
To use Dria Docker, you need:
- Docker installed in your machine.
- A Dria contract ID
A Dria contract is the knowledge that is deployed on Arweave; the contract ID can be seen on each knowledge deployed to Dria. For example, consider the Dria knowledge of The Rust Programming Language:
The base64 URL there is our contract ID, and it can also be seen at the top of the page at that link.
The preferred method of using Dria Docker is via the Dria CLI, which is an NPM package.
npm i -g dria-cli
You can see available commands with:
dria help
See the docs of Dria CLI for more.
Download the Docker compose file:
curl -o compose.yaml -L https://raw.githubusercontent.com/firstbatchxyz/dria-docker/master/compose.yaml
You can start a Dria container with the following command, where the contract ID is provided as environment variable.
CONTRACT=contract-id docker compose up
When everything is up, you will have access to both Dria and HollowDB on your local network!
- Dria HNSW will be live at
localhost:8080
, see endpoints here. - HollowDB API will be live at
localhost:3030
, see endpoints here.
These host ports can also be changed within the compose file, if you have them reserved for other applications.
Tip
You can also connect to a terminal on the Redis container and use redis-cli
if you would like to examine the keys.
Dria Docker is licensed under Apache 2.0.