SlaviSavanovic
02/16/2025, 11:48 PMSlaviSavanovic
02/17/2025, 12:02 AMVapi
02/17/2025, 3:57 PMprovider
field to be set. Here's how to correctly structure the knowledge base configuration:
\`\`\`typescript
assistant: {
transcriber: {
provider: "deepgram",
model: "nova-2",
},
model: {
provider: llmProvider,
model: llmModel,
systemPrompt: systemPrompt,
knowledgeBase: {
provider: 'custom-knowledge-base', // This is required
server: {
url: ""
}
}
}
}
\`\`\`
The reason this is happening:
1\. The validation is failing because the knowledge base configuration must specify a provider
field with the value 'custom-knowledge-base'
To fix this:
1\. Always include the provider: 'custom-knowledge-base'
in your knowledge base configuration
2\. Make sure the server object contains all required fields
3\. Follow the exact interface defined in CreateCustomKnowledgeBaseDTO
SlaviSavanovic
02/17/2025, 8:33 PMSlaviSavanovic
02/17/2025, 8:33 PMVapi Ticket Bot
02/17/2025, 10:03 PM