Hi Gokhan,
If you need assistance with setting up or configuring a custom knowledge base for your Vapi voice AI assistant, here are some guidelines that might help:
1.
Creating a Custom Knowledge Base:
- Use the Vapi API to create a custom knowledge base. You'll need to set up a webhook-style integration where Vapi forwards search requests to your server. You can find detailed steps [here](
https://docs.vapi.ai/knowledge-base/custom-knowledge-base).
2.
Attaching to Your Assistant:
- Custom knowledge bases need to be attached via the API. This involves updating the assistant's model configuration, including the full configuration object. Follow the instructions [here](
https://docs.vapi.ai/knowledge-base/custom-knowledge-base#step-2-attach-to-your-assistant) for more details.
3.
Implementing the Endpoint:
- Your server should handle POST requests and return structured responses. Sample implementations can be found in various programming languages like Node.js and Python [here](
https://docs.vapi.ai/knowledge-base/custom-knowledge-base#implementing-the-custom-endpoint).
4.
Best Practices:
- Ensure your API responds quickly, ideally within 50ms, to maintain a smooth conversational flow.
- Consider caching frequently requested documents and implementing fast retrieval techniques.
If you encounter issues related to data retrieval or the endpoint not being called, make sure the webhook URL is correctly set up and accessible. You may also want to verify that your server is correctly handling the request formats expected by Vapi.
For further customization options and advanced configurations, consult the [Custom Knowledge Base](
https://docs.vapi.ai/knowledge-base/custom-knowledge-base) documentation.