Not able to create new knowledge base using API
# support
d
yes but Trieve is not working
n
Do you get the same error there?
I can confirm it is an issue on their end, knowledge base creation is not working via Vapi API right now
d
yes same error { "message": "Invalid Knowledge Base Details. Failed to create trieve dataset", "error": "Bad Request", "statusCode": 400 }
m
@debayan @Noema If you create a dataset in trieve and upload your kb files directly on trieve, generate new trieve api key and paste that in credential provider in Vapi, you can then import your kb to Vapi by making a post request to Vapi api knowledge-base route JSON: { "name": “name your kb file”, "provider": "trieve", "searchPlan": { "scoreThreshold": 0.2, "searchType": "semantic" }, "createPlan": { "type": "import", "providerId": "" } } Doc for detailed breakdown: https://docs.vapi.ai/knowledge-base/integrating-with-trieve I can make video on this on my YouTube if you’d guys like, lmk👍🏾
s
@mccantsquincy @debayan @Noema I apologize for the poor experience you guys had with KB. We've noticed that when using our API key for creating a knowledge base, the request sometimes fails with a 403 error. The problem seems to be related to how our system create plan syncs with Trieve, causing issues when the same key is used repeatedly. temporary solution: For now, please use your own Trieve dataset for the knowledge base. This workaround avoids the create plan syncing issue and should let the KB process go through without errors.
s
Do you have an estimate for fixing this issue?
r
@Shubham Bajaj @Vapi Incident What's the ETA for this fix? It's dragged on for a few days now.
n
It should be resolved now!
s
@Seygi @RC sorry for the delay. The issue is resolved. You can try again and it will work.
2 Views