hyperboria/nexus/cognitron
the-superpirate c04df9341a - fix: Change name
GitOrigin-RevId: 35adbf7af45091f555c329d66b5ed1806e55461e
2021-02-21 15:22:32 +03:00
..
configs - fix: Various fixes for release 2021-01-29 11:26:51 +03:00
installer - fix: Fix importing documentation 2021-01-29 12:08:40 +03:00
schema - fix: Various fixes for release 2021-01-29 11:26:51 +03:00
web - fix: Change name 2021-02-21 15:22:32 +03:00
__init__.py - fix: Various fixes for release 2021-01-29 11:26:51 +03:00
BUILD.bazel - fix: Various fixes for release 2021-01-29 11:26:51 +03:00
docker-compose.yml - fix: Fix importing documentation 2021-01-29 12:08:40 +03:00
README.md - fix: Add pinning to documentation 2021-01-29 14:09:25 +03:00

Nexus Cognitron

Prerequisite

Follow the root guide to install Docker, IPFS and Bazel (optionally)

Guide

1. Download data dumps

export COLLECTION=bafykbzacebzohi352bddfunaub5rgqv5b324nejk5v6fltjh45be5ykw5jsjg
export COLLECTION_PATH=$(realpath $COLLECTION)
ipfs get $COLLECTION && ipfs pin add $COLLECTION

2. Launch Nexus Cognitron

Create docker-compose.yml file to set up Nexus Cognitron and then launch it:

docker-compose pull && docker-compose up

then go to http://localhost:3000

3. (Optional) Deploy data dumps into your database

There is a function work in traversing script that you can reimplement to iterate over the whole dataset and insert it into your own database or do whatever you want in parallel mode.

By default this script is just printing documents.

bazel run -c opt installer -- iterate \
  --data-filepath $COLLECTION_PATH/index/scitech \
  --schema-filepath schema/scitech.yaml