import requests comment this out Create Knowledge...
# general-english
c
import requests comment this out Create Knowledge Base (POST /knowledge-base) response = requests.post( "https://api.vapi.ai/knowledge-base", headers={ "Authorization": "Bearer api key here", "Content-Type": "application/json" }, json={ "provider": "trieve", "createPlan": { "type": "import", "providerId": "put the dataset id here" }, "searchPlan": { "searchType": "hybrid", "removeStopWords": true, "topK": 3, "scoreThreshold": 0.7 }, "name": "name of the knowledge base here" }, ) print(response.json())
3 Views