Query the knowledge base
https://api.chat-data.com/ api/ v2/ query- knowledge- base/ {chatbotId}/ query-knowledge-base/ {chatbotId}This operation fetches segments pertinent to generating responses. Designed for seamless chatbot integration with the GPTs store, this API endpoint allows users to supply relevant document fragments to the GPTs. As with the /get-confidence-score endpoint, results are cached by query for efficiency.
Credit Cost: Each query costs 0.5 message credits. If reranking runs, the total cost is 1.0 message credit (0.5 base + 0.5 reranking); a cached result costs 0.5 even with reranking enabled. Requests are rejected if the available credits are insufficient.
Path parameters
chatbotIdstringRequest body
Sending 1 of 2 fieldsquerystringOnly these fields are sent (application/json).