Launch a hands-on lab with one command. Remove it with one more. Labs for RAG, text-to-SQL on Databricks Lakebase (pgvector), a browser VS Code per learner, and AWS sandboxes with Terraform.
Related: DB Agent | labagent-datasets | BeCloudReady workshops
A lab is a pack: ordered steps that are safe to re-run. launch builds it and resumes after a failure. destroy removes only what the pack created.
- Databricks labs. A step-by-step RAG tutorial over real SEC 10-K filings (notebooks you run), and a text-to-SQL agent, in your own Free Edition workspace.
- Web IDE per learner. Private browser VS Code with the RAG lab preinstalled, on Modal, EC2 or local Docker.
- AWS sandboxes. Cohort IAM with Terraform, plus plan-then-apply cleanup of shared accounts.
- Plain English.
labagent "deploy rag-tutorial"shows the command it understood and asks first (local Ollama, any OpenAI-compatible endpoint).
pip install 'labagent[rag]' # Python 3.9+; sign in with: databricks auth login
labagent packs # list the labs
labagent launch rag-sec-tutorial --name demo # uploads the notebooks to your workspace; you run them
labagent destroy rag-sec-tutorial --name demo # removes the uploaded folder| Pack | What you get | Runs on |
|---|---|---|
rag-sec-tutorial |
Nine notebooks that build RAG on a pinned SEC 10-K dataset one step at a time: embeddings, pgvector, hybrid search, filters, citations, an evaluation gate, and the deployed app. Each ends with a check cell | Databricks Free Edition |
db-agent |
db-agent text-to-SQL over a Databricks sample dataset, pinned commit | Databricks Free Edition |
rag-ide |
A private browser VS Code per learner with the RAG lab and notebooks | Modal, EC2 or local Docker |
dbx-workspace |
A premium Databricks workspace in your own AWS account or Azure subscription, created with Terraform. Plan first: nothing is created without apply=yes. Guide |
AWS or Azure (costs apply) |
aml |
A synthetic anti-money laundering lab with an answer key: a RAG lab for developers (mode=rag) and a Microsoft 365 Copilot lab for staff (mode=copilot), for Canada or the US. Guide |
Your machine, no cloud account |
Free Edition limits apply (one Lakebase project, three apps). Details: docs/packs.md.
pip install 'labagent[rag-local,aml]'
labagent launch aml --name demo --param mode=rag --param jurisdiction=ca # developers: indexed corpus, helper, quality checks
labagent launch aml --name spring --param mode=copilot --param jurisdiction=ca # staff: Excel and Word files, 13 exercises, instructor folderIt generates a made-up credit union with 8 laundering patterns, an answer key for every alert, policies, case files and regulation text. The labels come from how the data is built, not from an investigator. See docs/aml.md.
pip install 'labagent[modal] @ git+https://github.com/becloudready/labagent'
labagent launch rag-ide --name cohort --param learners=2 --param platform=modalplatform |
How | Needs |
|---|---|---|
modal (default) |
One serverless sandbox per learner | modal token new |
ec2 |
One shared instance per cohort, a container per learner, HTTPS | An AWS profile (--param profile=...) in LABAGENT_ALLOWED_ACCOUNTS |
local |
Containers on this machine, loopback only | Docker |
Each learner gets a URL and a password (credentials file, mode 0600). Sessions stop when idle and at a time cap (hours, default 4). Tested with small cohorts, not at 30 learners.
There is also a laptop-only RAG lab: pip install 'labagent[rag-local]', then labagent rag init and labagent rag ide.
labagent --config lab.json run --job job.json --output result.json| Command | What it does |
|---|---|
provision, offboard |
Create or destroy a cohort's IAM layer with Terraform |
inventory, sweep |
List and delete learner resources: plan first, then apply that reviewed plan |
reset |
Rotate a password (returned encrypted to your public key) |
audit, cleanup |
Clean a long-lived account from a ruleset |
See job-contract, state and secrets, account cleanup.
- Plan first, then apply that exact plan. Only a
deleterule can delete; unmatched resources are reported, never removed. - AWS commands refuse to run in an account that is not on your allow list.
- Labs use your own credentials. The db-agent token is stored as an app secret and revoked on
destroy. - Tests keep secrets and personal data out of the repo and out of logs.
Early release: try labs in a throwaway workspace or account first. Apache-2.0. See SECURITY.md and CONTRIBUTING.md.
Maintained by BeCloudReady.