SimAI is an addon of AiBySimplicite containing a simplified business process for automatic module generation.
- Make sure you have the
AiBySimplicite
module installed - Add this module in your Simplicite instance
- Create a user and configure SAI_CREATE_MODULE rights
In docker compose add the environement parameter to:
- Import
SimThemes
,AIBySimplicite
andSimAi
with dataset and unit test to import examples and create user. - Define the AI parameters:
{
"completion_url": "",
"bot_name": "",
"code_max_token": "",
"provider": "",
"api_key": "",
"default_max_token": "",
"showDataDisclaimer": true,
"data_number": "",
"hist_depth": "",
"model": "",
"stt_url": "",
"ping_url": ""
}
- Define user information
usrName
andpassword
.
environment:
MODULES_IMPORT_SPEC: |
title: "AI External"
modules:
- name: "SimThemes"
version: "0.3"
git:
uri: "https://github.com/simplicitesoftware/module-theming"
- name: "AIBySimplicite"
version: "0.31"
git:
uri: "https://github.com/simplicitesoftware/module_ai.git"
branch: "simplifiedProcess"
- name: "SimAi"
version: "0.4"
datasets: true
unittests: true
git:
uri: "https://github.com/CBimont/SimAi.git"
SIMPLICITE_SYSPARAM_AI_API_PARAM: |
{
"completion_url": "https://api.mistral.ai/v1/chat/completions",
"bot_name": "George",
"code_max_token": "2000",
"provider": "Mistral AI",
"api_key": "${mistral_api_key}",
"default_max_token": "5000",
"showDataDisclaimer": true,
"data_number": "3",
"hist_depth": "3",
"model": "pixtral-12b-2409",
"stt_url": "",
"ping_url": "https://api.mistral.ai/v1/models"
}
usrName: "${user_name}"
password: "${user_password}"
Widget for home page (contact)
Create a new user granted to process with usrName
and password
environment variable, dedicated for docker compose auto deployment.
Chat prompt examples
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
saiSaeTitle |
char(50) | yes* | yes | - | |
saiSaeTitleEnglish |
char(100) | yes* | yes | - | |
saiSaeSummary |
text(350) | yes | - | ||
saiSaePrompt |
text(1500) | yes | - | ||
saiSaeSummaryEnglish |
text(350) | yes | - | ||
saiSaePromptEnglish |
text(1500) | yes | - |
Management of commercial contact and module registration.
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
saiContactName |
char(100) | yes | - | ||
saiContactEmail |
email(100) | yes | - | ||
saiContactPhone |
phone(100) | yes | - | ||
saiContactComment |
text(1000) | yes | - | ||
saiCntModuleId link to Module |
id | yes* | yes | - | |
Ref. saiCntModuleId.mdl_name |
regexp(100) | Module name | |||
Ref. saiCntModuleId.mdl_xml |
document | Module file | |||
saiCntSended |
boolean | yes | - | ||
saiCntDeletion |
datetime | - | |||
saiCntViewhomeId link to ViewHome |
id | - | |||
Ref. saiCntViewhomeId.viw_name |
char(100) | - |
Custom endpoint, Interface with the AIBySimplicite process.
External page, redirect page in case of technical error (such as inaccessible Mistral API or missing token).
External page, module generation process.