SDECB

Portal v2 Deployment / Running Locally

Portal v2 is static HTML/JS/CSS, but it needs an HTTP server (browsers block fetch() for file://).


From the repo root:

cd /path/to/SDECB
python3 -m http.server 8000

Open:


Regenerating data

Portal v2 reads from portal/v2/data/. To regenerate:

cd /path/to/SDECB
python3 scripts/ingest_podcast_kb.py --sdecb-root .
python3 scripts/ingest_interviews_kb.py --sdecb-root .
python3 scripts/ingest_website_content.py --sdecb-root .
python3 scripts/build_unified_kb_index.py --sdecb-root . --portal-data-dir portal/v2/data

Adding website content

  1. Drop the scrape export into:
    • knowledge_base/_sources/website/
  2. Re-run the ingestion scripts above.

—## Assistant-enabled local server (recommended for Phase 2)

If you want Portal v2 and the Assistant API endpoint (/api/chat), run:

SDECB_ASSISTANT_PORT=8010 python3 scripts/assistant_server.py

Then open:- http://127.0.0.1:8010/portal/v2/index.html