I tried the new pinecone-sparse-english model and it worked well for python. However, my app is in React, so I needed to write the code in js.
const sparseResponse = await pinecone.inference.embed({
model: "pinecone-sparse-english-v0",
inputs: [testQuery],
parameters: { input_type: "query", return_tokens: false }
});
Using this code it returns undefined. My initial thought was that the model might not be supported for node.js, but I decided to ask here if there is a fix.