Reponse Base de Connaissances
Answers a question based on the knowledge base. Combines search and generation to produce a sourced answer.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
question | dynamic value | Yes | Yes | Question to answer using the knowledge base. |
maxSources | number | No | No | Maximum number of sources to use for building the answer (1 to 20). (Default: 5, min 1, max 20) |
includeGraph | boolean | No | No | Include graph relationships for richer answer context. (Default: false) |
confidenceThreshold | number | No | No | Minimum relevance score threshold for sources (0 to 1). (Default: 0.5, min 0, max 1) |
tags | array | No | No | Filter source documents by tags. |
category | text | No | No | Filter source documents by category. |
outputVariable | text | No | No | Output variable name containing the answer and its citations. |
Parameters marked Variable = Yes accept the
{{blockName.field}}syntax.
Output
Output variable : knowledgeAnswer
{
"found": false,
"sourceCount": 0,
"context": "...",
"citations": [],
"suggestedFollowUps": [],
"synthesisGuidance": "..."
}
Example
Ask a question about internal documentation.
Input :
{"question": "Quelle est la procedure de remboursement ?"}
Output :
{"answer": "La procedure de remboursement comprend 3 etapes...", "sources": [{"id": "doc-1", "title": "Politique remboursement"}]}
Tip
This block performs search + generation in a single step (RAG). Used sources are listed in the sources field.