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.

What it reads

A knowledge base from Javadoc

Every method becomes its own entry, with its signature. Recorded with Apache Commons Lang 3.17 API docs (Apache License 2.0).

PDFs and scanned pages

PDFs cited by page, and text read from scans on your machine. Recorded with NIST SP 800-63B-4 and the Saturn V Flight Manual, 1968 (US government works).

Teach skb a new layout

A small JSON profile, tested on the pages first, then pushed. Recorded with Git 2.56 manual pages (GPL-2.0).

Profiles in the portal

A layout no built-in knows: the suggestion, a profile uploaded and tested, the search before and after. Recorded with Git 2.56 manual pages (GPL-2.0).

Documents

PDF (pages and headings kept), Word, PowerPoint, Excel, HTML, EPUB, CSV, Markdown and plain text. A long document is split into sections by its headings; a PDF keeps its page numbers, so a citation lands on the right page.

Images and scans

With the ocr extra, text in photos and scanned PDFs is read on your machine: no cloud OCR. A hit on such text hands the agent the image itself, so it can look.

Figures

Figures in documents are extracted, searchable by caption and alt text, and returned to agents with the passage around them.

API references, by structure

API references are read as data, not flat text: one entry per operation, class or member, with its signature.

  • OpenAPI and Swagger;
  • Javadoc (Java 8, 11, 17 and 21);
  • XML Schemas, and XML and JSON samples.

Generated docs sites

Built-in layout profiles recognise Sphinx, MkDocs (Material, Read the Docs and default themes), Doxygen, TypeDoc, rustdoc and Docusaurus. They keep each page’s own text, drop the navigation repeated on every page, and turn API entries into sections.

For any other generated site, skb profile create asks your own model to write a profile from a few sample pages, tests it, and leaves you a small JSON file. Only page outlines go to the model, never whole documents.