Knowledge graph
Khiip is designed to model relationships between captures as a typed knowledge graph: a small, purpose-designed vocabulary of canonical edges plus an escape hatch for everything else.
The edge vocabulary
SUPPORTS · CONTRADICTS · SUPERSEDES · ELABORATES · REFERENCES + RELATESThe five typed edges give deterministic semantics; RELATES is the escape for novel
relationships the vocabulary didn’t anticipate. This hybrid model is deliberate — a
small, typed canonical set keeps edges deterministic while RELATES preserves coverage for
the long tail.
Each edge also carries a plain-English template (e.g. “Khiip detected: {source} backs up {target}”) so relationships read naturally in any surface.
Interpretability fields
Every edge records:
evidence_span— the span that justifies the edgeconfidence— 0.0–1.0;≥0.7reads as a primary edge, below that as tentativevocab_match— whether it landed on a canonical type or fell back toRELATES
This lets you filter to high-confidence canonical edges, or include tentative emergent ones.
Storage
The graph lives in the SQLite index as an append-only structure with a correction chain — edges are superseded, not deleted, so the history of how the graph evolved is preserved.