Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.26 KB

README.md

File metadata and controls

72 lines (47 loc) · 2.26 KB

logo

Dria Docker

Dria Docker is an all-in-one environment to use Dria, the collective knowledge for AI.

Setup

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.

Using Dria CLI

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.

Using Compose

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

Usage

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.

License

Dria Docker is licensed under Apache 2.0.