Kaydorn Sibyl

Teach an AI agent the craft of your company.

We train an AI Agent on your company’s knowledge base: better answers, with fewer computing resources.

A generic AI doesn’t know your company. It rereads everything, every time.

Code, contracts, chats: to answer, AI puts the whole archive in its context. And GPU memory grows with every token.

A generic agent knows a little about everything. A Sibyl agent knows everything about your company.

It doesn’t memorise your documents. It learns your domain.

Sibyl trains the KV cache of the open-weights model on your knowledge base.

  • Your data
  • Self-study loop
  • Open-weights model, frozen
  • KV cache: your Sibyl
  1. 1self_study()

    Two copies of the open-weights model read an excerpt of your knowledge base: one asks questions, the other answers.

  2. 2distill()

    The teacher answers with the excerpt in context, the student with the KV cache alone. How far they diverge is measured, token by token.

  3. 3update_kv()

    The gradient updates only the KV cache: the model’s weights stay frozen, and the knowledge goes into your Sibyl.

  4. 4save_sibyl()

    The Sibyl is saved on your servers, one per archive, and loaded on the model for every question, without rereading the archive.

The same quality. A fraction of the cost.

  • 38.6×

    less GPU memory.

  • 26.4×

    more answers per second.

  • 484k

    tokens in one Sibyl, against a 128k limit.

Figures published in 2025 by the Stanford researchers who devised the technique, measured on archives of 100 to 484 thousand tokens. Read the study

An agent for every department. Working together.

Legal, finance, operations: each department’s Sibyl combines with the others while the agent answers, with no retraining.

Questions that today only an expert in your company can answer.

  • Which contracts renew automatically in 2027?
  • Where do we calculate VAT on invoices abroad?
  • What did we promise this customer in the last chat?
  • Why did the operating margin fall in the second quarter?
  • What must a new non-EU supplier do before the first order?

The technique, for whoever takes it to production.

Self-study, distillation and Sibyl: the full architecture, with the figures of the Stanford research.

Open the architecture

Phase 1

Study

Offline, once per archive

≈ 30 min · 8 × H100 · 8B model

  1. 01Archive

    The documents you choose: contracts, financial statements, manuals, code.

    up to 484k tokens

  2. 02Excerpts

    Pieces drawn at random from the archive, each headed by a line that says what it holds.

    512-4,096 tokens

  3. 03Prompts

    Five kinds of seed prompt, the same for every archive: structuring, summary, question, use cases, creative.

    5 kinds, one at random

  4. 04Self-study

    Two copies of the model read the excerpt: one asks a question from the prompt, the other answers.

    A ⇄ B

  5. 05Distillation

    The teacher answers with the excerpt in front of it, the student with the Sibyl alone. The Sibyl is corrected until their predictions match.

    KL, token by token

  6. 06Sibyl

    A trained KV cache, which starts from the cache of the archive’s first p tokens.

    p from 128 to 8,192

Objective

minZ Σi KL( F(· | c̃ ⊕ x<i) ‖ FZ(· | x<i) )

F
the model, frozen
Z
the Sibyl, the only part that learns
c̃
the excerpt of the archive
x
the generated conversation

Shape of a Sibyl

Z ∈ ℝL × p × d × 2

L
the layers of the model
p
the positions of the Sibyl
d
the size of keys and values
2
a key and a value

The Sibyl goes to the server

Phase 2

Serving

Online, for every question

SGLang · 1 × H100

  1. 07Catalogue

    One Sibyl for each archive, ready on the server.

    LEGAL · FINANCE · HR

  2. 08Composition

    The Sibyls the question needs line up one after another, without studying again.

    Z1 ⊕ Z2 ⊕ q

  3. 09Model

    It reads the line as the start of the text, then the question. No weight changes.

    a prefix of p tokens

  4. 10Answer

    It cross-checks the sources as if it had read every archive.

    up to 26× more answers per second

GPU memory per user

2 × 32 × 8 × 128 × 2 B = 128 KiB

128 KiB
for every token the model keeps in front of it
2
key and value
32
layers
8
KV heads
128
size of a head
2 B
one number in bf16

Full context · 128k tokens

16 GiB

Sibyl · p = 2,048

256 MiB

The steps, sizes and times come from the Stanford study (2025), run on models of 3 and 8 billion parameters. The GPU memory arithmetic is ours, on an 8-billion-parameter model with 32 layers and 8 KV heads.

Which department do we specialise first?

We train the first Sibyl together and measure answers, memory and speed on your hardware.

Request a demo