Quickstart
Start up a BioAgent locally to build on
Local Development Setup
Prerequisites
Docker installed
pnpm installed
Node.js installed
Setup Steps
Follow the setup instructions in SETUP.md
Start the Oxigraph server: (Or use OriginTrail's DKG)
docker run --rm -v $PWD/oxigraph:/data -p 7878:7878 ghcr.io/oxigraph/oxigraph serve --location /data --bind 0.0.0.0:7878
Now your local oxigraph instance is ready to load the processed scientific papers from the sampleJsonLds
folder. More info here.
Load JSON-LD data into Oxigraph/OriginTrail's DKG:
pnpm run script scripts/jsonldToTriple.ts
Now your oxigraph has the triples loaded!
(Optional) Start PostgreSQL with vector support:
docker run --name BioAgents-db -e POSTGRES_PASSWORD=123 -p 5432:5432 -d ankane/pgvector
Alternatively, you can use pglite instead of PostgreSQL (Eliza will give you that option when starting for the 1st time)
Start the development server:
pnpm run dev
Enable the hypothesis generation service:
Uncomment line 25 and 27 in index.ts
Last updated