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

# Introduction

> ladyGraph is a concept index over knowledge that lives in other systems.

ladyGraph is a knowledge-graph index over a business's internal documents. Those documents can be skills, policies, guidelines and the configuration of business applications. It reads them from other systems, uses an LLM to find the concepts in them, and records those concepts, how they relate, and exactly where each one is grounded. You answer a question by walking that index, and the answer carries a pointer to the original text.

## What it reads

A document reaches ladyGraph through a [source](https://ladygraph.io.vn/guides/sources.md). The source reads the other system and returns Documents. ladyGraph supports these inputs today:

| System | Source kind | What it reads |
| - | - | - |
| A SQL database, such as Postgres | `sql` | Tables of documents and their chunks. The queries you write join them into Documents. |
| JSON or YAML files | `json` | Rules, glossary entries, routing rules and other settings, one Document per entry. |
| Markdown files | `markdown` | Notes, policies and guidelines, one Document per section. |
| Pydantic models | `pydantic` | Configuration that already lives in application code. |

Whatever the input, the documents stay in their own system. ladyGraph keeps the concepts and a pointer to where each one is written.

## Five ideas that shape it

> [accordion] The index points, it never copies
>
> A piece of evidence is an address, a span (start and length) and a fingerprint of the exact words. The text stays in the source system and is read back when a hit is shown. If the words change, the fingerprint no longer matches and the hit is dropped.

> [accordion] Concepts are equal, contexts nest
>
> A concept sits in one context, and contexts form a tree of topics. Typed relations such as `APPLIES_TO` and `APPROVED_BY` link concepts across contexts.

> [accordion] Vectors choose where to start, small models decide
>
> The embedder picks the starting contexts. A small decision model makes every choice between topics and between concepts. It reads the question together with the options, and "none of these" is always one of them.

> [accordion] A document is saved all or nothing
>
> The concepts and the document's version record go into the index in one transaction, even when the index is on another machine.

> [accordion] Only documents in force are indexed
>
> Access labels travel with the data. ladyGraph never enforces them.

## Where to go next

> [card] [Quickstart](https://ladygraph.io.vn/quickstart.md)
>
> Set up the environment and run your first lesson.

> [card] [How it works](https://ladygraph.io.vn/concepts/how-it-works.md)
>
> Follow a document into the index and a question out of it.

> [card] [Vocabulary](https://ladygraph.io.vn/concepts/vocabulary.md)
>
> Source, Document, Evidence and the other terms, defined once.

> [card] [Tutorials](https://ladygraph.io.vn/guides/tutorials.md)
>
> Thirteen lessons, one module each.


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