Files
pruefwerk/docs/features/help-chat.md
T
Sharang ParnerkarandClaude Opus 5.5 7e16f49249
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Failing after 7m38s
fix(llm): nightly uses the gateway's models; no OpenAI defaults
The nightly scan regression set LITELLM_URL and the key but no model, so
the agent asked for gpt-4o / text-embedding-3-small, which LiteLLM
refuses: about 425 failed requests every night at 03:03 UTC (98 % of the
gateway's error spans in SigNoz). The workflow now sets the models stage
and prod run (Qwen3.8-27B, bge-multilingual-gemma2).

Without LITELLM_MODEL / LITELLM_EMBED_MODEL the agent no longer falls
back to OpenAI names: LlmClient refuses before sending (chat and
embeddings), the agent warns once at start, and callers take their
existing "LLM unavailable" path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
2026-10-28 22:45:00 +01:00

57 lines
2.2 KiB
Markdown

# Help Chat Assistant
The help assistant (*Hilfe-Assistent*) is available on every page of Prüfwerk.
It answers questions about Prüfwerk from this documentation.
## How It Works
1. Click **Hilfe** (the question-mark button in the bottom-right corner of any page)
2. Type your question and press Enter, or pick one of the suggested questions
3. The assistant answers from the documentation, in the language you asked in
The chat keeps the conversation, so you can ask follow-up questions. Answers are
AI-generated; check important details in the documentation.
## What You Can Ask
- **Getting started**: "Wie lege ich ein Prüfobjekt an?" / "Wie starte ich eine Prüfung?"
- **Scans**: "Werden Git-Submodule mitgeprüft?" / "Warum steht ein Schritt unter Nicht ausgeführt?"
- **Uploads**: "Wie lade ich ein passwortgeschütztes Archiv hoch?"
- **Findings**: "Was ist der Unterschied zwischen den beiden Fehlalarm-Arten?"
- **SBOM and CRA**: "Wie exportiere ich die Stückliste?" / "Was bedeutet Nicht bewertet?"
## Technical Details
The assistant loads `README.md` and every published page under `docs/` once, at
startup (internal design notes are left out). For each question it sends the
question, the conversation so far and the documentation to the LLM, and asks it
to answer from the documentation and to say so when the documentation does not
cover a question. If no documentation was found at startup, it answers without
it and says when it is unsure.
### API Endpoint
```
POST /api/v1/help/chat
Content-Type: application/json
{
"message": "Wie lege ich ein Prüfobjekt an?",
"history": [
{ "role": "user", "content": "previous question" },
{ "role": "assistant", "content": "previous answer" }
]
}
```
### Configuration
The help chat uses the same LiteLLM configuration as other LLM features:
| Environment Variable | Description | Default |
|---------------------|-------------|---------|
| `LITELLM_URL` | LiteLLM API base URL | `http://localhost:4000` |
| `LITELLM_MODEL` | Model for chat responses (stage/prod: `Qwen3.8-27B`) | -- (unset: the LLM parts are off) |
| `LITELLM_API_KEY` | API key (optional) | -- |
| `HELP_DOCS_PATH` | Directory containing `README.md` and `docs/`, if it is not found next to the agent | -- |