Elliott-Chong / chatpdf-yt

https://chatpdf-elliott.vercel.app
641 stars 263 forks source link

Error in querying embeddings #9

Open gcmillora opened 9 months ago

gcmillora commented 9 months ago

Having some error when getting context from query.

On function getMatchesFromEmbeddings() , any idea?

Thanks!

error querying embeddings [TypeError: Cannot read properties of undefined (reading 'text')]

BhargavNuligommu commented 9 months ago

having same error for me as well

error querying embeddings [TypeError: Cannot read properties of undefined (reading 'text')]

Capture

Please let us know if you have any idea?

Thanks!

simohutcaus commented 9 months ago

There appears to be a problem with NextJS and the node package for Pinecone right now

https://github.com/pinecone-io/pinecone-ts-client/issues/124

You can get around this by doing the API request manually. This is my function for getMatchesfromEmbeddings() which resolved it

I've put it as a pastebin because i can't get the code to sit properly in the github response

https://pastebin.com/sqerizka

jhamon commented 9 months ago

I think I've solved this issue in the v1.1.0 release of the pinecone-ts-client. Please upgrade and let us know if you're still having a problem.