SPB Git forge

spb/ai-atlas

Public
41commits 1branches 0releases
4.6 MBsize
maindefault branch
12 days agolast push
HTML 77.2% TypeScript 10.5% Python 9.6% JavaScript 2.5%
830 B · 20 lines shellscript
Raw Blame History
1#!/bin/bash2# Initial corpus build on the production node (run ON the node from ~/apps/ai-atlas). Idempotent; connectors are conditional3# (ETag / content hash) so re-running only fetches what changed. Priority 0 first (labs, hub, research, providers), then the rest.4set -euo pipefail5cd "$(dirname "$0")/.."6export PATH="/opt/homebrew/opt/postgresql@17/bin:/opt/homebrew/bin:$PATH"7export DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://aiatlas:aiatlas@127.0.0.1:5432/aiatlas}8export REDIS_URL=${REDIS_URL:-redis://127.0.0.1:6379/5}9export AIA_DATA_DIR=${AIA_DATA_DIR:-$HOME/ai-atlas-data}10export AIA_LOG_JSON=011AIA=.venv/bin/aia1213$AIA migrate | tail -114$AIA seed | tail -115echo "== all enabled connectors, once each, in priority order"16$AIA crawl --priority 9 || true17$AIA quality | tail -118$AIA stats | head -4019$AIA status20