Sep 20, 2024
Retrieve recommendations
Retrieves recommendations from selected AI models.
Usage
Required ACL:
search
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Algolia\AlgoliaSearch\Api\RecommendClient;
$client = RecommendClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
$response = $client->getRecommendations(
['requests' => [
['indexName' => 'ALGOLIA_INDEX_NAME',
'objectID' => 'objectID',
'model' => 'related-products',
'threshold' => 42.1,
],
],
],
);
Did you find this page helpful?