Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in querying embeddings #9

Open
gcmillora opened this issue Sep 20, 2023 · 3 comments
Open

Error in querying embeddings #9

gcmillora opened this issue Sep 20, 2023 · 3 comments

Comments

@gcmillora
Copy link

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
Copy link

BhargavNuligommu commented Sep 21, 2023

having same error for me as well

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

  • error node_modules\next\dist\esm\server\future\route-modules\app-route\module.js (211:60) @ headers
  • error Cannot read properties of undefined (reading 'headers')
    null

Capture

Please let us know if you have any idea?

Thanks!

@simohutcaus
Copy link

simohutcaus commented Sep 27, 2023

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

pinecone-io/pinecone-ts-client#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
Copy link

jhamon commented Sep 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants