Skip to main content

retrieve_knowledge

Runs a semantic search (RAG) over a project's indexed knowledge. Returns an answer (when post-processing is enabled) and source citations with relevance scores. Use it to ground responses in the actual content of a DEON project.

Tool name: retrieve_knowledge

Parameters

ParameterTypeRequiredDefaultDescription
projectIdstringYesProject (map) id to scope the search to.
querystringYesNatural-language question or search query.
keywordsstring[]NoOptional keywords to bias the hybrid search.
maxResultsnumberNoMaximum citations to return. Positive integer, max 50.
postProcessbooleanNoWhen true, an LLM composes a final answer from the retrieved context.
itemIdsstring[]NoRestrict the search to these item ids.

Returns

{
"answer": "The launch is planned for the first week of September, pending the security review.",
"citations": [
{
"itemId": "11aa22bb-...",
"text": "Launch: week 36, blocked on security review sign-off",
"score": 0.91
}
],
"costInEuros": 0.0021
}

answer is null when postProcess is not enabled — in that case use the citations directly.

Example

"According to the project, when are we launching?"

{
"projectId": "a1b2c3d4-...",
"query": "When is the launch planned?",
"maxResults": 5,
"postProcess": true
}