v5
latestOpenAPI 3.1.02026-08-04166362486.5 KBstores
Enhance a search query
Extract metadata filters and ranking preferences from a search query.
post/v1/stores/queries/enhance
Request body
Example request
{
"filters": {
"all": [
{
"key": "price",
"operator": "gt",
"value": "100"
},
{
"key": "color",
"operator": "eq",
"value": "red"
}
],
"any": [
{
"key": "price",
"operator": "gt",
"value": "100"
},
{
"key": "color",
"operator": "eq",
"value": "red"
}
],
"none": [
{
"key": "price",
"operator": "gt",
"value": "100"
},
{
"key": "color",
"operator": "eq",
"value": "red"
}
]
},
"file_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614174001"
],
"query": "This is a sample text input.",
"search_options": {
"rerank": {
"model": "rerank_model",
"top_k": 10
}
}
}Response
A single enhanced query item