/v1/batch/filter-search-results
Available at https://api.theproductllm.com/v1/batch/filter-search-results
Processes batch filtering of search results to identify potential product matches.
This endpoint is part of the AI-only search process. It provides batch AI calls that remove non-matches from sets of product search results. Product descriptions in e-commerce search results are usually limited, but they can be used in this function to filter out definite non-matching results. This endpoint returns candidates. To get matching products, the next steps are to visit candidate pages and match using product page data.
Required Parameters
file: JSONL file upload. Each line must be a valid JSON object with the following structure:
{
"product": {
"title": "string (required)",
"brand": "string (optional)",
"code": "string (optional)",
"description": "string or dict (optional)",
"id": "string (optional)",
"price": "string or float (optional)"
},
"results": [
{
"product": {
"title": "string (required)",
"brand": "string (optional)",
"code": "string (optional)",
"description": "string or dict (optional)",
"id": "string (optional)",
"price": "string or float (optional)"
},
"link": "string (required)"
}
]
}Optional Parameters (per line in JSONL)
result_type: (optional) either "amazon" forAmazonResultItemor "default" forProductCandidate. Default is chosen if left empty.
AmazonResultItem Format
If using `result_type: "amazon"`, each result should have this structure:
Request
Example filter_requests.json
Response
Last updated