stores
Enhance a search query
Changed onExtract metadata filters and ranking preferences from a search query.
post/v1/stores/queries/enhance
Request
- Base URLhttps://api.mixedbread.com
- URLhttps://api.mixedbread.com/v1/stores/queries/enhance
- AuthHTTP bearer
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"
}
]
},
"query": "This is a sample text input.",
"search_options": {
"rerank": {
"model": "rerank_model",
"top_k": 10
}
}
}Response
A single enhanced query item
Changes
- warning
removed the request property
/
- warning
- info
request property
/deprecated
- info