<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aura – use-case</title>
    <link>/tags/use-case/</link>
    <description>Recent content in use-case on Aura</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="/tags/use-case/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-generative/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-generative/</guid>
      <description>
        
        
        &lt;h1 id=&#34;design-preset-configuration-generative&#34;&gt;Design preset configuration: Generative&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Guidelines for configuring a preset for the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; Generative AI capability&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(34, 150, 65);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:rgb(34, 150, 65)&#34;&gt; &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;A simple &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; Generative experience performs a &lt;strong&gt;basic interaction with a Large Language Model (LLM)&lt;/strong&gt;, generating content from an input user&amp;rsquo;s query based on &lt;strong&gt;predefined instructions (prompts)&lt;/strong&gt;, and including control stages to ensure reliable and appropriate responses.&lt;/p&gt;
&lt;p&gt;The first task in the process involves defining the &lt;strong&gt;configuration for your &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/#preset&#34;&gt;preset&lt;/a&gt;&lt;/strong&gt;, that entails selecting the specific parameters tailored to your use case.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-plug fa-xl&#34; style=&#34;color: #bc5d34;&#34;&gt;&lt;/i&gt; These parameters are defined in the &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/aura-configuration-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; API swagger&lt;/a&gt; &amp;raquo; &lt;em&gt;PresetConfiguration&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The preset configuration parameters have been divided into two categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#a-define-the-basic-configuration-for-your-preset&#34;&gt;&lt;strong&gt;Basic configuration&lt;/strong&gt;&lt;/a&gt;: Selection of the most relevant ones from the use case constructors point of view.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#b-define-advanced-configuration-for-your-preset&#34;&gt;&lt;strong&gt;Advanced configuration&lt;/strong&gt;&lt;/a&gt;: Other preset parameters that can also be configured but require greater technical expertise.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From all the available preset parameters, some of them are general ones and others are specific for each step of the predefined &lt;strong&gt;Generative pipeline&lt;/strong&gt;, which is schematically shown below.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;600&#34; height=&#34;600&#34; src=&#34;../../images/atria/constructors/generative-pipeline.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;ATRIA Generative pipeline&lt;/i&gt;
&lt;/p&gt;
&lt;h2 id=&#34;a-define-the-basic-configuration-for-your-preset&#34;&gt;a. Define the basic configuration for your preset&lt;/h2&gt;
&lt;h3 id=&#34;1-select-a-preset-template-for-generative&#34;&gt;1. Select a preset template for Generative&lt;/h3&gt;
&lt;p&gt;For this purpose, two options can be used:&lt;/p&gt;
&lt;h4 id=&#34;11-create-a-preset-from-scratch&#34;&gt;1.1. Create a preset from scratch&lt;/h4&gt;
&lt;p&gt;If you want to create a preset from scratch, use the template below.&lt;/p&gt;
&lt;p&gt;This preset JSON file is intended to serve as a base template on which you can make your modifications.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; Remember that this preset template only included basic configuration parameters for use cases constructors.&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Access the Generative preset JSON file &lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;e27ca464-488a-435d-a508-da8a262d905f&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;openai&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;description&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;openai model&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;group&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;simple_ai&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;session&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;window&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;generative&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;model&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;gpt-4o-mini&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;parameters&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;max_tokens&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1024&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;response_format&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;json_object&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;temperature&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;0.2&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;top_p&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;0.9&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;injectionMaxLength&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1000&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;template&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;{MSG}&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;preamble&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Speak as if you were {name}&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;a pirate&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;examples&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Hello, comrades&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Hoist the sails&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                       &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;promptMaxLength&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10000&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;promptRegexClean&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;[#\\n\&amp;#34;]+&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;h4 id=&#34;12-use-available-presets-as-templates&#34;&gt;1.2. Use available presets as templates&lt;/h4&gt;
&lt;p&gt;If you want to use an existing &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; preset and update specific parameters on it or use it as a reference to create a new one, you can access the list of the presets available in your environment: &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#5-get-info-about-available-presetsapplications&#34;&gt;Calls to API: Get info about the available presets or applications&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;2-general-parameters&#34;&gt;2. General parameters&lt;/h3&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-generative-total.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;p&gt;Configure key general parameters of the Generative experience.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Unique preset identifier in &lt;a href=&#34;https://www.uuidgenerator.net/&#34;&gt;UUID format&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Preset Name.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;description&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Description of the preset functionality.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;group&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. This parameter is used to group requests regarding the AI technologies used to generate KPIs. Value: &lt;code&gt;simple_ai&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;model&lt;/code&gt; and associated parameters: Model to be used in the LLM call of the experience.
&lt;ul&gt;
&lt;li&gt;The following options are available: &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#models-by-default&#34;&gt;Models by default&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;In addition, it is possible to include other &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/reference&#34;&gt;model relevant parameters&lt;/a&gt;. Specifically, &lt;code&gt;response_format&lt;/code&gt;, that allows selecting the format of the response, is interesting.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/generative-general-params.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;3-security&#34;&gt;3. Security&lt;/h3&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-generative-security.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;p&gt;Improve security and prevent prompt injection.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;injectionMaxLength&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Maximum length of the input request. If longer, an error is provided and the request does not enter the following stage.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;promptMaxLength&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Maximum length of the completed prompt. Used to avoid calling LLMS with wrong prompts. If the prompt length exceeds the set value, the prompt will be truncated and the LLM will only use the truncated prompt to generate the response.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;promptRegexClean&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Regex pattern to clean the query before sending it to the model. This is useful to remove unwanted characters or patterns from the query. Type: number.&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/generative-security-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;4-context&#34;&gt;4. Context&lt;/h3&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-generative-context.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;p&gt;Enrich the response including information from past interactions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;window&lt;/code&gt;: Number of previous interactions from the same session that the model will take into account to generate the response.&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/generative-context-params.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;5-response-generation&#34;&gt;5. Response generation&lt;/h3&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-generative-responsegeneration.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;p&gt;Define the &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/#prompt&#34;&gt;prompt&lt;/a&gt; with instructions to be used by the AI model for the generation of the response.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;template&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Template that includes the user’s input. It must include {MSG} for the user’s utterance.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;preamble&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Instructions that the model must follow for the use case.&lt;br&gt;
- &lt;code&gt;text&lt;/code&gt;: Specific instructions sent to the language model. It can include variables as placeholders (&lt;code&gt;{}&lt;/code&gt;).&lt;br&gt;
- &lt;code&gt;args&lt;/code&gt;: Specific values for the placeholders defined in the text.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;examples&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Examples to enrich the prompt.&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
  &lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/generative-prompt-params.png&#34;&gt;&lt;br&gt;
  &lt;/p&gt;
&lt;/details&gt;
&lt;br&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-file-lines fa-xl&#34; style=&#34;color: #0d5de7;&#34;&gt;&lt;/i&gt; Check the document &lt;a href=&#34;../../docs/atria/technical-guidelines/best-practices-promtps/&#34;&gt;Best practices for prompts generation&lt;/a&gt; that includes practical guidelines for creating a prompt in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;b-define-advanced-configuration-for-your-preset&#34;&gt;b. Define advanced configuration for your preset&lt;/h2&gt;
&lt;p&gt;In addition to the basic parameters for use cases constructors, presets also include other advanced fields that can also be configured but require greater technical expertise.&lt;/p&gt;
&lt;p&gt;Discover them here: &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;Create and configure a preset&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-rag/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-rag/</guid>
      <description>
        
        
        &lt;h1 id=&#34;design-preset-configuration-rag&#34;&gt;Design preset configuration: RAG&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Guidelines for configuring a preset for the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; RAG capability&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(34, 150, 65);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:rgb(34, 150, 65)&#34;&gt; &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;An &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; RAG experience performs a &lt;strong&gt;multiple-stages interaction with a Large Language Model (LLM)&lt;/strong&gt;, generating content from an input user&amp;rsquo;s query based on &lt;strong&gt;predefined instructions (prompts)&lt;/strong&gt; to ensure reliable and appropriate responses.&lt;/p&gt;
&lt;p&gt;The first task in the process involves defining the configuration for your &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/#preset&#34;&gt;preset&lt;/a&gt;, that entails selecting the specific parameters tailored to your use case when using the RAG capability.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-plug fa-xl&#34; style=&#34;color: #bc5d34;&#34;&gt;&lt;/i&gt; These parameters are defined in the &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/aura-configuration-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; API swagger&lt;/a&gt; &amp;raquo; &lt;em&gt;PresetConfiguration&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The preset configuration parameters have been divided into two categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#a-define-the-basic-configuration-for-your-preset&#34;&gt;&lt;strong&gt;Basic configuration&lt;/strong&gt;&lt;/a&gt;: Selection of the most relevant ones from the use case constructors point of view.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#b--define-advanced-configuration-for-your-preset&#34;&gt;&lt;strong&gt;Advanced configuration&lt;/strong&gt;&lt;/a&gt;: Other preset parameters that can also be configured but require greater technical expertise.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From all the available preset parameters, some of them are general ones and others are specific for each step of the predefined &lt;strong&gt;ATRIA RAG pipeline&lt;/strong&gt;, which is schematically shown below.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;800&#34; height=&#34;800&#34; src=&#34;../../images/atria/constructors/general-rag-pipeline.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;ATRIA General RAG pipeline&lt;/i&gt;
&lt;/p&gt;
&lt;h2 id=&#34;a-define-the-basic-configuration-for-your-preset&#34;&gt;a. Define the basic configuration for your preset&lt;/h2&gt;
&lt;p&gt;As explained before, the basic configuration &lt;strong&gt;does not include all the available preset parameters&lt;/strong&gt; for these reasons:&lt;/p&gt;
&lt;p&gt;a. &lt;strong&gt;Presets have both mandatory and optional parameters&lt;/strong&gt;, so they can be adjusted to a specific experience.&lt;/p&gt;
&lt;p&gt;b. &lt;strong&gt;Certain preset parameters are defined by default&lt;/strong&gt;. Parameters defined by default are &lt;u&gt;not included in the preset configuration file&lt;/u&gt;. For using these default values, nothing must be done in the preset by the use case constructors.  &lt;br&gt;
One of the preset parameters is the &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/#prompt&#34;&gt;&lt;strong&gt;prompt&lt;/strong&gt;&lt;/a&gt;. In the &lt;a href=&#34;#introduction&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; General RAG pipeline&lt;/a&gt;, stages marked as &amp;ldquo;Implies LLM call&amp;rdquo; (grey border boxes) require editing a prompt with instructions for the LLM model. Constructors can use the prompts defined by default for each stage or modify them. Detailed information is included in the corresponding RAG stage section.&lt;/p&gt;
&lt;h3 id=&#34;1-select-a-preset-template-for-rag&#34;&gt;1. Select a preset template for RAG&lt;/h3&gt;
&lt;p&gt;For this purpose, two options can be used:&lt;/p&gt;
&lt;h4 id=&#34;11-create-a-preset-from-scratch&#34;&gt;1.1. Create a preset from scratch&lt;/h4&gt;
&lt;p&gt;If you want to create a preset from scratch, use the template below. This JSON file is intended to serve as a base template on which you can make your modifications.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; Remember that this preset template only included basic configuration parameters for use cases constructors.&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Access the RAG preset JSON template&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;1cafcb5c-7951-4645-86d4-055d3b46fe79&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;atria-rag-gpt-35-turbo&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;group&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;enriched_ai&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;description&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Atria rag GPT 3.5&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;session&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;window&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;3&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;rag&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;ragType&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;questions-answers&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;model&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;id&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;gpt-35-turbo&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;parameters&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;max_tokens&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;4000&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;temperature&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;top_p&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;stages&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;promptSystemLanguage&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;es&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;defaultUserLanguage&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;es&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;SecurityStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;injectionMaxLength&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;   
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;contextStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;enabled&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;stickyContext&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;ask_llm&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;retrievalStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;sources&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;project-gpt-35-turbo&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;embeddings&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;text-embedding-ada-002&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;docs&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;extension&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;pdf&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;loader&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;loaderType&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;unstructured&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;options&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;loaderMode&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;single&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;postProcessors&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;],&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;splitter&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;options&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;chunkSize&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;60&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;chunkOverlap&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;20&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;retrievers&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;[&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;retrieverType&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;qdrant&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;config&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;numDocs&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;loadChunkSize&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;10000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;postFilteringStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;enabled&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;candidatesPostFiltering&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;llm_filter&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompt&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;  
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;generativeStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;ragStrategy&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;stuff&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;  
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;h4 id=&#34;12-use-available-presets-as-templates&#34;&gt;1.2. Use available presets as templates&lt;/h4&gt;
&lt;p&gt;If you want to use an existing &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; preset and update specific parameters on it or use it as a reference to create a new one, you can access the list of the presets available in your environment: &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#5-get-info-about-available-presetsapplications&#34;&gt;Calls to API: Get info about the available presets or applications&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;2-general-parameters&#34;&gt;2. General parameters&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-total.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;Configure key general parameters for your RAG experience.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;id&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Unique preset identifier in &lt;a href=&#34;https://www.uuidgenerator.net/&#34;&gt;UUID format&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;name&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Preset Name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;group&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. This parameter is used to group requests regarding the AI technologies used to generate KPIs.&lt;br&gt;
Value: &lt;code&gt;enriched_ai&lt;/code&gt; for RAG preset.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;description&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Description of the preset functionality.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ragType&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Type of RAG. For RAG of documents, the value must be: &lt;code&gt;&amp;quot;ragType&amp;quot;: &amp;quot;questions-answers&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;model&lt;/code&gt; and associated parameters: Model to be used in all the LLM calls of the experience.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The following options are available: &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#models-by-default&#34;&gt;Models by default&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;In addition, it is possible to include other &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/reference&#34;&gt;model relevant parameters&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;promptSystemLanguage&lt;/code&gt;: Language of the prompts to be used. Values: &lt;code&gt;es&lt;/code&gt;, &lt;code&gt;en&lt;/code&gt;.&lt;br&gt;
If &amp;ldquo;default&amp;rdquo; prompts are used, the language is &lt;code&gt;en&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/rag-general-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;3-security&#34;&gt;3. Security&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-security.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;Improve security and prevent prompt injection.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;InjectionMaxLength&lt;/code&gt;: Maximum number of characters allowed in the user’s query. If longer, an error is provided and the request does not enter the following stage.&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;350&#34; height=&#34;350&#34; src=&#34;../../images/atria/constructors/rag-security-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;4-multi-language&#34;&gt;4. Multi-language&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-multilanguage.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The multi-language feature allows users to receive responses in their own language.&lt;/p&gt;
&lt;p&gt;The system automatically detects the language in the user&amp;rsquo;s request in the multi-language step of the RAG pipeline, and this language is afterwards used in the response generation stage to provide the response back to the user.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Activate multi-language feature&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;No action is required by constructors, as it is activated by default in the preset parameter &lt;code&gt;#.auto.language.user_query&lt;/code&gt;, within the &lt;code&gt;args&lt;/code&gt; field of the prompt.&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/rag-autolanguage-activation.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check the prompt by default for this stage here:&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/prompts-by-default-multi-language.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Additionally, constructors can adjust the parameter &lt;code&gt;defaultUserLanguage&lt;/code&gt; to select the language to be used in case the system does not recognize the language of the user&amp;rsquo;s request. By default, this is set to English.&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/rag-defaultuserlanguage-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Deactivate multi-language feature&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Constructors must modify the prompts in which the parameter &lt;code&gt;#.auto.language.user_query&lt;/code&gt; is included and customize it according to their use case.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The following example shows a prompt adjusted to provide the response in English:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/prompts-multilanguage-en.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The associated code for this prompt customization is included below. If you want to modify the default prompt, you can take this one as a reference and update it.&lt;/p&gt;
  &lt;details close&gt;
  &lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Modified prompt for response in English&lt;/i&gt;&lt;/b&gt; &lt;i&gt;(Use as template for prompt customization)&lt;/i&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;generativeStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;stuff&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Respond in English.\n\nQuestion:\n{question}\n&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;human&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;You are going to generate an answer for a user question or query. \nTo generate the answer, take always into account all the information available in the context provided.\n\nContext:\n{context}\n\nQuestion:\n{question}\n\nNever include information by your own using your own knowledge.\n{extra_prompt}\n&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;notAnswerResponse&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;You are a question answering agent. You have tried to answer this question: {query}\nHowever you do not have information to answer this.\nPlease, tell the user that you are not able to answer, apologize and invite the user to make other question.\nAvoid any harmful answer, such as sexual, rude, sexist or racist.\nRespond in English.\n\nUser question:\n{query}\n&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                  &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;/details&gt;
&lt;h3 id=&#34;5-context&#34;&gt;5. Context&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-conversationhistory.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The context stage (&lt;code&gt;contextStg&lt;/code&gt;) of the RAG pipeline is responsible for rewriting the user’s query if it is related to the previous context.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;window&lt;/code&gt;: Set the number of previous interactions taken into account through the size of the session window, in queries.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;enabled&lt;/code&gt;: The &lt;code&gt;contextStg&lt;/code&gt; can be enabled or disabled. Set to &lt;code&gt;true&lt;/code&gt; to enable the use of context information.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;stickyContext&lt;/code&gt;: The recommended strategy is &lt;code&gt;ask_llm&lt;/code&gt;. With this strategy, the LLM firstly checks if the user query is related to the previous ones. ​Only if it is, the LLM rewrites the question.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Context prompts: Two prompts can be modified:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sameContext&lt;/code&gt;: Prompt to check if the query is in the same context.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;recreatedQuestion&lt;/code&gt;: Prompt to rewrite the original question, only if the LLM has evaluated that the request is related to the previous one.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
    &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/rag-context-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;br&gt;
The default prompts for this stage are included below, both schematically and JSON code. If you want to modify them, you can take them as a reference and make the required updates.  
&lt;br&gt;&lt;br&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/prompts-by-default-context.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Default prompts for context stage&lt;/i&gt;&lt;/b&gt; &lt;i&gt;(Use as template for prompt customization)&lt;/i&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;contextStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;stickyContext&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;ask_llm&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;enabled&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;sameContext&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Below is a conversation followed by a question. You must determine if the question corresponds to the same context as the conversation or if it is from a different context.\n Respond only with: [SAME CONTEXT] o [DIFFERENT CONTEXT]\n\nConversation:\n{memory}\n\nQuestion:\n{query}&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;recreatedQuestion&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;The user text contains a query, plus the previous conversation turn.\n\n- If the previous conversation is relevant for the current query, incorporate it into the query and produce a rewritten query\n- else just repeat the current query.\n\n  Always rewrite the question in the same language as the user&amp;#39;s question.&amp;#34;&lt;/span&gt;  
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;human&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Previous conversation:\n{memory}\n\nCurrent query:\n{query}\n\nRewritten query:\n&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;h3 id=&#34;6-retrieval&#34;&gt;6. Retrieval&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-retrieval.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The retrieval stage (&lt;code&gt;retrievalStg&lt;/code&gt;) is responsible for retrieving the relevant text blocks for the generation of the final response to the user. There are three configurable steps within this stage, which are shown in the following diagram.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/rag-retrieval-process.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h4 id=&#34;61-configure-the-knowledge-base&#34;&gt;6.1. Configure the knowledge base&lt;/h4&gt;
&lt;p&gt;Before this task, it is important to curate the data in order to optimize the recognition process. For this purpose, we recommend following the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/import-documents/#a-data-curation&#34;&gt;Guidelines for data curation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The configuration of the knowledge base focuses on the parameters related to the segmentation and processing of the kb.&lt;/p&gt;
&lt;p&gt;Below, a selection of parameters that can be configured is included:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;embeddings&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Identifier of the embeddings model to be used.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;docs&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;extension&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. File types (extensions) of documents that can be processed. The extensions must be separated by a comma.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;loader&lt;/code&gt; and &lt;code&gt;postProcessors&lt;/code&gt;: Parameters in charge of reading data from the source and converting it into a usable text or structured text.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;splitter&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Parameter in charge of dividing large text inputs into smaller, manageable chunks to make them suitable for processing.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;chunkSize&lt;/code&gt;: Maximum number of characters or tokens allowed in each chunk.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chunkOverlap&lt;/code&gt;: Number of overlapping characters or tokens between consecutive chunks to preserve context.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;retrievers&lt;/code&gt;: List of retrievers (lexical and semantic) and their associated parameters used for storing and retrieving information from the knowledge base.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/rag-retrieval-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;h4 id=&#34;62-ingestion-process&#34;&gt;6.2. Ingestion process&lt;/h4&gt;
&lt;p&gt;During this step, the documents are uploaded into the knowledge base. For this purpose, it is required to specify where the documents will be uploaded so that the system can locate them.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Configure the path in the preset&lt;/strong&gt;&lt;br&gt;
The preset must specify the exact path where the knowledge base is located in Microsoft Azure Storage Explorer, taking the value of the following parameters of the preset:&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Preset parameters for ingestion path&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;400&#34; height=&#34;400&#34; src=&#34;../../images/atria/constructors/example-ingestion-path.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Upload document to Azure Blob Storage&lt;/strong&gt;&lt;br&gt;
Within the corresponding environment, access the &lt;em&gt;atria-resources&lt;/em&gt; folder and insert the documents in the following path:&lt;br&gt;
&lt;code&gt;&amp;lt;preset_name&amp;gt;/&amp;lt;retrievalStg.sources.name&amp;gt;/&amp;lt;retrievalStg.sources.docs[i].extension&amp;gt;&lt;/code&gt; &lt;br&gt;
For the previous example:&lt;br&gt;
&lt;code&gt;atria-resources/atria-rag-de-faqs/project-de-faqs/pdf&lt;/code&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;1000&#34; height=&#34;1000&#34; src=&#34;../../images/atria/constructors/azure-path.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Notify if needed&lt;/strong&gt;&lt;br&gt;
Once documentation has been uploaded and the preset has been configured, it is needed to execute the ingestion process (GES, Engineering Team).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;63-use-your-knowledge-base&#34;&gt;6.3. Use your knowledge base&lt;/h4&gt;
&lt;p&gt;Edit these parameters to indicate how to use the knowledge base:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;numDocs&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Number of documents to be obtained as output from the retrieval stage.&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/rag-retrieval-kb-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;h3 id=&#34;7-post-filtering&#34;&gt;7. Post-filtering&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-postfiltering.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;The post-filtering stage &lt;code&gt;postFilteringStg&lt;/code&gt; verifies the relevance of retrieved text blocks. For each candidate, the LLM determines if the candidate text is related to the query, and if not, the candidate will be filtered out.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;enabled&lt;/code&gt;: This stage can be enabled or disabled. If not enabled, no post-processing will take place.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;candidatesPostFiltering&lt;/code&gt;: This parameter is fixed to the value &lt;code&gt;llm_filter&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;prompt&lt;/code&gt;: Prompt for the post-filtering stage. It is recommended to use the default prompt and not change it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/rag-postfiltering-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;br&gt;
&lt;p&gt;The default prompt is included below, both schematically and JSON code. It is recommended to use it with no modifications. Nevertheless, if you want to modify it, take the default one as a reference and make your updates.
&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/prompts-by-default-postfiltering.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Default prompt for post-filtering stage&lt;/i&gt;&lt;/b&gt; &lt;i&gt;(Use as template for prompt customization)&lt;/i&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;postFilteringStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;enabled&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;candidatesPostFiltering&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;llm_filter&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompt&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Below is an excerpt of text followed by a question. You must determine if the excerpt is relevant or irrelevant for answering the question.\nRespond only with: [RELEVANT] o [IGNORABLE]\n\nExcerpt:\n{extract}\n\nQuestion:\n{query}\n\n\n&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;h3 id=&#34;8-response-generation&#34;&gt;8. Response generation&lt;/h3&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/constructors/zoom-rag-responsegeneration.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;Stage for the generation of the response based on the retrieved context. This last stage is ideal for adjusting response behavior (e.g., multi-language, tone, etc.).&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Related parameters in preset&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/rag-responsegeneration-params.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/details&gt;
&lt;br&gt;
&lt;p&gt;When the RAG pipeline flow reaches the response generation stage (&lt;code&gt;generativeStg&lt;/code&gt;), there are two options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If relevant text blocks have been achieved in the previous stage, then:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;By default, the prompt &lt;code&gt;stuff&lt;/code&gt; is used to formulate answers with the retrieved context.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If no relevant text blocks have been found in the previous stage, then:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;By default, the prompt &lt;code&gt;notAnswerResponse&lt;/code&gt; is used to formulate the response when the question cannot be answer&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The above-mentioned prompts by default are included here. If you want to modify them, take the default ones as a reference and make your updates.&lt;/p&gt;
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Default prompt for response generation stage&lt;/i&gt;&lt;/b&gt; &lt;i&gt;(Use as template for prompt customization)&lt;/i&gt;&lt;/summary&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;...&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;generativeStg&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#a40000&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;prompts&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;stuff&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;system&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Respond in language {user_query_language}. \n\nQuestion:\n{question}\n&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                              &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;user_query_language&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;#.auto.language.user_query&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                              &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;human&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;You are going to generate an answer for a user question or query. \nTo generate the answer, take always into account all the information available in the context provided.\n\nContext:\n{context}\n\nQuestion:\n{question}\n\nNever include information by your own using your own knowledge.\n{extra_prompt}\n&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;notAnswerResponse&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;text&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;You are a question answering agent. You have tried to answer this question: {query} \nHowever you do not have information to answer this.\nPlease, tell the user that you are not able to answer, apologize and invite the user to make other question.\nAvoid any harmful answer, such as sexual, rude, sexist or racist.\nRespond in language {user_query_language}.\n\nUser question:\n{query}\n&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                      &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;args&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;&amp;#34;user_query_language&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;#.auto.language.user_query&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                        &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;br&gt;
&lt;h2 id=&#34;b--define-advanced-configuration-for-your-preset&#34;&gt;b.  Define advanced configuration for your preset&lt;/h2&gt;
&lt;p&gt;In addition to the basic parameters for use cases constructors, presets also include other advanced fields that can also be configured but require greater technical expertise.&lt;/p&gt;
&lt;p&gt;Discover them here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#prompts&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; default configuration: prompts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;Create and configure a preset&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/import-documents/&#34;&gt;Import documents into &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/</guid>
      <description>
        
        
        &lt;h1 id=&#34;configure-your-experience-using-generativerag&#34;&gt;Configure your experience using Generative/RAG&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Instructions and best practices for configuring experiences in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; using its Generative AI or RAG (Retrieval-Augmented Generation) capabilities&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(34, 150, 65);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:rgb(34, 150, 65)&#34;&gt; &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;overall-process-workflow&#34;&gt;Overall process workflow&lt;/h2&gt;
&lt;p&gt;The current section shows the sequence of required tasks for building a use case in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, whether using Generative AI or Retrieval-Augmented Generation (RAG) capabilities.&lt;/p&gt;
&lt;p&gt;Check the specific step of your interest and click on the corresponding block to access the corresponding comprehensive guidelines.
&lt;br&gt;&lt;/p&gt;
&lt;pre class=&#34;mermaid&#34;&gt;---
config:
  theme: base
  look: neo
  layout: dagre
---
flowchart LR
 subgraph s1[&amp;#34;Design preset configuration&amp;#34;]
        n1[&amp;#34;Generative AI&amp;#34;]
        n2[&amp;#34;RAG&amp;#34;]
  end
    s1 --&amp;gt; B{&amp;#34;Is it a &amp;lt;br&amp;gt;new preset?&amp;#34;}
    B -- Yes --&amp;gt; D[&amp;#34;Create &amp;lt;br&amp;gt;a new preset&amp;#34;]
    B -- No --&amp;gt; E[&amp;#34;Update an &amp;lt;br&amp;gt;existing preset&amp;#34;]
    D --&amp;gt; F{&amp;#34;Already &amp;lt;br&amp;gt;existing &amp;lt;br&amp;gt;application?&amp;#34;}
    F -- Yes --&amp;gt; G[&amp;#34;Add preset &amp;lt;br&amp;gt;to an existing &amp;lt;br&amp;gt;application&amp;#34;]
    F -- No --&amp;gt; H[&amp;#34;Create &amp;lt;br&amp;gt;an application&amp;#34;]
    H --&amp;gt; G
    style n1 fill:#FFFFFF
    style n2 fill:#FFFFFF
    style s1 fill:#d5dade
    style B fill:#FFF9C4
    style D fill:#d5dade
    style E fill:#d5dade
    style F fill:#FFF9C4
    style G fill:#d5dade
    style H fill:#d5dade
    style H fill:#d5dade&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Design preset configuration&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-generative/&#34;&gt;Generative AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-rag/&#34;&gt;RAG&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#1-create-a-new-preset&#34;&gt;Create a new preset&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#2-update-an-existing-preset&#34;&gt;Update an existing preset&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#3-create-an-application&#34;&gt;Create an application&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/#4-add-a-preset-to-an-existing-application&#34;&gt;Add preset to an existing application&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/atria-constructors-guidelines/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/atria-constructors-guidelines/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-atria-use-cases-constructors&#34;&gt;Guidelines for ATRIA use cases constructors&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Do you want to configure an experience in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; using its AI-driven capabilities? Follow this step-by-step guide&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(34, 150, 65);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:rgb(34, 150, 65)&#34;&gt; &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;scope&#34;&gt;Scope&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; foundations are based on technical components and processes involving different teams with varying levels of technical expertise.&lt;/p&gt;
&lt;p&gt;With the specific goal of supporting &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; &lt;strong&gt;use cases constructors&lt;/strong&gt;, the current documents aim to describe the main procedures for creating experiences in a practical and simplified way.&lt;/p&gt;
&lt;h2 id=&#34;navigate-through-the-section&#34;&gt;Navigate through the section&lt;/h2&gt;
&lt;div class=&#34;td-card-group card-group p-0 mb-4&#34;&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Understand key ATRIA concepts&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
Before getting started, get familiar with the &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; core components required to build your experience&lt;br&gt;&lt;br&gt;  
&lt;i class=&#34;fa-solid fa-square-caret-right&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/&#34;&gt;ATRIA key concepts&lt;/a&gt;&lt;br&gt;

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Configure your experience using Generative/RAG&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
It&#39;s time to design and configure your experience using &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; key components&lt;br&gt;&lt;br&gt;  
&lt;i class=&#34;fa-solid fa-square-caret-right&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/#overall-process-workflow&#34;&gt;Overall process workflow&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-caret-right&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-generative/&#34;&gt;Design preset configuration: Generative &lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-caret-right&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-rag/&#34;&gt;Design preset configuration: RAG &lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-caret-right&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/&#34;&gt;Calls to API &lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/calls-to-api/</guid>
      <description>
        
        
        &lt;h1 id=&#34;calls-to-api&#34;&gt;Calls to API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; How to make different calls to the API in the process for creating an experience in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(34, 150, 65);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:rgb(34, 150, 65)&#34;&gt; &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Once your preset configuration is designed, whether for &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-generative/&#34;&gt;Generative AI&lt;/a&gt; or &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/configure-experience-generative-rag/design-preset-configuration-rag/&#34;&gt;RAG&lt;/a&gt;, you can proceed to use the API to continue with the process of creating experiences in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; The current document includes a specific procedure for calling APIs. You can access more detailed technical content in this document: &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;Create and configure a preset&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; These prerequisites are &lt;strong&gt;common for all the tasks included in the following sections&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Download the &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/aura-configuration-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; API swagger&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make sure you have available Postman or a similar tool to call the API.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Connect to the intended environment for your preset, by modifying the corresponding &lt;code&gt;{{baseUrl}}&lt;/code&gt; and &lt;code&gt;{{apiKey}}&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;1-create-a-new-preset&#34;&gt;1. Create a new preset&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Postman application and select the &lt;code&gt;POST&lt;/code&gt; call:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; presets &amp;gt; Adds a new preset&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy and paste the content of your configured preset (JSON file) in the body.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Send the &lt;code&gt;POST&lt;/code&gt; request.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;1000&#34; height=&#34;1000&#34; src=&#34;../../images/atria/constructors/preset-api-post-request.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h2 id=&#34;2-update-an-existing-preset&#34;&gt;2. Update an existing preset&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Do you have your preset on hand?&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;No: Go to step 2.&lt;/li&gt;
&lt;li&gt;Yes: Go directly to step 3.
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Access your intended preset: &lt;br&gt;
2.1. Open the Postman application.&lt;br&gt;
2.2. Make a &lt;code&gt;GET&lt;/code&gt; request to the API with the preset ID.&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; presets &amp;gt; {presetId} &amp;gt; Gets all the info associated to one preset&lt;/code&gt;  &lt;br&gt;
This will show you the entire preset to be updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-get-all-info-preset.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;
&lt;p&gt;Select the &lt;code&gt;PATCH&lt;/code&gt; call:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; presets &amp;gt; {presetId} &amp;gt; Updates some info associated to one preset&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy and paste the content of your preset (JSON file) with the required updates in the &lt;code&gt;body&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/preset-api-patch1.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;5&#34;&gt;
&lt;li&gt;Copy and paste the ID of the preset in the &lt;code&gt;params&lt;/code&gt; field.&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/preset-api-patch2.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;6&#34;&gt;
&lt;li&gt;Send the &lt;code&gt;PATCH&lt;/code&gt; request.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;3-create-an-application&#34;&gt;3. Create an application&lt;/h2&gt;
&lt;p&gt;Once your preset is created, it must be placed on an &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/key-concepts/#application&#34;&gt;application&lt;/a&gt; to be used by an experience.&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; An application must always contain at least one preset, it cannot be empty.
&lt;br&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Configure the application JSON file&lt;/p&gt;
&lt;p&gt;1.1. Copy the application template below.
&lt;details close&gt;
&lt;summary style=&#34;color: green;&#34;&gt;&lt;b&gt;&lt;i&gt;Application template&lt;/i&gt;&lt;/b&gt;&lt;/summary&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;   ```json
     {
         &amp;quot;brand&amp;quot;: &amp;quot;10000&amp;quot;,
         &amp;quot;id&amp;quot;: &amp;quot;816bdab6-3ea3-4a77-bdea-12945d6d7052&amp;quot;,
         &amp;quot;models&amp;quot;: {
             &amp;quot;level&amp;quot;: &amp;quot;user&amp;quot;,
             &amp;quot;presets&amp;quot;: [
                 &amp;quot;19c58923-6fc5-4459-8f9e-822af2136ab1&amp;quot;
             ]
         },
         &amp;quot;name&amp;quot;: &amp;quot;app&amp;quot;
     }    
   ```
&lt;/code&gt;&lt;/pre&gt;
   &lt;/details&gt;
 &lt;br&gt;
 1.2. Modify the template below as required by defining the following fields:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;brand&lt;/code&gt;: Identifier of the Telefónica Brand associated to the application. Available values in the document &lt;a href=&#34;../../docs/components/aura-configuration-api/brands-management/&#34;&gt;Telefónica brands management&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;: Unique identifier of the application in &lt;a href=&#34;https://www.uuidgenerator.net/&#34;&gt;UUID format&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt;: Unique application name.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;1.3. Include the required presets in your application (&lt;code&gt;presets&lt;/code&gt; field in the application template above)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the Postman application and select the &lt;code&gt;POST&lt;/code&gt; call:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; applications &amp;gt; Adds a new application&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy and paste the content of your new application (JSON file) in the body.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Send the &lt;code&gt;POST&lt;/code&gt; request.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;1000&#34; height=&#34;1000&#34; src=&#34;../../images/atria/constructors/application-api-post-request.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h2 id=&#34;4-add-a-preset-to-an-existing-application&#34;&gt;4. Add a preset to an existing application&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Do you have your application on hand?&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;No: Go to step 2.&lt;/li&gt;
&lt;li&gt;Yes: Go directly to step 3.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Access your intended application&lt;br&gt;
2.1. Open Postman.&lt;br&gt;
2.2. Make a &lt;code&gt;GET&lt;/code&gt; request to the API with the application ID:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; applications &amp;gt; {applicationId} &amp;gt; Gets all the info associated to one application&lt;/code&gt;&lt;br&gt;
This will show you the entire application to be updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-get-all-info-application.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;
&lt;p&gt;Select the &lt;code&gt;PATCH&lt;/code&gt; call:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; applications &amp;gt; {applicationId} &amp;gt; Updates some info associated to one application&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy and paste the content of your application (JSON file) in the &lt;code&gt;body&lt;/code&gt;and add the preset ID to be associated to the application.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/application-api-patch2.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;5&#34;&gt;
&lt;li&gt;Copy and paste the ID of the application in the &lt;code&gt;params&lt;/code&gt; field.&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/application-api-patch1.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ol start=&#34;6&#34;&gt;
&lt;li&gt;Send the &lt;code&gt;PATCH&lt;/code&gt; request.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;5-get-info-about-available-presetsapplications&#34;&gt;5. Get info about available presets/applications&lt;/h2&gt;
&lt;p&gt;If you need to know which presets or applications are available in your environment, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open Postman and select the following &lt;code&gt;GET&lt;/code&gt; calls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For presets:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; presets &amp;gt; Gets all presets info&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For applications:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; applications &amp;gt; Gets all application info&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In order to view all the parameters related to presets or applications, deselect the options &lt;code&gt;excludeParams&lt;/code&gt; and &lt;code&gt;includeParams&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Send the corresponding &lt;code&gt;GET&lt;/code&gt; request.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-list-available-presets.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-list-available-applications.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h2 id=&#34;6-delete-a-presetapplication&#34;&gt;6. Delete a preset/application&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open Postman and select the following &lt;code&gt;DELETE&lt;/code&gt; calls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For presets:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; presets &amp;gt; {presetId} &amp;gt; Delete one preset&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For applications:&lt;br&gt;
&lt;code&gt;aura-services &amp;gt; v2 &amp;gt; configuration &amp;gt; applications &amp;gt; {applicationId} &amp;gt; Delete one application&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Send the corresponding &lt;code&gt;DELETE&lt;/code&gt; request.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-delete-preset.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/atria/constructors/api-delete-application.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
