Setup
To use Dria retriever, first install Dria JS client:npm
- API Key: you can get yours at your profile page when you create an account.
- Contract ID: accessible at the top of the page when viewing a knowledge or in its URL.
For example, the Bitcoin whitepaper is uploaded on Dria at https://dria.co/knowledge/2KxNbEb040GKQ1DSDNDsA-Fsj_BlQIEAlzBNuiapBR0, so its contract ID is
2KxNbEb040GKQ1DSDNDsA-Fsj_BlQIEAlzBNuiapBR0
. Contract ID can be omitted during instantiation, and later be set viadria.contractId = "your-contract"
Usage
npm