WaspW
Wasp16mo ago
Alex Jukes

Embeddings template needs pinecone update

Similar to https://github.com/wasp-lang/wasp/issues/1725, but now pinecone has released v3 which removes the need for an environment when setting up the API. This makes the tutorial a bit confusing as the example .env file includes PINECON_ENV of which there is now no reference on the Pinecone site. Recommend upgrading to Pinecone ^3.0.2, removing reference to PINECONE_ENV and adding a spec property in the generateEmbeddings.ts file as per pinecone docs

 await pinecone.createIndex({
      // add this
      spec: {
        serverless: {
          cloud: "aws",
          region: "us-east-1",
        },
      }
    });
GitHub
The fastest way to develop full-stack web apps with React & Node.js. - Issues · wasp-lang/wasp
Was this page helpful?