Knowledge base — SOPs, versions, mandatory acknowledgements
A searchable home for every standard operating procedure, playbook and house rule — with version history and provable read-receipts.
Restaurant knowledge is fragmented: in heads, in PDFs on a USB stick, in the shift book. When someone leaves, it walks out. The knowledge base brings it into one place — searchable, versioned, and with the ability to mark critical content as required reading.
A single knowledge object — title, rich-text body, category, optional attachments. Every entry has an active version and a history of all prior revisions.
Full-text search (tsvector)
Every entry maintains an auto-updated content_search column of type tsvector. Search runs straight in Postgres — fast enough that the webapp's search bar shows hits live while you type. Indexing weights the title higher than the body.
Versions & rollback
Every save creates a new row in knowledge_entry_versions with author, timestamp and an optional change note. Any prior version can be rolled back with a click — the active entry is replaced, the history is kept intact.
Mandatory acknowledgements
An entry can be marked "required reading". Once on, every team member with a matching role/location assignment has to open it and click "Acknowledged". The confirmation lands in knowledge_acknowledgements. Admins see in the compliance tab who still has to acknowledge — including the due date.
AI drafting assistance
The editor has a "AI draft" button. It hands the title, current content and the restaurant context to the Anthropic endpoint and returns a clean draft in Onboard's style. The human author decides before saving whether the draft fits.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| category | string | — | — | Free-form tag (service, kitchen, safety, house rules …). Filters the sidebar and search. |
| is_published | boolean | — | — | Drafts are visible only to the author and admins. Publish reveals the entry to the team. |
| is_required | boolean | — | — | Turns on the mandatory acknowledgement, scopable per role and location. |
AI assistant reads the knowledge base
The built-in AI assistant has a tool that queries the knowledge base. Ask "How do we open the wine safe?", and the assistant quotes straight from the matching entry, with a source link back to the detail page.