Clone a retriever with optional modifications.
Purpose: Creates a NEW retriever (with new ID) based on an existing one. This is the recommended way to iterate on retriever designs when you need to modify core logic that PATCH doesn’t allow (stages, input_schema, collections).
Clone vs PATCH vs Template:
Common Use Cases:
How it works:
All fields except retriever_name are OPTIONAL:
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
Source retriever ID or name to clone.
Request to clone a retriever with optional modifications.
Purpose: Cloning creates a NEW retriever (with new ID) based on an existing one, allowing you to make changes that aren't allowed via PATCH (stages, input_schema, collections). This is the recommended way to iterate on retriever designs.
Clone vs Template vs Version:
Use Cases:
All fields are OPTIONAL:
REQUIRED. Name for the cloned retriever. Must be unique and different from the source retriever.
1OPTIONAL. Description override. If omitted, copies from source retriever.
"Cloned from product_search with stricter filters"
OPTIONAL. Override target collections. If omitted, copies from source retriever. This allows you to apply the same retriever logic to different collections.
["products_v2"]OPTIONAL. Override stage configurations. If omitted, copies from source retriever. This is where you'd fix typos, add stages, or tweak parameters.
OPTIONAL. Override input schema. If omitted, copies from source retriever.
OPTIONAL. Override budget limits. If omitted, copies from source retriever.
{ "max_credits": 100, "max_time_ms": 60000 }OPTIONAL. Override tags. If omitted, copies from source retriever.
["v2", "production"]OPTIONAL. Override display configuration. If omitted, copies from source retriever.
{
"components": {
"result_card": {
"field_order": ["title", "description", "price"],
"layout": "vertical",
"show_thumbnail": true
},
"result_layout": "grid",
"show_search": true
},
"description": "Search through our product catalog",
"exposed_fields": [
"title",
"description",
"price",
"image_url"
],
"field_config": {
"price": {
"format": "number",
"format_options": {
"decimals": 2,
"label": "Price",
"prefix": "$"
}
},
"title": {
"format": "text",
"format_options": {
"label": "Product Name",
"truncate_chars": 60
}
}
},
"inputs": [
{
"field_name": "query",
"field_schema": {
"description": "Search query",
"examples": ["wireless headphones", "laptop"],
"type": "string"
},
"label": "Search Products",
"order": 0,
"placeholder": "What are you looking for?",
"required": true
}
],
"layout": {
"columns": 3,
"gap": "16px",
"mode": "grid"
},
"logo_url": "https://example.com/logo.png",
"markdowns": [
{
"content": "# AI-Powered Product Search\n\nOur search uses **machine learning** to understand your queries and find the most relevant products.\n\n## Features\n\n- **Semantic Search**: Understands meaning, not just keywords\n- **Visual Search**: Upload images to find similar products\n- **Smart Filters**: Automatically suggests relevant filters",
"title": "How it Works"
},
{
"content": "## Tips for Better Results\n\n1. Use descriptive terms (e.g., \"wireless noise-canceling headphones\")\n2. Try different keywords if you don't find what you're looking for\n3. Use filters to narrow down results\n\n*Happy searching!* 🔍",
"title": "Search Guide"
},
{
"content": "This product search is powered by AI technology that understands what you're looking for, even if you don't use the exact keywords.\n\n[Learn more about our technology](https://example.com/docs)",
"title": "About"
}
],
"theme": {
"font_family": "Inter, sans-serif",
"primary_color": "#007AFF"
},
"title": "Product Search"
}