Hive Intelligence

Documentation

/ Concepts

Overview

0.9.0 docs, commit 05e2eb4PyPI packages at 0.9.0docs/concepts/overview.mdpublic repository on GitHub

Hive Intelligence was built as something different from traditional RAG - simple to understand, operate and create, usable with AI subscriptions without having to pay for API costs, and based on the OKF card format.

The problem

An organisation's working knowledge is scattered across vendor manuals, release notes, support tickets, database schemas and the heads of the people who have been there longest. When someone needs an answer, they ask a colleague, or they search, or they guess.

Handing that pile to a language model does not fix it. Retrieval-augmented generation (RAG) answers a question the organisation did not ask: which passages resemble this query. Resemblance is not truth. A passage can be perfectly on-topic and three years out of date, or contradicted by a later decision nobody wrote down, or correct for one client and wrong for another. The model has no way to tell, so it answers confidently either way.

The failure is not the model. It is that nothing in the pipeline ever asserted that a given statement was true, current, and applicable here.

The approach

Hive inverts the order. Instead of indexing everything and hoping the ranker sorts it out, it turns source material into cards and records: one reviewed concept per card, small enough to read, reviewed by a person before entering the corpus, and stored as plain markdown in git, alongside exact source records (documents, field mappings, tables and diagrams) that cards cite by id when an exact value matters. API specifications become dbobject cards, reached through find_db_objects or by card id.

At serving time there is no model by default, no embedding, and no vector index. The agent asks for concepts by id, searches metadata and cached body words, or reads exact records with find_records and get_record. Search returns lean metadata hits; resolving a hit retrieves the card a human approved. An optional, key-gated System One layer can additionally reorder retrieval candidates as a corpus grows, failing open to the deterministic order. The reasoning happens in the agent. The judgement about what is true happened earlier, and left an audit trail.

On the active ingest route, hive-ingest runs beside the files to build checked, secret-masked records and propose where elements belong, an assistant drafts cards for review through the Hive App connector, reviewers approve what enters the corpus, and hive-serve hands approved cards and records to an agent:

From files to approved cards and exact records
Rendered at build time from the document's own Mermaid source, in the repository's house style.

For existing scripted pipelines, hive-prep still turns raw documents into atomic markdown (including legacy Office files), while the model stages of hive-gen that turn atomic markdown into cards (taxonomy, assignment and distillation) are deprecated.

Three things follow from this that are worth stating plainly.

It is slower to build. Curation is real work. Hive puts deterministic extraction and assisted drafting in front so a person is reviewing a grounded proposal rather than writing from scratch, but a person still reviews.

It is much cheaper to run. Serving is file reads. No vector database, no embedding calls, no reranker by default. At serving time, the only model calls come from the optional, key-gated System One reranker, if you enable it.

It degrades honestly. If a card is missing, the agent gets nothing rather than something plausible. That is the intended behaviour: a gap you can see beats an answer you cannot check.

Two ways to use it

Hive is usually read as an alternative to RAG. It is also useful as a stage in front of one, and that is the smaller commitment.

As the system. Cards are served directly to an agent by id, with corrections attached. No embeddings, no vector store, no model. Deterministic and auditable.

In front of an existing RAG system. Hive replaces ingestion and leaves retrieval alone. A card is already a chunk: one reviewed concept, deduplicated, with boilerplate stripped and no accidental split mid-idea. Your embedder and index stay exactly as they are.

The second mode matters because RAG systems usually underperform for reasons ranking cannot fix. In one measured baseline over labelled questions, adding a reranker did not improve hit-rate, while a meaningful share of expected documents was never retrieved, at any depth. That is a corpus problem, and it is upstream of anything a ranker can influence.

Whether it is your problem is measurable in an afternoon, before you change anything. See using Hive alongside an existing RAG system.

Who this is for

Hive suits a body of knowledge that is large enough to be unmanageable but stable enough to be worth curating, where being wrong is expensive. Product documentation for complex operational software is the case it was built for. Legal, clinical and regulatory material have the same shape.

It suits you badly if the content changes faster than anyone can review it, if nobody owns correctness, or if approximately-right answers are good enough. In those cases ordinary retrieval is cheaper and the curation overhead buys nothing.

What a card looks like

---
type: concept
title: Excess wave need processing
description: How replenishment quantities are calculated when demand exceeds available stock.
product: widget
related: [widget/wave-planning, widget/replenishment-triggers]
sources:
  - kind: document
    ref: "Operations Guide 2024, section 8.3"
---

## Overview

Replenishment is triggered when on-hand quantity in a pick location falls below its minimum...

Small, self-contained, cross-linked, and carrying its own provenance. The cards reference covers every field and all five types.

Where to go next