An assistant and modules are created and modified via API call. This guide leads you through the calls you have to do and the settings and configurations that can be set.
...
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
To get the token and the URL check this: How to get a Token for our APIs |
...
<baseUrl> / <yourToken>
<assistantId>
<updateAssistant>
"param1": "<paramValue>"
→ contains variables that should be updated. Variables that are not contained in <updateAssistant>input
remain unchanged
Code Block |
---|
curl --location --globoff 'https://gateway.<baseUrl>/chat/graphql' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <yourToken>' \ --data '{"query":"mutation UpdateAssistant($updateAssistantId: String!, $input: AssistantUpdateInput!) {\n updateAssistant(id: $updateAssistantId, input: $input) {\n name\n id\n languageModel\n settings\n chatUpload\n\n modules {\n id\n name\n configuration\n }\n }\n}","variables":{"updateAssistantId":"<assistantId>","input":{"param1": "<paramValue>"}}}' |
An example command to update the languageModel
used to perform function calling and module selection can be updated with the following curl command:
Code Block |
---|
curl --location 'https://gateway.<baseUrl>/chat/graphql' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <yourToken>' \ --data '{"query":"mutation UpdateAssistant($updateAssistantId: String!, $input: AssistantUpdateInput!) {\n updateAssistant(id: $updateAssistantId, input: $input) {\n name\n id \n languageModel \n settings \n chatUpload \n modules {\n id\n name\n modules {\n configuration id\n name\n configuration}\n }\n }\n}","variables":{"updateAssistantId":"<assistantId><assistantID>","input":{<updateAssistant>"languageModel":"AZURE_GPT_4_0613"}}}' |
Delete an assistant
To delete an assistant, use the following cURL. Update these placeholders:
...
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
You can find more about assistants here: Assistants |
...
Module | Example | Description | Parameter | Options | ||
---|---|---|---|---|---|---|
|
| GPT model to be used |
| see below section with GPT-models default: | ||
Scopes that the module can access |
| |||||
RAG approach to search for chunks |
|
| ||||
Describing if chunks of same document are appended as individual sources to GPT content or merged to one source |
|
| ||||
Scope restriction to documents that are uploaded. If no documents are uploaded, then scopes in scopeIds are relevant. |
|
| ||||
Flag that allows to include previous chat conversation in GPT-calls only if the new user input is a follow-up question |
|
| ||||
Max tokens used by sources and previous conversation |
| Default value depends on the used
| ||||
Specifies the primary language used for full-text search. This should match the predominant language of the documents in the knowledge centre. |
| Default: | ||||
|
| GPT model to be used |
| |||
Describing if chunks of same document are appended as individual sources to GPT content or merged to one source |
|
| ||||
|
| GPT model to be used |
| |||
|
| GPT model to be used |
| |||
|
| GPT model to be used |
| |||
Temperature (chatGPT) |
| Range: 0-1 Default: 0.5 | ||||
System prompt |
| Default system prompt is (depending of
| ||||
Maximum number of user-assistant interactions taken into account in the history. |
| Default: 2 | ||||
| ||||||
| ||||||
|
| GPT model to be used |
| |||
|
| GPT model to be used |
| |||
tbd |
| |||||
tbd |
| |||||
tbd |
| |||||
|
| GPT model to be used |
| |||
Scope that the module can access |
| |||||
Max tokens used by sources and previous conversation |
| |||||
Name of excel template file, that will be filled with extracted values. Need to uploaded to the same scopeId |
| |||||
|
| GPT model to be used |
| |||
|
| GPT model to be used |
|
...
Model | Key |
---|---|
GPT-35-turbo (0301) | AZURE_GPT_35_TURBO |
GPT-35-turbo (0613) | AZURE_GPT_35_TURBO_0613 |
GPT-35-turbo-16K (0613) | AZURE_GPT_35_TURBO_16K |
GPT-4 (0613) | AZURE_GPT_4_0613 |
GPT-4-32K (0613) | AZURE_GPT_4_32K_0613 |
GPT-4-turbo (0409) | AZURE_GPT_4_TURBO_2024_0409 |
GPT-4o (2024-05-130513) | AZURE_GPT_4o_2024_0513 |
GPT-4o (2024-0806) | AZURE_GPT_4o_2024_05130806 |
GPT-4o-mini (2024-07-180718) | AZURE_GPT_4o_MINI_2024_0718 |
...
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
You can find more about modules here: Modules |
...