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.
...
Variable | Description | Options | optional / required | |
---|---|---|---|---|
| Name of assistant | required | ||
| fallbackModule if module selection could not find a suitable module | required | ||
| Language module used for module selection | see below section with GPT-models default: | optional | |
| Enable/disable upload of documents into chat |
| optional | |
Collection of | settings:various setting |
|
| optional |
|
| optional | ||
| List of modules to create. See |
| optional | |
| List of modules to create. See Module section for details about configuration of a module | required |
...
Code Block |
---|
{ "input": { "name": "Internal Knowledge", "fallbackModule": "SearchInVectorDB", "languageModel": null"AZURE_GPT_35_TURBO_0613", "chatUpload": "Disabled", "settings": { "showPdfHighlighting": true, }, "modelChoosing": "modules": {BY_FUNCTION_CALL", "createisPinned": true }, "modules": { "create": [ { "name": "SearchInVectorDB", "configuration": { }, "description": null, "isExternal": false, "weight": 10000 }, { "name": "Translate", "configuration": { }, "description": null, "isExternal": false, "weight": 6000 } ] } } } |
...
configuration
→ depends on module. See section Module dependent configurations for more detailsdescription
→ description of module. Required only for external modulesisExternal
→ flag if module is external (= developed with SDK)weight
→ defines the order of modules in module selection prompt
...
modules in module selection prompt
toolDefinition
→ Description of module used for function calling. Here, the same structure as openAI is used (therefore, this parameter is called toolDefinition and not moduleDefinition)
Code Block |
---|
{ "name": "SearchInVectorDB", "configuration": { <collectionOfParameters> }, "isExternal": false, "weight": 10000, "toolDefinition": { "type": "function", "function": { "name": "SearchInVectorDB", "description": "Search information in the employee knowledge base for a specific question or assignment, e.g. explain, elaborate or describe. If the employee mentions a specific document and you do not know it, ALWAYS use this function. The employee can ask specific formats. Some examples: 'summarise directive 76 in bullet points', 'how to export data to third-parties', 'what are employee benefits'.", "parameters": { "type": "object", "properties": { "instruction": { "type": "string", "description": "The question to search in the knowledge base, e.g. Was gibt es zu essen?" } <collectionOfParameters> }, } "description": null, "isExternal": false, } "weight": 10000} } |
Module dependent configurations
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
| ||||
|
| 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 | ||||
| ||||||
| ||||||
|
| 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 |
|
...
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 (1106): AZURE_GPT_4_TURBO_1106:
...
Author |
---|