Question & Answer

Allows to query the knowledge base using a specific AI model.

The Knowledge Base model

Key
Type
Description

id

String

The unique identifier for the knowledge base which is given by Tiledesk.

name

String

The knowledge base name.

id_project

String

The unique identifier of the project

preview_settings

Object

The settings for the knowledge base preview

default

Boolean

Specify if the knowledge base is the default one

Ask the Knowledge Base

POST https://api.tiledesk.com/v3/:project_id/kb/qa

Allows to query the knowledge base using a specific AI model.

Path Parameters

Name
Type
Description

project_id

string

The Project Id is a unique code assigned to your project when you create it in Tiledesk.

Headers

Name
Type
Description

Authorization

string

Authorization token. Basic Auth or JWT

Request Body

Name
Type
Description

question

string

The question submitted

namespace

string

The id of the Knowledge Base in which to search for the answer

model

string

The model to use to generate the response (e.g. gpt-4o)

system_context

string

(Optional) The context to give to the AI ​​to shape its behavior in generating the response.

max_tokens

Number

The maximum number of tokens that can be consumed to generate the response

temperature

Number

defines creativity in generating responses (low values ​​determine more specific and predictable responses)

max_tokens

Number

The number of nearby chunks to use to generate the response

Example


Last updated

Was this helpful?