Create a new knowledge base that can store documents, generate embeddings, and enable semantic search.
Examples
import requests
url = "https://labs.chonkie.ai/api/v1/knowledge"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"name": "Product Documentation",
"description": "Technical documentation for our products"
}
response = requests.post(url, headers=headers, json=data)
kb = response.json()
print(f"Created knowledge base: {kb['name']}")
print(f"Slug: {kb['slug']}")
Request
Parameters
Name of the knowledge base. Will be used to generate a unique slug.
Optional description of what this knowledge base contains.
Response
Returns
URL-safe slug generated from the name. Use this for subsequent API calls.