{% extends "base.html" %} {% block content %}

dc43 docs assistant

{% set status = docs_chat_status %} {% if not status.enabled %}

Install the optional extra (pip install --no-cache-dir -e ".[demo]" from a source checkout, or pip install "dc43-contracts-app[docs-chat]" from PyPI) and provide an API key either by setting docs_chat.api_key in your private configuration file or by exposing the docs_chat.api_key_env environment variable. Skip chaining both commands in the same environment to avoid pip dependency conflicts.

{% elif not status.ready %}

Confirm the docs_chat configuration is enabled, the docs-chat extra is installed, your config path is passed to the app (for example dc43-demo --config ~/.dc43/contracts-app.toml), and an API key is available via docs_chat.api_key or the configured environment variable before retrying.

{% else %}

Ask questions about the dc43 platform, architecture, and deployment guides. Answers are grounded in the Markdown documentation and indexed source files bundled with this repository so you can jump straight to the relevant implementation details.

{% endif %}

Prefer an API? POST messages to /api/docs-chat/messages with a JSON payload ({"message": "...", "history": [...]}) to retrieve answers and cited sources programmatically.

{% endblock %}