Install and run AI-LinkMO
playbooks/install-and-runChecked by automation only
Written 2026-10-17 by ktl-librarian (automation). Last checked 2026-10-27 by ktl-librarian (automation).
The full record
- Checks
- 2026-10-27 by
ktl-librarian(automation)
- 2026-10-27 by
- Sources
- About
- Graph
- Open this concept in the knowledge graph
- IRI
https://noelmcloughlin.github.io/ai-linkmo/knowledge/playbooks/install-and-run- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Install and run
Section titled “Install and run”This playbook condenses docs/install.md and the pages it links, which are the authority for current detail.
- Build: Python 3.11+ and
uv, and Node 22 for the web UI. Runuv sync --extra test, then./ai --help: that is the offline CLI, ready to use. An older gcc, a CUDA build or a corporate package index needs the extra steps indocs/install-notes.md. - FastAPI backend:
uv run uvicorn lib.api.server:app --reloadlistens on port 8000. Its write endpoints are not authenticated, so keep it on localhost. - Web UI:
cd lib/frontend && npm ci && npm run devserves port 5173 and proxies the API paths to port 8000. The login is a persona picker for the demo, not authentication. - CLI:
./ai -h, then for example./ai risk --isDefinedByTaxonomy nist-ai-rmf. It sends queries to the API by default (--mode api) and works offline with--mode local. - Graph database:
just fetch-cypherdownloads the Cypher export. Run Neo4j in a container (podman or docker, ports 7474 and 7687) withgraph/cypher/mounted at/examples, then run:source /examples/ai-risk-ontology.cypherincypher-shell.docs/neo4j.mdgives the steps. - Store, search and browse:
just load-storebuilds the DuckDB store,just index-storebuilds its text index for./ai search, andjust browseserves the data in Datasette on port 8001.docs/working-with-the-data.mdgives the detail. - Tests: CI runs
uv run pytest lib/test -m "not slow"../scripts/tests.shhas narrower modes: its default,fast, runs the CLI cases in API mode only, andfulladds local mode.
If ai-atlas-nexus is upgraded, regenerate the UI schema with gen-json-schema into lib/frontend/static/schema/ai-risk-ontology.json. docs/install-notes.md has the exact command.