Wiki source code of Intelligence artificielle

Last modified by Aurelie Bertrand on 2025/11/14 11:59

Hide last authors
Aurelie Bertrand 28.1 1 {{ddtoc/}}
2
3 ----
4
Aurelie Bertrand 42.1 5 This section allows you to configure the options for features using artificial intelligence: [[data enrichment with open data>>doc:Digdash.user_guide.studio.open_data.WebHome]], generation of a transformation function, [[display of highlights>>doc:Digdash.user_guide.dashboard.Display_highlights.WebHome]] and [[DigDash Agent>>doc:Digdash.Agent.WebHome]].
Aurelie Bertrand 2.2 6
Aurelie Bertrand 42.1 7 [[image:AI_en.png||alt="Artificial intelligence"]]
Aurelie Bertrand 8.1 8
Aurelie Bertrand 42.1 9 = Open data =
Aurelie Bertrand 2.3 10
Aurelie Bertrand 42.1 11 Here you can activate the [[open data functionality>>doc:Digdash.user_guide.studio.open_data.WebHome]]:
Aurelie Bertrand 2.3 12
Aurelie Bertrand 42.1 13 * Check the **Enable the open data functionality** box.
14 ➡ The** Enrich with open data** command is then available in the data model context menu.
15 [[image:Model_enrich_open_data_EN.png||alt="Enrich model" height="504" width="707"]]
Aurelie Bertrand 2.3 16
Aurelie Bertrand 42.1 17 It is also possible to automatically detect whether open data compatible with your data is available, when your data model is created. To do this:
Aurelie Bertrand 4.1 18
Aurelie Bertrand 42.1 19 * Check the **Enable open data functionality when creating a data model** box **.**
20 ➡ If open data compatible with your data is available, it will be offered to you when you create your data model (after clicking on the **Finish** button when configuring the data model in the Studio).
Aurelie Bertrand 5.2 21
Aurelie Bertrand 42.1 22 The field **The identifier of the role containing the open data models **contains the identifier of the role dedicated to Digdash Open Data models.
Aurelie Bertrand 7.1 23
Aurelie Bertrand 42.1 24 = LLM (Large Language Model) =
Aurelie Bertrand 8.1 25
Aurelie Bertrand 42.1 26 Here you can activate and specify the LLM (large language model) used by the AI wizard for [[the generation of transformation functions>>doc:Digdash.user_guide.studio.Create_datamodel.transform_data.transform_data_tab.WebHome||anchor="IA"]].
Aurelie Bertrand 8.1 27
Aurelie Bertrand 42.1 28 1. Tick the **Activate LLM** box.
29 1. Select the **LLM Provider **from the drop-down list.
Aurelie Bertrand 13.2 30
31 (% class="box infomessage" %)
32 (((
Aurelie Bertrand 42.1 33 The **Ollama** LLM provider requires local installation. You can consult the Ollama documentation [[https:~~/~~/github.com/ollama/ollama/>>https://github.com/ollama/ollama/]] for more details.
Aurelie Bertrand 13.2 34 )))
35
Aurelie Bertrand 15.1 36 (% start="3" %)
Aurelie Bertrand 42.1 37 1. Fill in the following information:(((
Aurelie Bertrand 27.1 38 |=(% style="width: 181px;" %) |=(% style="width: 286px;" %)OpenAI|=(% style="width: 363px;" %)Google Gemini|=(% style="width: 482px;" %)Ollama
Aurelie Bertrand 42.1 39 |=(% style="width: 181px;" %)**Server URL**|(% style="width:286px" %)https:~/~/api.openai.com|(% style="width:363px" %)(((
40 https:~/~/generativelanguage.googleapis.com/v1beta/models/nom_du_modèle
Aurelie Bertrand 11.1 41
Aurelie Bertrand 42.1 42 The URL contains the model used by Gemini. Thus,// model_name //should be replaced by the name of the chosen model. For example:
Aurelie Bertrand 13.1 43 https:~/~/generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent
Aurelie Bertrand 11.1 44
Aurelie Bertrand 42.1 45 Click on the following link to consult the list of available models:
Aurelie Bertrand 11.1 46 [[https:~~/~~/ai.google.dev/gemini-api/docs/models/gemini?hl=fr>>https://ai.google.dev/gemini-api/docs/models/gemini?hl=fr]]
Aurelie Bertrand 27.1 47 )))|(% style="width:482px" %)(((
Aurelie Bertrand 42.1 48 Enter the server URL in the following format:
49 //http:~/~/[server]:[port]
50 For example : //[[http:~~/~~/lab1234.lan.digdash.com:11434>>http://lab3090.lan.digdash.com:11434]]
Aurelie Bertrand 11.1 51 )))
Aurelie Bertrand 42.1 52 |=(% style="width: 181px;" %)**API key**|(% style="width:286px" %)(((
53 Enter your API key.
Aurelie Bertrand 11.1 54
Aurelie Bertrand 42.1 55 See the paragraph [[Configuring an OpenAI API key>>doc:.LLM_API_key.WebHome||anchor="OpenAI"]] if necessary.
Aurelie Bertrand 27.1 56 )))|(% style="width:363px" %)(((
Aurelie Bertrand 42.1 57 Enter your API key.
Aurelie Bertrand 11.1 58
Aurelie Bertrand 42.1 59 See the paragraph [[Configuring a Gemini API key>>doc:.LLM_API_key.WebHome||anchor="Gemini"]] if necessary.
60 )))|(% style="width:482px" %)Ollama does not require an API key.
61 |=(% style="width: 181px;" %)**Model**|(% style="width:286px" %)(((
62 Enter the name of the chosen model.
63 For example, gpt-3.5-turbo.
Aurelie Bertrand 11.1 64
Aurelie Bertrand 42.1 65 Click on the following link to consult the list of available models:
Aurelie Bertrand 11.1 66 [[https:~~/~~/platform.openai.com/docs/models>>https://platform.openai.com/docs/models]]
Aurelie Bertrand 27.1 67 )))|(% style="width:363px" %)(((
Aurelie Bertrand 42.1 68 The model is not entered here but directly in the server URL.
69 The field must remain empty.
Aurelie Bertrand 27.1 70 )))|(% style="width:482px" %)(((
Aurelie Bertrand 42.1 71 Enter the model identifier.
Aurelie Bertrand 23.3 72
Aurelie Bertrand 42.1 73 We recommend the following models:
Aurelie Bertrand 23.2 74
Aurelie Bertrand 42.1 75 * **Codestral 22B**: LLM specialising in code generation (small, high-performance model).
76 With the level of [[quantization level>>https://huggingface.co/docs/optimum/concept_guides/quantization]] Q4_K_M, the identifier is //codestral:22b-v0.1-q4_K_M//
77 * **Llama 3.3 70B **: General-purpose LLM for code-generating tasks.
78 With the [[quantization level>>https://huggingface.co/docs/optimum/concept_guides/quantization]] Q4_K_M, the identifier is //llama3.3:70b-instruct-q4_K_M//
Aurelie Bertrand 23.3 79
Aurelie Bertrand 42.1 80 Click on the following link to consult the list of available models:
Aurelie Bertrand 23.3 81 [[https:~~/~~/ollama.com/search>>https://ollama.com/search]]
Aurelie Bertrand 11.1 82 )))
83 )))
Aurelie Bertrand 42.1 84 1. Click on **Save**.
Aurelie Bertrand 10.1 85
Aurelie Bertrand 42.1 86 To return to the default values, click **Reset**.
Aurelie Bertrand 24.2 87
Aurelie Bertrand 42.1 88 == Setting prompts ==
Aurelie Bertrand 24.2 89
Aurelie Bertrand 42.1 90 The prompts (or instructions) used by default for generating data transformations are stored in the ///home/digdash/webapps/ddenterpriseapi/WEB-INF/classes/resources/llm// directory //.// There is a prompt for each provider. ❗These prompts MUST NOT be changed.
Aurelie Bertrand 25.2 91
Aurelie Bertrand 42.1 92 You can define a custom prompt on the same model, keeping the last lines :
Aurelie Bertrand 25.2 93
Aurelie Bertrand 42.1 94 {{{request: #/*REQUEST_CLIENT*/#}}}
Aurelie Bertrand 25.2 95
Aurelie Bertrand 42.1 96 In order to be taken into account, it must be named //custom.prompt// and placed in the ///home/digdash/appdata/default/Enterprise Server/ddenterpriseapi/config// directory //.//
Aurelie Bertrand 26.1 97
Aurelie Bertrand 42.1 98 = Highlights{{id name="highlight"/}} =
Aurelie Bertrand 29.2 99
Aurelie Bertrand 30.1 100 (% class="box" %)
101 (((
Aurelie Bertrand 42.1 102 💡 Consult the page [[View highlights>>doc:Digdash.user_guide.dashboard.Display_highlights.WebHome]] page for more details on the use of highlights.
Aurelie Bertrand 30.1 103 )))
Aurelie Bertrand 29.2 104
Aurelie Bertrand 42.1 105 Some default values for [[highlights>>doc:Digdash.user_guide.dashboard.Display_highlights.WebHome]] parameters ars eset by default. You can change these values if you wish to influence the way in which highlights are identified.
Aurelie Bertrand 29.2 106
Aurelie Bertrand 42.1 107 |=(% style="background-color: grey; width: 438px;" %)(% style="color:#ffffff" %)Parameter|=(% style="background-color: grey; width: 1053px;" %)(% style="color:#ffffff" %)Description
108 |(% style="width:438px" %)**Minimum number of members for Mega**|(% style="width:1053px" %)(((
109 Minimum number of members the dimension must contain to be able to identify a mega contributor.
110 By default, the dimension must contain at least 5 members.
Aurelie Bertrand 30.1 111 )))
Aurelie Bertrand 42.1 112 |(% style="width:438px" %)**Minimum percentage for Mega**|(% style="width:1053px" %)Minimum percentage of the total sum that the member must represent to be a mega contributor.
113 By default, a member must contribute at least 40% of a given measure to be able to be a mega contributor.
114 |(% style="width:438px" %)**Minimum number K for TopK**|(% style="width:1053px" %)Minimum number of members contributing at least the//"Minimum percentage for TopK"// to a given measure (total sum).
115 By default, at least 2 members must contribute at least 40% of a given measure to be top contributors.
116 |(% style="width:438px" %)**Maximum number K for TopK**|(% style="width:1053px" %)Maximum number of members contributing at least the//"Minimum percentage for TopK"// to a given measure (total sum).
117 By default, a maximum of 5 members must contribute at least 40% of a given measure to be top contributors.
118 |(% style="width:438px" %)**Percentage K for TopK**|(% style="width:1053px" %)Percentage of the number of members used to determine K.
119 By default, K is equal to 33%. A minimum of 6 members is required to obtain a Top2.
120 |(% style="width:438px" %)**Minimum percentage for TopK**|(% style="width:1053px" %)Minimum percentage of a given measure to which the K best members must contribute to be Top contributors.
121 By default, the K best members must contribute at least 40% to a given measure (total sum) to be Top contributors.
122 |(% style="width:438px" %)**Lowest lower bound for correlation**|(% style="width:1053px" %)Minimum correlation coefficient for a dimension with 10 members for correlation to be taken into account.
123 By default, the minimum correlation coefficient is 0.7.
124 |(% style="width:438px" %)**Highest lower bound for correlation**|(% style="width:1053px" %)Minimum correlation coefficient for a dimension with 50 or more members for correlation to be taken into account.
125 By default, the minimum correlation coefficient is 0.3.
126 |(% style="width:438px" %)**Limit for correlation**|(% style="width:1053px" %)Limit of the correlation coefficient beyond which the relationship is no longer considered a correlation.
Aurelie Bertrand 30.1 127
128 (% class="box infomessage" %)
129 (((
Aurelie Bertrand 42.1 130 ℹ The correlation search is only performed if the selected measure has a Mega Contributor, Top K Contributors or Pareto.
Aurelie Bertrand 30.1 131 )))
Aurelie Bertrand 36.1 132
133 = Agent =
134
Aurelie Bertrand 42.1 135 This section allows you to configure the server parameters for the use of DigDash Agent. See paragraph [[Configuring DigDash server settings>>doc:Digdash.Agent.install_guide_Agent.WebHome||anchor="Paramètres_serveur"]] for a detailed description.