Skip to content

Commit

Permalink
Merge pull request #11 from scotteuser/patch-1
Browse files Browse the repository at this point in the history
Update README.md collections() documentation
  • Loading branch information
derpoho authored Jan 7, 2025
2 parents 01467eb + 1005b2f commit f487e7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Work(s) with your collections too.
[Pinecone Docs](https://docs.pinecone.io/reference/create_collection)

```php
$response = $pinecone->control()->collections('my-collection')->create(
$response = $pinecone->control()->collection('my-collection')->create(
source: 'my-index'
);

Expand All @@ -201,7 +201,7 @@ if($response->successful()) {
[Pinecone Docs](https://docs.pinecone.io/reference/describe_collection)

```php
$response = $pinecone->control()->collections('my-collection')->describe();
$response = $pinecone->control()->collection('my-collection')->describe();

if($response->successful()) {
//
Expand All @@ -213,7 +213,7 @@ if($response->successful()) {
[Pinecone Docs](https://docs.pinecone.io/reference/list_collections)

```php
$response = $pinecone->control()->collections()->list();
$response = $pinecone->control()->collection()->list();

if($response->successful()) {
//
Expand All @@ -225,7 +225,7 @@ if($response->successful()) {
[Pinecone Docs](https://docs.pinecone.io/reference/delete_collection)

```php
$response = $pinecone->control()->collections('my-collection')->delete();
$response = $pinecone->control()->collection('my-collection')->delete();

if($response->successful()) {
//
Expand Down

0 comments on commit f487e7a

Please sign in to comment.