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

# Quickstart

> Set up the environment and run your first ladyGraph lesson.

By the end of this page you have a working Python environment and have run the first lesson, which needs no model, no network and no database.

## Prerequisites

* Python 3.12. ladyGraph was developed on 3.12, and the DecisionLite SDK requires 3.12 or newer. Python 3.11 has not been tried.
* The `ladyGraph/` folder, the one that holds `pyproject.toml`. Run every command on this page from it.

## Set up

**1. Create the environment**

Both options install the same package list, `docs/requirements.txt`.

> [tab] conda
>
> ```bash theme={null}
> conda env create -f docs/environment.yml
> conda activate ladygraph
> ```
>
> The file sets Python 3.12 and then installs `docs/requirements.txt` with pip. To update an existing environment later, run `conda env update -f docs/environment.yml --prune`.

> [tab] venv and pip
>
> ```bash theme={null}
> python3.12 -m venv .venv
> source .venv/bin/activate
> pip install -r docs/requirements.txt
> ```

`requirements.txt` gives lower bounds only. It is not a lock file.

**2. Run the first lesson**

```bash theme={null}
PYTHONPATH=. python ladygraph/tutorial/01_core/hello_core.py
```

The lesson builds a small sample document and shows its passages, evidence and a concept. Most of its examples are commented out. Uncomment one block at a time and run it again.

> [!NOTE]
>
> The sample is a fictitious Vietnamese finance policy, "Quyết định 211". Pretend its text was extracted from a PDF. Nothing reads a real file.

## What you can run next

What you can run depends on what you have.

| You have | You can run |
| - | - |
| Only the packages | The tests, `tutorial/01_core`, `tutorial/10_stores` (against a server you start) |
| The EmbeddingGemma model file | `tutorial/02_embedding`, and DecisionLite once `decision-sdk` is installed |
| A Postgres database with the expected tables, plus an LLM | The whole build and search in `tutorial/12_retrieval` |

Lessons 3, 5, 6, 7, 9 and 13 need no service at all. They run on scripted stand-ins, and a few switch to a real local model through an environment variable.

> [card] [Tutorials](https://ladygraph.io.vn/guides/tutorials.md)
>
> The lessons in a suggested order.

> [card] [Environment variables](https://ladygraph.io.vn/reference/environment-variables.md)
>
> Every variable the scripts read.


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