Skip to main content
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.
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.
requirements.txt gives lower bounds only. It is not a lock file.
2

Run the first lesson

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

Tutorials

The lessons in a suggested order.

Environment variables

Every variable the scripts read.