{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/daniloaguiarbr/sqlite-graphrag/schemas/init.schema.json",
"title": "InitResponse",
"description": "Response emitted by `sqlite-graphrag init` on stdout as a single JSON line.",
"type": "object",
"required": ["db_path", "schema_version", "model", "dim", "namespace", "status", "elapsed_ms"],
"additionalProperties": false,
"properties": {
"db_path": { "type": "string", "description": "Resolved path to the SQLite database file for this invocation." },
"schema_version": { "type": ["integer", "string"], "description": "SQLite PRAGMA user_version after migration. Emitted as string by binary." },
"model": { "type": "string", "description": "Embedding model name downloaded or reused." },
"dim": { "type": "integer", "description": "Embedding vector dimension (e.g. 384)." },
"namespace": { "type": "string", "description": "Active namespace resolved at init time." },
"status": { "type": "string", "enum": ["created", "already_exists", "ok"], "description": "Whether the database was newly created or already existed." },
"elapsed_ms": { "type": "integer", "minimum": 0, "description": "Handler wall-clock time in milliseconds." }
}
}