pinecone-io / pinecone-vercel-starter

Pinecone + Vercel AI SDK Starter
https://pinecone-vercel-example.vercel.app
418 stars 127 forks source link

Update Pinecone TS client signatures in sample code #21

Closed zackproser closed 11 months ago

zackproser commented 11 months ago

Problem

Closes #20

Describe the purpose of this change. What problem is being solved and why?

Two of the functions in our README were using the old getPineconeClient pattern, which was obviated by the recent upgrade of this repo to Pinecone v1.1.0.

Solution

Describe the approach you took. Link to any relevant bugs, issues, docs, or other resources.

I updated the README with the latest source code for the two functions to demonstrate the updated method for instantiating a Pinecone client.

Type of Change

Test Plan

Describe specific steps for validating this change.

Someone who is not me should spot check that I did this correctly.

zackproser commented 11 months ago

Thanks for review!