Skip to content

Commit

Permalink
fix up additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Jan 13, 2024
1 parent 5d87eff commit f73bdf9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/pinecone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ export class Pinecone {
*
* @example
* ```js
* const indexConfig = await pinecone.describeIndex('my-index')
* console.log(indexConfig)
* const indexModel = await pinecone.describeIndex('my-index')
* console.log(indexModel)
* // {
* // name: 'sample-index-1',
* // dimension: 3,
Expand Down Expand Up @@ -221,8 +221,8 @@ export class Pinecone {
* List all Pinecone indexes
* @example
* ```js
* const indexes = await pinecone.listIndexes()
* console.log(indexes)
* const indexList = await pinecone.listIndexes()
* console.log(indexList)
* // {
* // indexes: [
* // {
Expand Down Expand Up @@ -327,7 +327,12 @@ export class Pinecone {
* ```js
* await pinecone.createIndex({
* name: 'my-index',
* dimension: 1536,
* spec: {
* serverless: {
* cloud: 'aws',
* region: 'us-west-2'
* }
* },
* waitUntilReady: true
* });
*
Expand All @@ -343,6 +348,12 @@ export class Pinecone {
* await pinecone.createIndex({
* name: 'my-index',
* dimension: 1536,
* spec: {
* serverless: {
* cloud: 'aws',
* region: 'us-west-2'
* }
* },
* metadataConfig: { 'indexed' : ['productName', 'productDescription'] }
* })
* ```
Expand Down

0 comments on commit f73bdf9

Please sign in to comment.