2.2 KiB
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
- Click Hilfe (the question-mark button in the bottom-right corner of any page)
- Type your question and press Enter, or pick one of the suggested questions
- 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 | gpt-4o |
LITELLM_API_KEY |
API key (optional) | -- |
HELP_DOCS_PATH |
Directory containing README.md and docs/, if it is not found next to the agent |
-- |