> ## Documentation Index
> Fetch the complete documentation index at: https://ladygraph.io.vn/llms.txt
> Use this file to discover all available pages before exploring further.

# Status and known limits

> What is built, what is only designed, and the risks that remain open.

This page follows the project's own status table. A feature listed as not built has a design but no code.

## What is built

| Piece | Where |
| - | - |
| Records: `Document`, `Passage`, `DocVersion`, `Concept`, `Evidence`, `Relation`, `Context`, `ContextChoice`, `Contribution` | `core/model.py` |
| Context registry and candidate ranking (top 3 per level) | `core/registry.py` |
| Apply and merge rules | `core/merge.py`. The store applies the same rules in a transaction. |
| In-memory store | `stores/memory.py` |
| Embedded graph-database store, with edges derived from rows | `stores/ladybug.py`, `stores/plan.py`, `stores/reads.py` |
| Networked graph-database store | `stores/ladybug_flight.py` |
| Embedders (hosted, and a local one) | `embedding/` |
| Searcher with the decider, relation hops and the relevance gate | `retrieval/searcher.py` |
| Extractors | `extractors/`: model-read, declared, lexicon, reading and tagger-based |

## What is not built

| Piece | State |
| - | - |
| Context summaries with a refresh step | Designed, not built. See below. |
| A vector index | An exact scan is used. |
| Bulk loading of edges for a very large rebuild | Not built. A naive per-edge `UNWIND ... MATCH` took 370 s for 50,000 edges. |
| Moving relation hops into the database | Hops are computed in Python from the loaded concepts. |

### 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.

None of this exists in code. There is no `summary_hash` column and no refresh step. Today a context's `description` is written when the context is created.

## Known risks

1. **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.
2. **Unequal depth.** Depth is open per branch, so "level 2" is not the same granularity everywhere.
3. **Summary quality.** A summary of weak descriptions is weak, and weak models produce weak words and few relations on real documents.
4. **Duplicate contexts.** The same topic under two labels splits its concepts. Draft contexts need a human merge.
5. **Decider consistency.** Scores across levels may not be calibrated. `min_route` and `min_score` are tuned values, not constants.
6. **Wide contexts.** Judging 50 children of one context is costly. `max_options` cuts by cosine.
7. **Cost and latency.** Each level costs a decider call. Measure on your own question set before relying on an estimate.

Open decisions: which embedder (it sets the vector size), which decider, and how to tune the search parameters on an evaluation question set.

## Further reading

* Malkov and Yashunin, HNSW, [arXiv 1603.09320](https://arxiv.org/abs/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](https://arxiv.org/abs/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](https://docs.ladybugdb.com/extensions/vector). HNSW index functions and filtered search through projected graphs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.