Closed johnbenedictyan closed 5 months ago
Well everything looks okay. Can you share a repo or gist?
https://github.com/johnbenedictyan/example-upstash-vector
here is a link to an example repo I made the error appears when I access the main route localhost:3000
, do let me know if there is any other information you need!
Well, everything worked fine on my end. I know why you are seeing this issue. Your index probably created without custom embedding model?
My index has this:
Can you please try to create a new index with embedding model?
@johnbenedictyan could it be that you're trying to upsert with the readonly credentials?
@johnbenedictyan Make sure you are not using readonly token and you have embedding model active in your index. That should do the trick.
Ah yes, @mdogan I copied the readonly token, my bad it works now, thanks for your time! @mdogan @ogzhanolguncu
I'm receiving this error
when I'm trying to insert data into a vector database in my JavaScript code.
this.vectorIndex is just an abstraction of new Index({ url, token })
This is the stack trace of the error
Is there something wrong with my code or my settings in my upstash project?