Help with Wasp Embedding template / seeding the db
Hey everyone!
I am a junior dev so please forgive me if it is an obvious mistake I am doing.
I am trying to set up the wasp embedding templates and have followed the steps in the readme carefully. It all works until step 8 which indicates to run the command 'wasp db seed'. I get the error message attached. I have a postgres running on railway, and wasp db migrate-dev worked out.
I have created an index in pinecone, have entered the API key and pinecone env variables in the .env.server file.
I have tried all different combinations, but it all runs down to the problem of that my prisma client seems not to be up-to-date.
can anyone help please?
Thanks a lot for your constructive feedback!
Links
Embedding Template: https://github.com/wasp-lang/starters/tree/dev/embeddings
9 Replies
Did you run
wasp db migrate-dev
? @Vinny (@Wasp) did this happen before?this looks to be the same problem as https://discord.com/channels/686873244791210014/1204021576979324949/1204021576979324949
has something changed with Prisma!?
@wambofabio can you run
wasp version
and tell me what version of wasp you have installed?
and also which version of wasp you have defined in your project's main.wasp
file
hey again @wambofabio -- another user had the same issue and tried running wasp clean
and then wasp start
and that fixed the issue for them. Give that a try and let us know if it worksHey, thanks for your help!! I figured out that the implemented pinecone version was outdated (0.X), and I upgraded the pinecone implementations from the embedding template ot V1.X. Now it works, thanks a lot!
oh good to know. what versions should we update the template to then!?
so they released the V2 recently with their serverless option. But I think it is not stable yet, so V1.X would be great 🙂
Wohooo @wambofabio, you just became a Waspeteer level 1!
cool. thanks so much for the tip!
Awesome! @Vinny (@Wasp) do you want to create a GH issue for this?
oh yeah. good catch. https://github.com/wasp-lang/wasp/issues/1725
GitHub
[Template] update embeddings pinecone from 0.x to v1.x · Issue #172...
Describe the bug embeddings fail when running wasp db seed To Reproduce run wasp new select embeddings run wasp db seed Expected behavior pinecone embeds the text into its vector db