Discussions

Ask a Question
Back to All

createAgent knowledge embedder error

I'm having a problem when I create an agent from an api file or a sample program.

{
"kind": "ValidationError",
"description": "validation failed",
"details": {
"payload.knowledge.embedder.provider": {
"message": "Could not match the union against any of the items. Issues: [{"payload.knowledge.embedder.provider":{"message":"should be one of the following; ['azure-open-ai']","value":"pinecone"}},{"payload.knowledge.embedder.provider":{"message":"should be one of the following; ['open-ai']","value":"pinecone"}}]",
"value": "pinecone"
}
}
}

But I see that the embedder's provider in the knowledge is pinecone, not open-ai.