W
Wasp-lang2mo ago
Nando

pinecone

Hey Guys currently trying to get the embeddings sample to run but i keep getting error connections with pinecone. I followed https://github.com/wasp-lang/starters/pull/11/files and changed the files needed but still get : [ Wasp ] ext-src/embeddings/generateEmbeddings.ts(192,7): error TS2353: Object literal may only specify known properties, and 'spec' does not exist in type 'CreateIndexOptions'. [ Wasp ] ext-src/embeddings/utils.ts(6,23): error TS2345: Argument of type '{ apiKey: string; }' is not assignable to parameter of type 'PineconeConfiguration'. [ Wasp ] Property 'environment' is missing in type '{ apiKey: string; }' but required in type 'PineconeConfiguration'. any solutions for this?
5 Replies
kapa.ai
kapa.ai2mo ago
Hi @Nando. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're having issues with the Pinecone configuration in the Wasp embeddings starter template. The error messages suggest that there might be some properties missing or incorrectly specified in your Pinecone configuration. The first error indicates that 'spec' does not exist in type 'CreateIndexOptions'. This could mean that the 'spec' property is not recognized as a valid property for the 'CreateIndexOptions' type. You might want to double-check the Pinecone documentation or the specific method you're using to ensure you're providing the correct properties. The second error suggests that the 'environment' property is missing in your Pinecone configuration. This property is required in the 'PineconeConfiguration' type. Make sure you have included the 'environment' property in your Pinecone configuration. Unfortunately, the knowledge sources provided do not contain specific code examples or further details on how to resolve these issues. I would recommend checking the Pinecone documentation or reaching out to the Wasp community for further assistance. Remember to keep your .env.server file updated with the correct Pinecone API key and environment variables. This file is where Wasp reads the configuration for the Pinecone client. If you continue to experience issues, it might be helpful to share more details about your setup or any changes you've made to the starter template. This could help identify any potential issues or conflicts. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Nando, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho2mo ago
@Vinny (@Wasp) another one, did we update the Pinecone template in the end?
Vinny (@Wasp)
Vinny (@Wasp)2mo ago
yeah I did today did you try pulling the msot recent template with wasp new? it was updated just 5 hours ago
Nando
NandoOP2mo ago
Thanks for the reply, i was able to figure it out i think Friday, currently have it running Thanks!
No description
No description
Vinny (@Wasp)
Vinny (@Wasp)2mo ago
Ok great!
Want results from more Discord servers?
Add your server