What is built
What is not built
Context summaries
Context.label stays stable. Context.description is meant to become a summary that tracks the current members. A model would rewrite it from the descriptions of the concepts placed directly in the context and the summaries of its child contexts. The design:
- The summary call never receives source text, so a summary does not touch evidence.
- Each summary is rewritten from the current members only, never from the previous summary, so errors do not accumulate.
- A stored hash of the inputs (
summary_hash) lets a rebuild with the same members reuse the stored text, which keeps a rebuild repeatable. - A change moves up the tree: a new concept marks its context and each ancestor stale, and they are refreshed bottom-up outside the write transaction.
- A context with very many members needs chunked summarizing.
summary_hash column and no refresh step. Today a context’s description is written when the context is created.
Known risks
- Wrong placement at build time. If a concept is placed under the wrong context, routing may never reach it. Entry at every depth gives a second route, but only if the node scores.
- Unequal depth. Depth is open per branch, so “level 2” is not the same granularity everywhere.
- Summary quality. A summary of weak descriptions is weak, and weak models produce weak words and few relations on real documents.
- Duplicate contexts. The same topic under two labels splits its concepts. Draft contexts need a human merge.
- Decider consistency. Scores across levels may not be calibrated.
min_routeandmin_scoreare tuned values, not constants. - Wide contexts. Judging 50 children of one context is costly.
max_optionscuts by cosine. - Cost and latency. Each level costs a decider call. Measure on your own question set before relying on an estimate.
Further reading
- Malkov and Yashunin, HNSW, arXiv 1603.09320. A node’s layer is drawn at random, so those layers carry no meaning. The index’s semantic depth is a different thing, and the two must not be confused.
- Sarthi et al., RAPTOR, arXiv 2401.18059. A recursive summary tree and the “collapsed tree” retrieval result. RAPTOR’s nodes are summaries of document chunks, not concepts, so its numbers are a prior, not a promise.
- LadybugDB vector extension. HNSW index functions and filtered search through projected graphs.