Vapi
12/14/2024, 7:11 AMVapi
12/14/2024, 7:11 AMknowledgeBase object with the appropriate provider, topK, and fileIds values.
If you're encountering issues, could you please provide me with more details about the error you're receiving or the specific part of the process that's causing trouble? This will help me assist you more effectively.Vapi
12/14/2024, 7:11 AMVapi
12/14/2024, 7:17 AMknowledgeBase object within the model object seems to have an incorrect structure. Typically, a knowledgeBase object wouldn't contain a server object with a url field. Instead, it might require an id or other identifying information directly related to the knowledge base.
2. The knowledgeBaseId field is outside of the knowledgeBase object, which might be incorrect depending on the API's expected schema. Usually, the knowledgeBaseId would be part of the knowledgeBase object.
Here's a revised version of your JSON payload that might work, assuming knowledgeBaseId is the correct field and that it should be inside the knowledgeBase object:
json
{
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"keywords": [],
"language": "en"
},
"model": {
"provider": "openai",
"model": "gpt-3.5-turbo",
"toolIds": [],
"tools": [],
"knowledgeBase": {
"knowledgeBaseId": "ca6c4605-203d-4bc0-a18b-cad7f277956c"
}
}
}
Please adjust your cURL request with the corrected JSON payload and try again. If you're still encountering issues, it might be helpful to check the API documentation for the exact structure required for creating an AI agent with a knowledge base, or reach out to the API support team for further assistance.Kavish
12/14/2024, 7:20 AMVapi
12/14/2024, 7:21 AMKavish
12/14/2024, 7:32 AM