How to sync the knowledge corpus to the Dell Sovereign Node's Open WebUI RAG mirror using pnpm knowledge:sync-dell. Covers prerequisites, running the sync, verifying results, and troubleshooting connectivity issues.
The Dell Sovereign Node (Dell XPS 8950 with RTX 3090) runs local AI inference via Ollama and hosts a RAG mirror of the knowledge corpus through Open WebUI. This allows Cosmo to retrieve knowledge documents entirely locally — no cloud, no API keys, full sovereignty.
The sync command uploads all published knowledge documents to the Dell's Open WebUI instance, where they're embedded and indexed for retrieval-augmented generation.
The knowledge corpus has two retrieval paths:
| Path | Provider | When it's used |
|---|---|---|
| Cloud | Upstash Vector | Primary path — always available, synced by GitHub Actions on merge |
| Local | Dell Open WebUI | Development, experimentation, offline access, sovereignty |
The cloud path is automatic — merge a PR and the GitHub Action syncs to Upstash. The Dell path is manual and on-demand, because the Dell isn't always powered on.
http://dell:8080 or the Tailscale hostname).OPEN_WEBUI_API_KEY is set in your .env file at the repository root:# In .env
OPEN_WEBUI_API_KEY=sk-your-api-key-here
To get the API key, open the Dell's Open WebUI in a browser, go to Settings > Account, and generate an API key.
pnpm install has been run (the sync script uses project dependencies).pnpm knowledge:sync-dell --dry-run
Shows which documents would be uploaded without actually syncing. Use this to verify connectivity and see the document list.
pnpm knowledge:sync-dell
Uploads all documents from knowledge/sources/, knowledge/commentary/, knowledge/references/, knowledge/guides/, and knowledge/collections/ to the Dell's Open WebUI RAG store.
Every markdown document in the knowledge corpus with valid YAML frontmatter. The sync includes:
Documents in knowledge/incoming/ are NOT synced — they're staging files that haven't been published yet.
The sync is idempotent — running it multiple times won't create duplicates. It uploads or updates each document based on its path.
"Connection refused" or timeout
tailscale status"Unauthorized" or 401 error
OPEN_WEBUI_API_KEY is missing or invalid.env file (not .env.example or .env.local)"No documents found"
knowledge/incoming/pnpm knowledge:publish firstls knowledge/sources/ knowledge/guides/Sync completes but documents don't appear in Open WebUI