-
Notifications
You must be signed in to change notification settings - Fork 0
quickstart
This guide creates a local Traccia project, ingests a small folder, and shows the first useful outputs.
- Python 3.12.
-
uvfor the recommended local workflow. - An OpenAI-compatible model endpoint for live extraction, unless you switch the generated config to the fake backend for tests.
Install dependencies from the repository:
uv syncInstall the CLI on PATH from the checkout:
uv tool install -e .You can also run every command as uv run traccia ... from the repository.
traccia init my-traccia
traccia doctor my-tracciainit creates the project layout, default config, prompts, empty graph files,
and SQLite catalog. doctor checks that the scaffold exists and reports
optional local capabilities such as document normalization, OCR, media tools,
and backend authentication.
Open my-traccia/config/config.yaml. The default backend is OpenAI-compatible:
backend:
provider: openai_compatible
model: gpt-5-chat-latest
api_key_env: OPENAI_API_KEY
base_url: https://api.openai.com/v1Set the required API key in your shell:
export OPENAI_API_KEY=...For deterministic local tests, use:
backend:
provider: fakeBefore spending model quota, inspect what Traccia will treat as materials:
traccia discover-dir /path/to/archive --project-root my-tracciaFor machine-readable output:
traccia discover-dir /path/to/archive --project-root my-traccia --format jsonRun a full directory ingest:
traccia ingest-dir /path/to/archive --project-root my-tracciaThe default flow discovers materials, imports raw files, parses spans, extracts evidence, scores the graph, and renders projections.
For one file:
traccia ingest /path/to/file.md --project-root my-tracciatraccia stats --project-root my-traccia
traccia tree --project-root my-traccia
traccia explain python --project-root my-traccia
traccia review --project-root my-tracciaUseful files:
-
graph/graph.jsonfor the machine graph. -
tree/index.mdfor the tree overview. -
tree/nodes/for one markdown page per skill. -
profile/skill.mdfor the profile projection. -
state/catalog.sqlitefor canonical derived state.
traccia export obsidian --project-root my-traccia
traccia export viewer --project-root my-traccia
traccia export admin --project-root my-traccia
traccia export publish --project-root my-tracciaThe publish step reads curation from exports/viewer/curation.json and writes a
separate redacted public bundle under exports/viewer-public/.