Skip to main content

Reponse Base de Connaissances

Answers a question based on the knowledge base. Combines search and generation to produce a sourced answer.

Parameters

ParameterTypeRequiredVariableDescription
questiondynamic valueYesYesQuestion to answer using the knowledge base.
maxSourcesnumberNoNoMaximum number of sources to use for building the answer (1 to 20). (Default: 5, min 1, max 20)
includeGraphbooleanNoNoInclude graph relationships for richer answer context. (Default: false)
confidenceThresholdnumberNoNoMinimum relevance score threshold for sources (0 to 1). (Default: 0.5, min 0, max 1)
tagsarrayNoNoFilter source documents by tags.
categorytextNoNoFilter source documents by category.
outputVariabletextNoNoOutput 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.