Skip to main content

Recherche Semantique

Vector similarity search in the knowledge base. Returns the documents most semantically similar to the query.

Parameters

ParameterTypeRequiredVariableDescription
querydynamic valueYesYesNatural language question to search the ontology.
synthesizebooleanNoNoEnable AI model synthesis of results. (Default: true)
explainbooleanNoNoInclude a reasoning explanation in the response. (Default: false)
model.providertextNoNoAI model provider for synthesis (e.g. openai, anthropic).
model.modeltextNoNoAI model identifier to use for synthesis.
temperaturenumberNoNoModel creativity for synthesis (0 = deterministic, 1 = creative). (Default: 0.7, min 0, max 1)
maxTokensnumberNoNoMaximum number of tokens in the synthesized response. (Default: 2048, min 1, max 128000)
responseFormatchoice (text, json, structured)NoNoResponse format: plain text, JSON, or typed structure. (Default: "text")
outputVariabletextNoNoOutput variable name containing the search result.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : searchResults

{
"results": [],
"count": 0
}

Example

Search for documents similar to a question.

Input :

{"query": "politique de remboursement"}

Output :

{"results": [{"id": "doc-1", "content": "Notre politique de remboursement...", "score": 0.92}], "count": 1}
Tip

{{searchResults.results}} contains an array of objects with id, content, and score. Adjust topK to control the number of results (default 5).