How to query a Knowledge Box
Agentic RAG supports 4 different search endpoints:
/search
: returns several result sets according the different search techniques (full-text, fuzzy, semantic)./find
: returns a single result set where all different results are merged into a hierarchical structure./ask
: streams a generative answer and a single result set where all different results are merged into a hierarchical structure./graph*
: returns a set of paths, nodes or relations from the knowledge graph
Except of graph endpoints (explained here), all endpoints support the same query parameters.
Search parameters
Query
Simple query
A simple text search can be performed using a plain text value.
Example:
This query would return results containing the words little
and prince
:
Little Prince
By putting words into quotes you can search for an exact match:
"Little Prince"
In this case, you will only get results containing the word sequence little prince
.
Using the minus sign -
in front of a word you can exclude a word from the search:
Little Prince -sheep
This query would return results containing the words little
and prince
but not sheep
.
Filters
Filters can be specified by using the filter_expression
parameter and are discussed in-depth in the filtering documentation.