Open leVoT8 opened 1 week ago
I see a few things here. The first, the initialization of pinecone seems incorrect. This is the never syntax (using region instead of environment) -
const ragApplication = await new RAGApplicationBuilder()
.setModel(new OpenAi({ model: 'gpt-4o-mini' }))
.setEmbeddingModel(new OpenAiEmbeddings())
.setVectorDatabase(
new PineconeDb({
projectName: 'test',
namespace: 'dev',
indexSpec: {
serverless: {
cloud: 'aws',
region: 'us-east-1',
},
},
}),
)
.setSystemMessage(
'Only include information provided to you, do not make up answers. If the information is not available, state that you do not know.',
)
.build();
I think it is likely you are using an older version of embedJs which used an older version of Pinecone API. Could you update all embedjs libraries (npm packages) to version 0.1.18
and let me know if you still see this error?
🐛 Describe the bug
My current code:
The error I receive:
Am I doing something wrong, or is this a bug? How do I fix it?