Simple KB

Pre-release. Simple KB's first release on PyPI is on its way: until it's out, installing it won't find it.

Adding documents

A knowledge base from a docs site

Upload a docs site's pages in the portal; the built-in Sphinx profile reads them. Recorded with Python 3.13 library reference (PSF licence).

Files and folders

skb create handbook ./docs --description "On-call and release docs"
skb add handbook ./more-docs ./release-notes.pdf

A base’s description is what agents read to decide whether to search it, so say what it holds. --exclude leaves files out by glob, and can be repeated.

Uploads

skb upload handbook ./manual.pdf ./archive.zip

Uploads are chunked and resumable: a dropped connection carries on where it stopped. In the portal, drop files or a whole folder onto a base. Archives (zip and tar) keep their folder structure.

Websites and git repositories

skb add handbook https://docs.example.com/guide/
skb add handbook --git https://github.com/example/docs --ref main --paths "docs/**"

URL and git sources go through a guard that refuses private network addresses, so a base can’t be used to reach inside your network. --allow-private-urls lets a trusted internal docs host through.

Refreshing

skb refresh handbook          # rebuild what changed
skb refresh handbook --full   # rebuild everything

A refresh rebuilds only what changed, by content. Builds run in the background: skb builds lists them, skb stop stops one between documents, and skb resume carries on.