PHP code example of jonathanm10 / pinecone-client
1. Go to this page and download the library: Download jonathanm10/pinecone-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jonathanm10 / pinecone-client example snippets
$client = Pinecone::init([
'api_key' => 'xxxx-xxx-xxxx-xxxx',
'environment' => 'us-east-1-aws',
]);
// Accessing the index API
$client->index();
// Accessing the vector API
$client->vector();