cURL
curl --request POST \ --url https://dev.voice.ai/api/v1/knowledge-base/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "documents": [ { "content": "<string>", "metadata": {} } ], "name": "<string>", "description": "<string>" } '
{ "kb_id": 123, "document_count": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "name": "<string>", "description": "<string>", "message": "<string>" }
Create a knowledge base that your agent can use for retrieval augmented generation (RAG).
Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer
List of documents. Each document must have 'content' (required), and may include 'metadata' (optional object). At least one document is required.
1
Show child attributes
Existing knowledge base with identical content found and returned