Retrievers
Create Retriever
Changed onCreate a new retriever.
A retriever executes a series of stages to find and process documents from one or more collections.
post/v1/retrievers
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/retrievers
- Auth: HTTP bearer and API key in header X-Namespace
Request body
Example request
{
"collection_identifiers": [
"product_embeddings"
],
"input_schema": {
"query": {
"description": "Search query",
"required": true,
"type": "text"
}
},
"retriever_name": "product_search",
"stages": [
{
"config": {
"parameters": {
"final_top_k": 20,
"searches": [
{
"feature_uri": "mixpeek://text_extractor@v1/multilingual_e5_large_instruct_v1",
"query": {
"input_mode": "text",
"value": "{{INPUT.query}}"
},
"top_k": 100
}
]
},
"stage_id": "feature_search"
},
"stage_name": "search",
"stage_type": "filter"
}
]
}Response
Successful Response
Example response
{
"budget_limits": {
"max_credits": 100,
"max_time_ms": 60000
},
"collection_ids": [
"col_marketing_ads"
],
"input_schema": {
"query_text": {
"description": "Full-text query",
"type": "string"
}
},
"retriever_id": "ret_abc123",
"retriever_name": "executive_ads_search",
"stages": [
{
"config": {
"parameters": {
"field": "metadata.spend",
"operator": "gt",
"value": 1000
},
"stage_id": "attribute_filter"
},
"stage_name": "filter_high_spend",
"stage_type": "filter"
}
]
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the API
- info