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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Definition and role of &lt;strong&gt;applications&lt;/strong&gt; in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Within &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&amp;rsquo;s framework, an application is defined as an entity that allows the connection of a channel, service or skill with &lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, the component in charge of managing the access to the different &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;750&#34; height=&#34;750&#34; src=&#34;../../images/atria/atria-application.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;ATRIA application&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;As a preliminary step for leveraging any &lt;a href=&#34;../../docs/atria/capabilities/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven capability&lt;/a&gt;, the use case constructor must configure an application, including different parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To indicate which specific &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities are utilized in the use case.&lt;br&gt;
In this framework, applications supported by &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; can be classified as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Applications that make use only of the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/&#34;&gt;&lt;strong&gt;NLP as a Service&lt;/strong&gt; capabilities&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Applications that use &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;&lt;strong&gt;Generative&lt;/strong&gt; capabilities&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Applications that use &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;&lt;strong&gt;RAG&lt;/strong&gt; capabilities&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The difference between Generative and RAG capabilities relies solely on the definition of the preset that is associated. But the same application can make use of one, several or all of these capabilities, combining their configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once the capabilities are selected, to set the required fields for its operation&lt;/p&gt;
&lt;p&gt;For example, if we want to use Generative AI for the use case resolution, firstly, certain parameters must be set corresponding to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Establishing admin accesses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Setting the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;presets&lt;/a&gt; that the application can use, that is, the instructions to work with the AI model, that will be defined in the application configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;how-to-configure-an-application&#34;&gt;How to configure an application&lt;/h2&gt;
&lt;p&gt;An &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; application must be configured with specific parameters. For this purpose, follow the guidelines &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;Configure an application in &lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/a&gt;, using the specific parameters for the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven technology to be used.&lt;/p&gt;
&lt;h2 id=&#34;example-of-application&#34;&gt;Example of application&lt;/h2&gt;
&lt;p&gt;This is a example of an application that makes use of NLPaaS, Generative and RAG capabilities:&lt;/p&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;8832550f-f03c-4e18-bdbe-7c6fc7adf5ff&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;app&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;disabled&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;false&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;brand&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;0401&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;nlp&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;channelId&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;1234&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;models&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;level&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;user&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;presets&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:#4e9a06&#34;&gt;&amp;#34;atria-rag-gpt-4&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;generative-preset&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;applications-model&#34;&gt;Applications model&lt;/h2&gt;
&lt;h5 id=&#34;common-fields&#34;&gt;Common fields&lt;/h5&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field name&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Unique application identifier. UUID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;name&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Unique application name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;brand&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Identifier of the Telefónica Brand associated to the application. &lt;br&gt; 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;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;disabled&lt;/td&gt;
&lt;td&gt;boolean&lt;/td&gt;
&lt;td&gt;Boolean value to enable or disable the application.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h5 id=&#34;nlpaas-fields&#34;&gt;NLPaaS fields&lt;/h5&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field name&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;nlp.channelId&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Channel identifier used to call NLP&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h5 id=&#34;generativerag-fields&#34;&gt;Generative/RAG fields&lt;/h5&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field name&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;models.level&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;It indicates the level application in &lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, meaning that it has specific access and control privileges. Default value &lt;code&gt;user&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;models.presets&lt;/td&gt;
&lt;td&gt;string[]&lt;/td&gt;
&lt;td&gt;It indicates all the available &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; &lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway/#presets&#34;&gt;&lt;strong&gt;presets&lt;/strong&gt;&lt;/a&gt; that the application can use. &lt;br&gt; - Check the list of &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#presets-by-default&#34;&gt;available presets by default&lt;/a&gt;  &lt;br&gt; - Learn here &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;how to add a new preset or modify one&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/building-experiences/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/building-experiences/</guid>
      <description>
        
        
        &lt;h1 id=&#34;build-end-to-end-experiences-in-atria&#34;&gt;Build end-to-end experiences in ATRIA&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&amp;ldquo;How to&amp;rdquo; workflows that schematically shows the orderly steps required to build end-to-end experiences using &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/technical-complex-3.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In order to leverage the available &lt;a href=&#34;../../docs/atria/capabilities&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities&lt;/a&gt; within a use case development, specific technical tasks must be performed by different Aura teams.&lt;/p&gt;
&lt;p&gt;The current document provides a &lt;strong&gt;schematic overview of the end-to-end workflow&lt;/strong&gt; and links to the corresponding technical guidelines tailored to each team responsible for specific aspects of the project.&lt;/p&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;  &lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/generative-ai-journey/&#34;&gt;Build experiences that call Generative AI&lt;/a&gt;&lt;/p&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;  &lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/general-rag-journey/&#34;&gt;Build experiences that use General RAG&lt;/a&gt;&lt;/p&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;   &lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/nlp-apps-journey/&#34;&gt;Build experiences that call NLP Apps&lt;/a&gt;&lt;/p&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;   &lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/semantic-search-journey/&#34;&gt;Build experiences that call Semantic Search&lt;/a&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/building-experiences/generative-ai-journey/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/building-experiences/generative-ai-journey/</guid>
      <description>
        
        
        &lt;h1 id=&#34;build-experiences-that-call-generative-ai&#34;&gt;Build experiences that call Generative AI&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Workflow with the main stages to build an end-to-end experience that calls an OpenAI GPT model&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI in Aura&lt;/a&gt; benefits from the auto-generative capabilities of &lt;strong&gt;Azure OpenAI GPT models&lt;/strong&gt; for an accurate understanding of requests and the generation of highly reliable answers.&lt;/p&gt;
&lt;h2 id=&#34;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;a. Prerequisites: Install and enable&lt;/strong&gt;&lt;/p&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;Enable ATRIA components in Aura installer&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
Check that the required components are enabled. If not:&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#enable-generative-components&#34;&gt;Enable Generative components&lt;/a&gt;&lt;br&gt; 
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#enable-atria-model-gateway&#34;&gt;Enable &lt;i&gt;atria-model-gateway&lt;/i&gt;&lt;/a&gt;&lt;br&gt; 
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#enable-aura-manager&#34;&gt;Enable &lt;i&gt;aura-manager&lt;/i&gt; (&lt;i&gt;ATRIA&lt;/i&gt; web interface)&lt;/a&gt; 
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Publish &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; in &lt;strong&gt;Kernel&lt;/strong&gt;&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team / Kernel DevOps Team
&lt;br&gt;&lt;br&gt;
Is &lt;i&gt;aura-gateway-api&lt;/i&gt; published in &lt;i&gt;Kernel&lt;/i&gt;? If not: &lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/kernel-api-publication/&#34;&gt;Publish the &lt;i&gt;aura-gateway-api&lt;/i&gt; API in Kernel&lt;/a&gt; as a prerequisite to call this API
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Get a &lt;strong&gt;Kernel&lt;/strong&gt; token&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt;&lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
Check if your Kernel token has already expired. If so:&lt;br&gt;    
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/get-accesstoken/&#34;&gt;Get a valid Kernel two-legged token&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
}

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;b. Build experience&lt;/strong&gt;&lt;/p&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;Configure, build and test your experience with Generative/RAG&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/atria-constructors-guidelines/&#34;&gt; Guidelines for ATRIA uses cases constructors &lt;/a&gt; 

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/components/technologies-used/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/components/technologies-used/</guid>
      <description>
        
        
        &lt;h1 id=&#34;core-technologies-in-aura&#34;&gt;Core technologies in Aura&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;DRAFT DOCUMENT&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This document summarizes the &lt;strong&gt;core technologies&lt;/strong&gt; used in both &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, that support their different functionalities and services&lt;/p&gt;
&lt;p&gt;Other technologies used for specific issues are referenced in the corresponding documentation&lt;/p&gt;

&lt;/div&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;h4&gt;Aura deployment&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-rocket&#34;&gt;&lt;/i&gt; Aura is deployed in &lt;a href=&#34;https://azure.microsoft.com/en-us/&#34;&gt;Microsoft Azure&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-rocket&#34;&gt;&lt;/i&gt; Components packaging is done using &lt;a href=&#34;https://www.docker.com/&#34;&gt;Docker&lt;/a&gt; &lt;br&gt;
&lt;i class=&#34;fa-solid fa-rocket&#34;&gt;&lt;/i&gt; Deployment is hosted on &lt;a href=&#34;https://kubernetes.io/&#34;&gt;Azure Kubernetes&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-rocket&#34;&gt;&lt;/i&gt; Deployment is orchestrated using &lt;a href=&#34;https://www.ansible.com/&#34;&gt;Ansible&lt;/a&gt;&lt;br&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;h4&gt;Security and privacy&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-lock&#34;&gt;&lt;/i&gt; Aura ensures compliance with &lt;a href=&#34;https://gdpr-info.eu/&#34;&gt;GDPR regulations&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-lock&#34;&gt;&lt;/i&gt; Aura installer relies in &lt;b&gt;Python security practices&lt;/b&gt;&lt;br&gt; 
&lt;i class=&#34;fa-solid fa-lock&#34;&gt;&lt;/i&gt; The use of &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview&#34;&gt;ARM templates&lt;/a&gt; enhance security of our Azure resources
&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;h4&gt;Operational foundations&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fab fa-windows&#34;&gt;&lt;/i&gt; Aura Virtual Assistant is based on &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/bot-service/skills-conceptual?view=azure-bot-service-4.0&#34;&gt;Microsoft Bot skills architecture&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fab fa-windows&#34;&gt;&lt;/i&gt; Aura Bot is built over &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-basics?view=azure-bot-service-4.0&#34;&gt;Microsoft BotFramework&lt;/a&gt;&lt;br&gt;
&lt;br/&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&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;h4&gt;Data management&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-database&#34;&gt;&lt;/i&gt; We use &lt;a href=&#34;https://www.mongodb.com/&#34;&gt;MongoDB&lt;/a&gt; and &lt;a href=&#34;https://redis.io/&#34;&gt;Redis&lt;/a&gt; as service databases &lt;br&gt;
&lt;i class=&#34;fa-solid fa-database&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://www.databricks.com/&#34;&gt;Databricks&lt;/a&gt; handles the optimization of data processing&lt;br&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;h4&gt;Languages&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-code&#34;&gt;&lt;/i&gt; Aura backend is developed using &lt;a href=&#34;https://www.typescriptlang.org/&#34;&gt;Typescript&lt;/a&gt; and &lt;a href=&#34;https://www.python.org/&#34;&gt;Python&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-code&#34;&gt;&lt;/i&gt; iOS development is based on &lt;a href=&#34;https://developer.apple.com/swift/&#34;&gt;Swift&lt;/a&gt;  &lt;br&gt;
&lt;i class=&#34;fa-solid fa-code&#34;&gt;&lt;/i&gt; Certain scripts are made with &lt;a href=&#34;https://www.gnu.org/software/bash/&#34;&gt;Bash&lt;/a&gt; &lt;br&gt;
&lt;i class=&#34;fa-solid fa-code&#34;&gt;&lt;/i&gt; ATRIA aura-manager web interface is built with &lt;a href=&#34;https://react.dev/&#34;&gt;React and &lt;a href=&#34;https://www.typescriptlang.org/&#34;&gt;Typescript&lt;/a&gt;&lt;br&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;h4&gt;Monitoring tools&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-chart-line&#34;&gt;&lt;/i&gt; Aura metrics are generated in &lt;a href=&#34;https://prometheus.io/&#34;&gt;Prometheus&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-chart-line&#34;&gt;&lt;/i&gt; Aura monitoring stack includes &lt;a href=&#34;https://www.elastic.co/elasticsearch&#34;&gt;Elasticsearch&lt;/a&gt;, &lt;a href=&#34;https://grafana.com/&#34;&gt;Grafana&lt;/a&gt; and &lt;a href=&#34;https://www.elastic.co/kibana&#34;&gt;Kibana&lt;/a&gt; &lt;br&gt;
&lt;br/&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&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;h4&gt;Testing tools&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
Functional tests implemented in Python using: &lt;br&gt; &lt;i class=&#34;fa-solid fa-check-to-slot&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://github.com/Telefonica/toolium&#34;&gt;Toolium&lt;/a&gt; &lt;br&gt; &lt;i class=&#34;fa-solid fa-check-to-slot&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://behave.readthedocs.io/&#34;&gt;Behave&lt;/a&gt; &lt;br&gt; &lt;i class=&#34;fa-solid fa-check-to-slot&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://selenium-python.readthedocs.io/&#34;&gt;Selenium&lt;/a&gt; &lt;br&gt; &lt;i class=&#34;fa-solid fa-check-to-slot&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://appium.io/&#34;&gt;Appium&lt;/a&gt;&lt;br&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;h4&gt;AI-driven technologies&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-brain&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions&#34;&gt; Azure OpenAI: Embeddings, GPT models &lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-brain&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://huggingface.co/models&#34;&gt; Hugging Face models &lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-brain&#34;&gt;&lt;/i&gt; &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/language-service/conversational-language-understanding/&#34;&gt; Microsoft Conversational Language Understanding (CLU)  &lt;/a&gt;&lt;br&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;h4&gt;Releases management&lt;/h4&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-code-branch&#34;&gt;&lt;/i&gt; We apply the Release Train Manager methodology&lt;br&gt;
&lt;i class=&#34;fa-solid fa-code-branch&#34;&gt;&lt;/i&gt; Github &lt;a href=&#34;https://github.com/Telefonica&#34;&gt; is used as the orchestrator for the RTM&lt;/a&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-code-branch&#34;&gt;&lt;/i&gt; All our CI processes run in &lt;a href=&#34;https://www.jenkins.io/&#34;&gt;Jenkins&lt;/a&gt; &lt;br&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/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent/</guid>
      <description>
        
        
        &lt;h1 id=&#34;create-and-configure-an-agent&#34;&gt;Create and configure an agent&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the configuration of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; by use cases constructors when developing an experience by means of an &lt;strong&gt;agent&lt;/strong&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p style=&#34;background:rgb(225, 237, 245); color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; An &lt;b&gt;agent&lt;/b&gt; is a configuration entity in &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; that represents an integration point for external channels, services, or platforms. &lt;/p&gt;
&lt;p&gt;Agents are referenced by &lt;em&gt;&lt;strong&gt;applications&lt;/strong&gt;&lt;/em&gt; to enable channel or service connectivity within the platform.&lt;/p&gt;
&lt;h2 id=&#34;guidelines-to-configure-an-agent&#34;&gt;Guidelines to configure an agent&lt;/h2&gt;
&lt;h3 id=&#34;1-create-a-new-agent&#34;&gt;1. Create a new agent&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Build the agent for your use case (json file), using the available &lt;a href=&#34;#agent-fields&#34;&gt;agent fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent json file is generated, execute this command to include it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request POST &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data-raw &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;NEW AGENT JSON&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;11-modifyupdate-an-agent&#34;&gt;1.1. Modify/update an agent&lt;/h4&gt;
&lt;p&gt;If once created, certain modifications are required, follow these instructions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Make the required changes in the agent json file using the available &lt;a href=&#34;#agent-fields&#34;&gt;agent fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent is modified, execute this command to update it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request PUT &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;lt;agentID&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;AGENT JSON WITH MODIFICATIONS&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;12-delete-an-agent&#34;&gt;1.2. Delete an agent&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Execute the following command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request DELETE &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;lt;agentId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-include-the-agent-in-the-application&#34;&gt;2. Include the agent in the application&lt;/h3&gt;
&lt;p&gt;If the application for your use case does not exist, first create it following the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;guidelines for the configuration of an application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once the application is created, assign the created agent in the field &lt;code&gt;agents&lt;/code&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; If you update or delete an agent, ensure that any application referencing it is also updated accordingly.&lt;br&gt;
&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; Remember that agents must exist to be inserted in an application.&lt;/p&gt;
&lt;p&gt;Example to update the list of agents in an application:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request PATCH &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v1/applications/&amp;lt;applicationId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;id&amp;#34;: &amp;#34;&amp;lt;applicationId&amp;gt;&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;agents&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;&amp;lt;agentId1&amp;gt;&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;&amp;lt;agentId2&amp;gt;&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;    ]
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;agent-fields&#34;&gt;Agent fields&lt;/h2&gt;
&lt;p&gt;The fields for the characterization of an agent are summarized below, as defined in the API swagger &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/agent/&#34;&gt;Aura Configuration ATRIA Agents&lt;/a&gt;:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Unique identifier (UUID) for the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Name that uniquely identifies the agent in Aura.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Description of the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;communication&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Parameters for the configuration of the communication flow. See &lt;a href=&#34;#communication-configuration-communication&#34;&gt;communication configuration&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;agentBase&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Configuration of the &lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent-base/&#34;&gt;agent base&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;deploymentName&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Name of the deployment where the agent is running. &lt;br&gt;&lt;b&gt;If the &lt;code&gt;endpoint&lt;/code&gt; field is not present in &lt;code&gt;communication&lt;/code&gt;, this field will be used to compose the &lt;code&gt;endpoint&lt;/code&gt; field  to the agent. Both fields are incompatible. &lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Document metadata (version, createdAt, updatedAt, etc). See &lt;a href=&#34;#metadata-metadata&#34;&gt;metadata&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;communication-configuration-communication&#34;&gt;Communication configuration (&lt;code&gt;communication&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;communicationType&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Type of communication. Only &lt;code&gt;http&lt;/code&gt; is currently supported.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;endpoint&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;HTTP endpoint where the agent listens.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;headers&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;HTTP headers associated with the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;timeout&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;number&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Timeout for agent communication.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;retries&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;number&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Number of retries for communication.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;agent-base-agentbase&#34;&gt;Agent base (&lt;code&gt;agentBase&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The name that identifies the agent base univocally in Aura.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;configuration&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;The configuration of the agent flow.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;metadata-metadata&#34;&gt;Metadata (&lt;code&gt;metadata&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Configuration version when the document was created.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;createdAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Creation date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;updatedAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Last update date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;example-minimal-agent-configuration&#34;&gt;Example: Minimal agent configuration&lt;/h2&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;b1e2c3d4-5678-1234-9abc-def012345678&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;example-agent&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;communication&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;communicationType&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;http&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;endpoint&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;https://agent.example.com/webhook&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;example-full-agent-configuration&#34;&gt;Example: Full agent configuration&lt;/h2&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;1870fa4a-bcc4-4a7c-88fc-c0194555a076&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;device-recommender-agent&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;communication&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;communicationType&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;http&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:#204a87;font-weight:bold&#34;&gt;&amp;#34;deploymentName&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;mongo-device-recommender-agent&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;An AI agent built with langgraph that provides personalized recommendations about devices by querying and analyzing data stored in a MongoDB database.&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;agentBase&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;device-recommender-agent&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;configuration&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;conversational_agent&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;conversational_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:#4e9a06&#34;&gt;&amp;#34;Adopt the role of Aura&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_params&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;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.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:#204a87;font-weight:bold&#34;&gt;&amp;#34;model_str&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;model_gw/gpt-4o-mini&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;mongo_agent&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;database_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;mongo-recommender&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;limit_query_result&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;10&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_params&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;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.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:#204a87;font-weight:bold&#34;&gt;&amp;#34;model_str&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;model_gw/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:#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;metadata&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;createdAt&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;2025-07-11T09:54:33.973Z&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;updatedAt&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;2025-07-11T09:54:33.973Z&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;version&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;10.3.0&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, and &lt;code&gt;communication&lt;/code&gt; fields are mandatory.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;communicationType&lt;/code&gt; must be &lt;code&gt;http&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If an agent is deleted, applications referencing it will be updated.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent-base/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent-base/</guid>
      <description>
        
        
        &lt;h1 id=&#34;create-and-configure-an-agent-base&#34;&gt;Create and configure an agent base&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the configuration of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; by use cases constructors when developing an experience by means of an &lt;strong&gt;agent&lt;/strong&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p style=&#34;background:rgb(225, 237, 245); color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; An &lt;b&gt;agent-base&lt;/b&gt; is a configuration entity in &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; that represents an implementation code for an agent. &lt;/p&gt;
&lt;p&gt;Agents base are referenced by &lt;em&gt;&lt;strong&gt;agents&lt;/strong&gt;&lt;/em&gt; to deploy the configuration of the agent.&lt;/p&gt;
&lt;h2 id=&#34;guidelines-to-configure-an-agent-base&#34;&gt;Guidelines to configure an agent-base&lt;/h2&gt;
&lt;h3 id=&#34;1-create-a-new-agent-base&#34;&gt;1. Create a new agent-base&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Build the agent-base for your use case (json file), using the available &lt;a href=&#34;#agent-base-fields&#34;&gt;agent base fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent-base json file is generated, execute this command to include it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request POST &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents-base/&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data-raw &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;NEW AGENT BASE JSON&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;11-modifyupdate-an-agent-base&#34;&gt;1.1. Modify/update an agent-base&lt;/h4&gt;
&lt;p&gt;If once created, certain modifications are required, follow these instructions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Make the required changes in the agent-base json file using the available &lt;a href=&#34;#agent-base-fields&#34;&gt;agent base fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent-base is modified, execute this command to update it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request PUT &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents-base/&amp;lt;agentBaseId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;AGENT BASE JSON WITH MODIFICATIONS&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;12-delete-an-agent-base&#34;&gt;1.2. Delete an agent-base&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Execute the following command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request DELETE &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents-base/&amp;lt;agentBaseId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-include-the-agent-base-in-the-agent&#34;&gt;2. Include the agent-base in the agent&lt;/h3&gt;
&lt;p&gt;Create the agents configuration, indicating de &lt;code&gt;agentBase.name&lt;/code&gt;, as explained in the document &lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent-base&#34;&gt;guidelines for the configuration of an agent&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;agent-base-fields&#34;&gt;Agent base fields&lt;/h2&gt;
&lt;p&gt;The fields for the characterization of an agent-base are summarized below, as defined in the API swagger &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/agent-base/&#34;&gt;Aura Configuration ATRIA Agents Base&lt;/a&gt;:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Unique identifier (UUID) for the agent-base.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Name that uniquely identifies the agent-base.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Description of the agent-base.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;language&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Language type that the agent base is associated with. Currently, python.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tags&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;array&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Tags that the agent base is associated with.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Version of the agent base.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Document metadata (version, createdAt, updatedAt, etc). See &lt;a href=&#34;#metadata-metadata&#34;&gt;metadata&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;metadata-metadata&#34;&gt;Metadata (&lt;code&gt;metadata&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Configuration version when the document was created.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;createdAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Creation date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;updatedAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Last update date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;example-agent-base-configuration&#34;&gt;Example: agent-base configuration&lt;/h2&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;cd2b534c-16c3-4d89-a87e-ec45d3939232&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;agent-base-test&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;An AI agent built with langgraph that provides personalized recommendations about devices by querying and analyzing data stored in a MongoDB database.&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;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;python&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;version&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;1.0.0&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, and &lt;code&gt;language&lt;/code&gt; fields are mandatory.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;language&lt;/code&gt; must be &lt;code&gt;python&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

      </description>
    </item>
    
    <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/capabilities/llm-experiences-builder/generative-ai/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/llm-experiences-builder/generative-ai/</guid>
      <description>
        
        
        &lt;h1 id=&#34;generative-ai-capability&#34;&gt;Generative AI capability&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Overview of the &lt;strong&gt;Generative AI&lt;/strong&gt; capability, encompassing the underlying technology, its application in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; and the benefits derived from its use&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction-to-generative-ai&#34;&gt;Introduction to Generative AI&lt;/h2&gt;
&lt;h4 id=&#34;what-is-generative-ai&#34;&gt;What is Generative AI?&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;Generative Artificial Intelligence&lt;/strong&gt; is a subset of Machine Learning that focuses on the creation of new content, such as text, images, or music, based on patterns learned from large volumes of data.&lt;/p&gt;
&lt;p&gt;This technology has advanced significantly in recent years, fueled by the development of Deep Learning models that can understand and replicate complex data structures.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/generative-ai-tech.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 10. Generative AI technology&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;Below are the main steps in how Generative AI works:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Training&lt;/strong&gt;: The model is fed with extensive datasets containing examples of the target content, allowing the system to identify patterns, structures and relationships among different elements.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Instruction input&lt;/strong&gt;: The user provides an instruction or &amp;ldquo;prompt,&amp;rdquo; which can be a question, a topic, or any indication of what is expected from the model output.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Content generation&lt;/strong&gt;: Based on the information obtained during training, the model applies complex algorithms to generate a relevant and coherent response or new content aligned with the user&amp;rsquo;s request.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Response delivery&lt;/strong&gt;: The model presents the generated output to the user quickly and efficiently. It can be a text, an image, or any other type of content.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Within Generative AI, the &lt;strong&gt;Large Language Models (LLMs)&lt;/strong&gt; are advanced AI models designed to understand and generate human-like text, typically trained on vast amounts of text data, enabling them to predict and produce coherent and appropriate text. They are the ones integrated into &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;h4 id=&#34;benefits-and-limitations&#34;&gt;Benefits and limitations&lt;/h4&gt;
&lt;p&gt;The &lt;strong&gt;main benefits&lt;/strong&gt; from the use of Generative AI are summarized below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Creativity and Originality: Generative AI generates new and original content that can inspire creators.&lt;/li&gt;
&lt;li&gt;Efficiency: Generative AI automates content generation tasks, allowing humans to focus on more complex activities.&lt;/li&gt;
&lt;li&gt;Personalization: Generative AI generated content is tailored to the specific needs of users.&lt;/li&gt;
&lt;li&gt;Access to information: Generative AI provides quick answers to complex questions thanks to its extensive access to data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Despite these advantages, Generative AI has certain &lt;strong&gt;limitations&lt;/strong&gt; that led &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; to integrate other complementary technologies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hallucinations: Generative AI can generate inaccurate responses that seem plausible, leading to misinformation.&lt;/li&gt;
&lt;li&gt;Temporal Limitations: Generative AI models are limited to the information available at the time of their last training, meaning they cannot access real-time or recent data updates.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;application-of-generative-ai-in-atria&#34;&gt;Application of Generative AI in ATRIA&lt;/h2&gt;
&lt;p&gt;Generative AI is a key &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capability provided by a predefined chain designed with the &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/&#34;&gt;LLM/LMM Experiences Builder&lt;/a&gt;.&lt;/p&gt;
&lt;p style=&#34;background: #e2f8ff; color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; &lt;b&gt;ATRIA&lt;/b&gt; enables the &lt;b&gt;generation of experiences (use cases)&lt;/b&gt; to resolve users&#39; requests expressed in natural language by supporting &lt;b&gt;simple calls to AI models&lt;/b&gt;.&lt;br&gt; This is done through an easy integration of advanced &lt;b&gt;Generative AI technologies&lt;/b&gt; while guaranteeing &lt;b&gt;security and privacy in interactions&lt;/b&gt;.  &lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/atria-generativeai-intro.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 11. Generative AI in ATRIA&lt;/i&gt;
&lt;/p&gt;
&lt;p style=&#34;background: #f8f3e2; color: #0a0800; font-weight: normal; padding: 15px;&#34;&gt;
&lt;i class=&#34;fa-solid fa-utensils fa-xl&#34; style=&#34;color: #0a0800;&#34;&gt;&lt;/i&gt; &lt;b&gt;Example case&lt;/b&gt;&lt;br&gt;&lt;br&gt;
Imagine that our platform, &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt;, operates like a &lt;u&gt;restaurant with different chefs&lt;/u&gt;, each specialized in a unique approach to meeting customers&#39; needs.&lt;br&gt;&lt;br&gt;
A &lt;b&gt;traditional generative model&lt;/b&gt; can be compared to Chef Manuel, a chef who spent several years &lt;u&gt;mastering in traditional Spanish cuisine&lt;/u&gt;.&lt;br&gt;&lt;br&gt;
Manuel’s expertise encompasses a wide range of recipes and cooking techniques, but &lt;u&gt;some of his knowledge may be outdated since he hasn’t pursued further training in recent years&lt;/u&gt;.&lt;br&gt;&lt;br&gt;  When a customer requests for a nutritious and hearty meal, Manuel &lt;u&gt;relies solely on his internal knowledge&lt;/u&gt; to prepare a classic dish: lentils with vegetables. He does not need to search for additional information because &lt;u&gt;his prior expertise is sufficient to offer a consistent and reliable answer&lt;/u&gt;.&lt;br&gt;&lt;br&gt;
A &lt;b&gt;traditional generative model&lt;/b&gt; operates like Manuel, &lt;b&gt;generating responses based solely on the implicit knowledge learned during the model&#39;s training, without consulting external sources.&lt;/b&gt; &lt;/p&gt;
&lt;h4 id=&#34;interaction-with-atria-generative-ai&#34;&gt;Interaction with ATRIA Generative AI&lt;/h4&gt;
&lt;p&gt;This service is &lt;strong&gt;accessible via API&lt;/strong&gt;, enabling its consumption both from Aura Platform and any external application.&lt;/p&gt;
&lt;h4 id=&#34;current-available-models&#34;&gt;Current available models&lt;/h4&gt;
&lt;p&gt;The AI-driven models currently integrated into &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; are included &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/#models-currently-integrated-into-atria&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;functional-overview&#34;&gt;Functional overview&lt;/h4&gt;
&lt;p&gt;The use of this capability encompasses different stages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;When a user sends a request to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, it is sent to an &lt;strong&gt;auto-generative content generator&lt;/strong&gt;, the one that best aligns with the use case considering different factors such as latencies, costs, etc.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Additionally, specific &lt;strong&gt;instructions&lt;/strong&gt; upon which the model must base its response are also included. These instructions can be configured to meet specific channel-level business and experience requirements but, at the same time, to ensure that the provided responses retain the nuances of tone and personality that characterize Aura.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In addition, ATRIA provides a &lt;strong&gt;layer of security to avoid prompt injection&lt;/strong&gt;, that is, to prevent misuse by third-party services that can create malicious prompts as inputs and cause the model to act in unintended ways.&lt;br&gt;
For example, it can prevent a user from modifying the instructions on how the system should behave or the invalidation of instructions from a predefined block of the prompt (Aura personality), if contradictory instructions are given.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Generative AI model recognizes the request and generates the most appropriate response for it. This response is sent back to the user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;benefits-from-the-use-of-generative-ai-in-atria&#34;&gt;Benefits from the use of Generative AI in ATRIA&lt;/h2&gt;
&lt;p&gt;There are clear benefits derived from the integration of Generative AI in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Benefits for constructors&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It streamlines the use cases development process, since there is no need to generate specific responses or undergo specific trainings.&lt;/li&gt;
&lt;li&gt;Other types of experiences, not directly related to Aura, can be generated. For example: data analysis tasks, development of new products, etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Benefits for end-users&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Our customers’ satisfaction will increase, as Aura can offer enhanced understanding capabilities.&lt;/li&gt;
&lt;li&gt;Aura can incorporate new areas of interest for users in a more agile manner and explore new types of users for whom to develop services based on natural language recognition technologies.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; interactions guarantee security and privacy for our users.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;generative-feedback-functionality&#34;&gt;Generative feedback functionality&lt;/h2&gt;
&lt;p&gt;When testing how Generative AI/RAG capabilities work with the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface &lt;a href=&#34;../../docs/atria/technical-guidelines/atria-web-interface/&#34;&gt;aura-manager&lt;/a&gt;, it is possible to use the &lt;a href=&#34;../../docs/atria/capabilities/generative-feedback-functional-overview/&#34;&gt;&lt;strong&gt;feedback functionality&lt;/strong&gt;&lt;/a&gt; to estimate the user&amp;rsquo;s satisfaction regarding the quality and appropriateness of the generated answer to her request. This can be done easily by clicking the thumbs-up or thumbs-down icons.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/introduction/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/introduction/</guid>
      <description>
        
        
        &lt;h1 id=&#34;introduction-to-atria&#34;&gt;Introduction to ATRIA&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Discover in this document the &lt;strong&gt;fundamentals&lt;/strong&gt; and &lt;strong&gt;advantages&lt;/strong&gt; of &lt;em&gt;&lt;strong&gt;ATRIA (Artificial Trusted Intelligence by Aura)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/technical-complex-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;what-is-atria&#34;&gt;What is ATRIA?&lt;/h2&gt;
&lt;p&gt;The world of &lt;strong&gt;Artificial Intelligence (AI)&lt;/strong&gt; is revolutionizing virtual assistants by integrating advanced AI-based algorithms to understand, anticipate and respond to the users’ needs.&lt;/p&gt;
&lt;p style=&#34;background: #e2f8ff; color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt;In this framework, &lt;b&gt;ATRIA&lt;/b&gt; is a platform that integrates &lt;b&gt;multiple AI technologies&lt;/b&gt;, both proprietary and third-party ones, enabling &lt;b&gt;products and services&lt;/b&gt; to &lt;b&gt;build experiences flexibly&lt;/b&gt;, leveraging the advanced functionalities of AI in a &lt;b&gt;secure and controlled manner&lt;/b&gt;.
&lt;p align=&#34;center&#34;&gt; 
  &lt;img width=&#34;600&#34; height=&#34;600&#34; src=&#34;../../images/atria/atria-intro.png&#34;&gt;&lt;br&gt; 
  &lt;i&gt;Figure 1. What is ATRIA?&lt;/i&gt; 
&lt;/p&gt; 
&lt;p&gt;The innovative solution of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; as a platform that integrates different AI technologies empowers our users to effortlessly incorporate advanced capabilities based on Artificial Intelligence into their products or services.&lt;/p&gt;
&lt;p&gt;This can be done in an efficient and secure way through &lt;strong&gt;AI-driven capabilities&lt;/strong&gt; included in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; that are accessible via &lt;strong&gt;APIs exposed in Kernel&lt;/strong&gt;, the Telefónica digital ecosystem, which is founded on the principle of maintaining privacy and security.&lt;/p&gt;
&lt;h2 id=&#34;key-atria-features&#34;&gt;Key ATRIA features&lt;/h2&gt;
&lt;p&gt;The design of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; provides the following main features:&lt;/p&gt;
&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;b&gt;ATRIA features &lt;/b&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;AI services aggregator&lt;/b&gt;, as our platform allows a seamless integration of &lt;a href=&#34;../../docs/atria/capabilities/&#34;&gt; AI-powered technologies for language detection&lt;/a&gt; &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;Natural language interactions&lt;/b&gt;, as &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; supports an easy and intuitive communication with its users &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;&lt;a href=&#34;../../docs/atria/capabilities/multibrand-overview/&#34;&gt; Multi-brand&lt;/a&gt;&lt;/b&gt;, as within an OB, it can be accessible through diverse brands, each of them with different channels and use cases   &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;&lt;a href=&#34;../../docs/atria/capabilities/multilanguage-overview/&#34;&gt; Multi-language RAG pipeline&lt;/a&gt;&lt;/b&gt;, enabling the automated detection of the language of each request and delivering the most relevant response in the same language if the RAG capability is used &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; enables &lt;b&gt;&lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/#data-persistence-feature&#34;&gt; data persistence in knowledge bases across releases&lt;/a&gt;&lt;/b&gt;, ensuring that all existing data remains fully available and accessible for every &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; experience independently of the deployed version.&lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;Privacy and security&lt;/b&gt;, as &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; is accessible through APIs exposed in &lt;b&gt;Kernel&lt;/b&gt;, providing robust protection for data and user information &lt;br&gt;&lt;br&gt;

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;h2 id=&#34;atria-functional-overview&#34;&gt;ATRIA functional overview&lt;/h2&gt;
&lt;p&gt;The following diagram shows how &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; operates and its communication flow at a high level:&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt; 
  &lt;img width=&#34;600&#34; height=&#34;600&#34; src=&#34;../../images/atria/atria-zoom1.png&#34;&gt;&lt;br&gt; 
  &lt;i&gt;Figure 2. ATRIA overview&lt;/i&gt; 
&lt;/p&gt; 
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The user accesses &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; through one of the brands that the OB uses to commercialize its services and sends a request.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;First, the request passes through &lt;strong&gt;Kernel&lt;/strong&gt; (Telefónica Digital Ecosystem) for authentication and security purposes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; derives the input information to the corresponding AI-driven capability to be used, previously set in configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The capability uses the specific AI technology to generate the most relevant response, which is provided back to the user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;atria-benefits&#34;&gt;ATRIA benefits&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;ATRIA&lt;/strong&gt; platform provides key advantages from the use of its AI-powered capabilities, both for constructors and end users, which are summarized below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Innovation and integration&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; facilitates an easy and straightforward integration of AI technologies, powered by our in-house team of experts dedicated to continuous research and implementation of innovations in AI and prompt engineering.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Accuracy&lt;/strong&gt;&lt;br&gt;
Leveraging advanced AI capabilities,  &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; delivers precise and coherent responses that align closely with user&amp;rsquo;s requests, enhancing satisfaction and fostering greater interaction.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Security in interactions&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; guarantees security against malicious attacks aiming to change the purpose of AI and, additionally, provides mechanisms that ensure privacy and prevent access to, or leakage of, sensitive data from the system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Compatibility with Kernel&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; is compatible with &lt;strong&gt;Telefónica Kernel&lt;/strong&gt;, the technological service that integrates data and APIs from Telefónica services, assuring efficiency, as well as data privacy and control.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Ethical and responsible AI&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; preserves the ethical uses of AI by not allowing misuse by individuals or systems, implementing control mechanisms in requests and verifying AI responses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Efficiency and time saving&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; automates tasks, enabling users to complete actions more efficiently. This leads to significant time savings as routine and time-consuming activities can be handled seamlessly.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Explore the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; the essential components constructors need to understand in order to build experiences with &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven 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;preset&#34;&gt;Preset&lt;/h2&gt;
&lt;p&gt;The preset is the key entity for the &lt;strong&gt;configuration&lt;/strong&gt; of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;. It is like a recipe for your experience, that defines which ingredients to use and in what amounts.&lt;/p&gt;
&lt;p&gt;Technically, the preset is a &lt;strong&gt;JSON file&lt;/strong&gt; that defines a hierarchy of both required and optional configuration parameters for the use case configuration.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;500&#34; height=&#34;500&#34; src=&#34;../../images/atria/constructors/atria-preset.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;ATRIA preset&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;Once the constructors have defined a preset, it &lt;strong&gt;must be included in an &lt;a href=&#34;#application&#34;&gt;application&lt;/a&gt;&lt;/strong&gt; to be used by &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;h2 id=&#34;prompt&#34;&gt;Prompt&lt;/h2&gt;
&lt;p&gt;Within an &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; preset, a prompt is defined as an &lt;strong&gt;input instruction&lt;/strong&gt; given to an AI model to generate a response. It guides the AI in the required kind of output we want as constructors.&lt;/p&gt;
&lt;h2 id=&#34;application&#34;&gt;Application&lt;/h2&gt;
&lt;p&gt;From the constructor&amp;rsquo;s point of view, an application can be defined as a &lt;strong&gt;container for &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; presets&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;When developing a use case, constructors should use an existing application or create a new one in order to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Define the specific &lt;a href=&#34;../../docs/atria/capabilities/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities&lt;/a&gt; that can be used, currently Generative AI, RAG, NLP as a Service and Semantic Search.&lt;/li&gt;
&lt;li&gt;Declare the &lt;strong&gt;presets&lt;/strong&gt; that this application can use.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;highlights&#34;&gt;Highlights&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Every preset and application is identified by both a name and an ID.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To be used and tested, a preset must be placed inside an application (folder).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Nested applications are not allowed. The hierarchy is: &lt;em&gt;application → preset&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An application can contain one or more presets.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A single preset can belong to multiple applications. When you update the preset, it will be updated in all applications it is associated with.&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/atria-application-presets.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Definition of presets in an application&lt;/i&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Each environment can be considered as an independent container of applications and presets. Consequently, if you update a preset in one environment, another preset with the same ID  will not be updated in a different environment.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;access-technical-documentation&#34;&gt;Access technical documentation&lt;/h2&gt;
&lt;p&gt;Do you need more technical information regarding ATRIA components? Access here:&lt;br&gt;&lt;/p&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; &lt;a href=&#34;../../docs/atria/technical-components/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical components&lt;/a&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/capabilities/nlp-aas/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/nlp-aas/</guid>
      <description>
        
        
        &lt;h1 id=&#34;nlp-as-a-service&#34;&gt;NLP as a Service&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Discover &lt;strong&gt;NLP as a Service&lt;/strong&gt;, the &lt;strong&gt;AI-driven functionality&lt;/strong&gt; for seamless language recognition and integration based on Natural Language Processing technologies &lt;br&gt; &lt;br&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction-to-nlp-technologies&#34;&gt;Introduction to NLP technologies&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Natural language processing (NLP)&lt;/strong&gt; refers to the branch of AI concerned with giving computers the ability to process, understand and generate human language. NLP combines computational linguistics (rule-based modelling of human language) with statistical, machine learning and deep learning models to bridge the communication gap between humans and machines.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;300&#34; height=&#34;300&#34; src=&#34;../../images/atria/nlp-tech.png&#34;&gt;&lt;br&gt; 
  &lt;i&gt;Figure 4. NLP technologies&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;NLP encompasses a wide spectrum of technologies designed to be integrated into diverse user experiences. It includes deterministic and probabilistic techniques, syntax and semantics methods, named entity recognition (NER), etc.&lt;/p&gt;
&lt;p&gt;Nowadays, the use of NLP in virtual assistants is not limited to understand and respond to simple utterances but also to &lt;strong&gt;derive meaning and use data behind user queries&lt;/strong&gt;, allowing them to provide relevant and precise responses resulting in more accurate and natural interactions through different NLP technologies.&lt;/p&gt;
&lt;h2 id=&#34;application-of-nlp-as-a-service-in-atria&#34;&gt;Application of NLP as a Service in ATRIA&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;NLP as a Service&lt;/strong&gt; enables the use of different technologies through &lt;strong&gt;NLP Apps&lt;/strong&gt; (Natural Language Processing recognition stages) for understanding users&amp;rsquo; requests and providing back accurate responses.&lt;/p&gt;
&lt;p&gt;Currently, these technologies, both proprietary and third-party ones, are included in the &lt;a href=&#34;../../docs/components/aura-nlp/&#34;&gt;&lt;strong&gt;Aura NLP component&lt;/strong&gt;&lt;/a&gt; but, in future releases, external NLP methods will be used.&lt;/p&gt;
&lt;p&gt;In this framework, constructors have two approaches depending on the utilized stages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Using &lt;strong&gt;NLP Apps&lt;/strong&gt; (NLP recognition stages) different from Semantic Search&lt;br&gt;
&lt;i class=&#34;fa-regular fa-file-lines fa-xl&#34; style=&#34;color: #0d5de7;&#34;&gt;&lt;/i&gt; Find here detailed information regarding &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps&#34;&gt;NLP Apps capability&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Using  &lt;strong&gt;Semantic Search&lt;/strong&gt; technology, a specific NLP App that overcomes traditional keyword-based searches through the use of &lt;strong&gt;embeddings&lt;/strong&gt;.&lt;br&gt;
&lt;i class=&#34;fa-regular fa-file-lines fa-xl&#34; style=&#34;color: #0d5de7;&#34;&gt;&lt;/i&gt; Find here detailed information regarding &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/semantic-search/&#34;&gt;Semantic search functionality&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/atria-nlpaas-intro.png&#34;&gt;&lt;br&gt;
&lt;i&gt;Figure 5. NLP as a Service in ATRIA&lt;/i&gt;
&lt;/p&gt;
&lt;h2 id=&#34;benefits-from-the-use-of-nlp-as-a-service&#34;&gt;Benefits from the use of NLP as a Service&lt;/h2&gt;
&lt;p&gt;NLP as a Service offers several benefits both for constructors and end-users:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Benefits for use cases constructors&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Less time and complexity of use cases development&lt;/li&gt;
&lt;li&gt;It is possible to create and configure tailored NLP pipelines, choosing from a variety of available stages and connectors that cover different aspects of Natural Language Processing.&lt;/li&gt;
&lt;li&gt;No need for the manual generation of training phrases (aliases) for generic questions knowledge bases.&lt;/li&gt;
&lt;li&gt;Knowledge bases can be updated continuously in an easy and quick way.&lt;/li&gt;
&lt;li&gt;Accessibility: any application, both internal and external to Aura Platform, can consume this service.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Benefits for Aura end users&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;End-users can interact with Aura in a natural and conversational way, using their own words and expressions and even informal language, slang, abbreviations, misspellings, etc.&lt;/li&gt;
&lt;li&gt;Improved Aura’s understanding capabilities, leading to fast and reliable responses and results.&lt;/li&gt;
&lt;li&gt;Easy update of the knowledge bases, so the users can receive reliable responses based on up-to-date data.&lt;/li&gt;
&lt;li&gt;The NLP service can be leveraged as capabilities offered to end-users or as internal features used by other Telefonica teams in order to streamline specific internal processes.&lt;/li&gt;
&lt;/ul&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Discover the &lt;strong&gt;AI-driven functionalities&lt;/strong&gt; that the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; platform put at your disposal for the generation of experiences.
They are primarily focused on improving the understanding of human language and, consequently, providing highly reliable responses to the user in a secure and controlled manner.&lt;/p&gt;
&lt;p&gt;Additionally, access documentation regarding available &lt;strong&gt;key &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; features&lt;/strong&gt;.&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/technical-complex-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;atria-ai-driven-functionalities&#34;&gt;ATRIA AI-driven functionalities&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; is conceived as an AI technologies aggregator and currently includes key capabilities, based both on proprietary and third-party technologies.&lt;/p&gt;
&lt;p&gt;The current capabilities and AI technologies in this first &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; are shown in the following figure and introduced below.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt; 
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/atria-capabilities.png&#34;&gt;&lt;br&gt; 
  &lt;i&gt;Figure 3. ATRIA capabilities&lt;/i&gt; 
&lt;/p&gt; 
&lt;h3 id=&#34;nlp-as-a-service&#34;&gt;NLP as a Service&lt;/h3&gt;
&lt;p&gt;NLP as a Service enables the connection with &lt;strong&gt;Aura cognitive services&lt;/strong&gt; to leverage different NLP technologies via API for understanding users’ requests and providing accurate responses.&lt;/p&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; Find detailed information regarding &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/&#34;&gt;NLP as a Service&lt;/a&gt; or access directly to its associated capabilities:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps/&#34;&gt;NLP Apps&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/semantic-search/&#34;&gt;Semantic Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;llmlmm-experiences-builder&#34;&gt;LLM/LMM Experiences Builder&lt;/h3&gt;
&lt;p&gt;The LLM/LMM Experiences Builder allows &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; to integrate third-party AI technologies via API to create interactive, personalized, and dynamic user interactions while establishing control mechanisms to ensure security and data privacy.&lt;/p&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; Find detailed information regarding the &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/&#34;&gt;LLM/LMM Experiences Builder&lt;/a&gt; or access directly to its associated capabilities:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;atria-features&#34;&gt;ATRIA features&lt;/h2&gt;
&lt;p&gt;Additionally, &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; contains key features focused on improving the generation of experiences, that allow advanced customization options and adaptability to user preferences.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/multibrand-overview/&#34;&gt;Multibrand feature&lt;/a&gt;: Users can access &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; through the different Telefónica brands available in their country.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/capabilities/multilanguage-overview/&#34;&gt;Multi-language feature&lt;/a&gt;: &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; RAG includes a multi-language feature, to deliver service to a global audience in multiple languages, as it automatically detects the input language and provides the response accordingly.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-components/aura-gateway-api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-components/aura-gateway-api/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-gateway-api&#34;&gt;Aura Gateway API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Descriptive technical documentation regarding &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;, an &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; component that provides an interface to expose different capabilities&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; is a server in charge of the access to the different AI cognitive capabilities provided by &lt;a href=&#34;../../docs/atria&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A channel, service or skill can send a request through an &lt;em&gt;&lt;strong&gt;application&lt;/strong&gt;&lt;/em&gt; (entity that enables the communication with &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;). After passing through &lt;strong&gt;Kernel&lt;/strong&gt; for authentication and security purposes, &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; sends this request to the corresponding AI-driven technology for providing the most accurate response.&lt;/p&gt;
&lt;p&gt;Currently, &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; enables the access to &lt;a href=&#34;../../docs/atria/capabilities&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;associated-documentation&#34;&gt;Associated documentation&lt;/h2&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; Descriptive technical documentation regarding &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/components/&#34;&gt;Architecture and components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/operational-overview/&#34;&gt;Operational overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/environment-variables/&#34;&gt;Environment variables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/api-definition/&#34;&gt;Aura Gateway API definition&lt;/a&gt; and &lt;a href=&#34;https://github.com/Telefonica/aura-services-api/tree/master/packages/aura-gateway-api&#34;&gt;Aura Gateway API Codebase&lt;/a&gt;&lt;/li&gt;
&lt;/ul&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; Guidelines for working with &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; for the development of experiences, depending on the specific &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capability:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/&#34;&gt;Technical guidelines&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/applications-configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/applications-configuration/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-the-configuration-of-an-application&#34;&gt;Guidelines for the configuration of an application&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Comprehensive instructions for the configuration of an &lt;em&gt;&lt;strong&gt;application&lt;/strong&gt;&lt;/em&gt; to communicate with &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Prior to the development of a use case that needs &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; to connect with an external service, the configuration of an &lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;application&lt;/a&gt; is required to set the specific parameters of the &lt;a href=&#34;../../docs/atria/capabilities&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven capability&lt;/a&gt; to be used.&lt;/p&gt;
&lt;p&gt;Additionally, if certain changes must be made on an existing application through a hot swapping process, follow the guidelines &lt;a href=&#34;../../docs/atria/technical-guidelines/hot-swapping-application/#hot-swapping-of-aura-applications-configuration&#34;&gt;Hot swapping of Aura applications configuration&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;guidelines-to-create-and-configure-an-application&#34;&gt;Guidelines to create and configure an application&lt;/h2&gt;
&lt;p&gt;The creation of an application requires the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a task for the configuration of an application in &lt;strong&gt;JIRA&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the tables below and paste them into the &lt;strong&gt;JIRA&lt;/strong&gt; task.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fill in all the fields corresponding to your &lt;a href=&#34;../../docs/atria/capabilities/&#34;&gt;specific &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capability&lt;/a&gt; in the table&amp;rsquo;s column &lt;strong&gt;&amp;ldquo;Value in app&amp;rdquo;&lt;/strong&gt;.&lt;br&gt;
&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; &lt;em&gt;&lt;strong&gt;Do not modify the content of the remaining columns aside from &amp;ldquo;Value in app&amp;rdquo;.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The application must be available in the &lt;strong&gt;applications list&lt;/strong&gt; of the environment, which is available through the &lt;a href=&#34;../../docs/components/aura-configuration-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; server.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The edited sheet will serve as the basis for the subsequent validation of the application by Aura Global Team and its uploading to the system.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Mandatory parameters: &lt;strong&gt;parameter_name&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Optional parameters: parameter_name&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;application-basic-data&#34;&gt;Application basic data&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;Definition&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Value in app&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;disabled&lt;/td&gt;
&lt;td&gt;Boolean value to enable &lt;br&gt;or disable the application. &lt;br&gt; By default: &lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Boolean&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt; complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;id&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unique application identifier&lt;/td&gt;
&lt;td&gt;UUID&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt; complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unique application name&lt;/td&gt;
&lt;td&gt;String&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt; complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;brand&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Identifier of the Telefónica Brand associated to the application. &lt;br&gt; 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;/td&gt;
&lt;td&gt;String&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt; complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;nlp&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Parameters to use the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/&#34;&gt;NLP as a Service capability&lt;/a&gt; &lt;br&gt; &lt;strong&gt;Mandatory for using this capability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;Go to &lt;a href=&#34;#using-nlp-as-a-service-nlp-parameter&#34;&gt;&lt;strong&gt;NLP as a Service section&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;models&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Parameters to use the &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI capability&lt;/a&gt; or &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG capability&lt;/a&gt; &lt;br&gt; &lt;strong&gt;Mandatory for using these capabilities&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;Go to &lt;a href=&#34;#using-generative-ai--rag-models-parameter&#34;&gt;&lt;strong&gt;Using Generative AI / RAG section&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;agents&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Identifiers of the agents associated with the application. &lt;br&gt; &lt;b&gt;Mandatory if the application requires integration with agents.&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;String[]&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt;complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;using-nlp-as-a-service-nlp-parameter&#34;&gt;Using NLP as a Service: &lt;em&gt;&lt;strong&gt;nlp&lt;/strong&gt;&lt;/em&gt; parameter&lt;/h3&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 use of the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/&#34;&gt;NLP as a Service capability&lt;/a&gt; by a channel requires the previous registration of the channel in Aura using the &lt;span style=&#34;color:blue&#34;&gt;&lt;i&gt;&lt;a href=&#34;../../docs/developers-workspace/channels-management/channels-registration/&#34;&gt;channels registration template&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;Definition&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Value in app&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;channelId&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Identifier of the channel &lt;br&gt; willing to use &lt;br&gt; NLP as a Service&lt;/td&gt;
&lt;td&gt;String&lt;/td&gt;
&lt;td&gt;&lt;span style=&#34;color:red&#34;&gt;&lt;i&gt;complete&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;using-generative-ai--rag-models-parameter&#34;&gt;Using Generative AI / RAG: &lt;em&gt;&lt;strong&gt;models&lt;/strong&gt;&lt;/em&gt; parameter&lt;/h3&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 use of &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI&lt;/a&gt; or &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG&lt;/a&gt; capabilities by applications requires the definition of the following parameters:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Parameter&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Definition&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;level&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;. It indicates if level application in &lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, meaning that it has specific access and control privileges. &lt;br&gt; . Default value &lt;code&gt;user&lt;/code&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;String&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;presets&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;. Include here all the presets (configurable entities that define the instructions to work with the AI model for the resolution of a use case) that will be assigned to this application. &lt;br&gt; . For this purpose, follow the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#2-include-the-preset-in-the-application&#34;&gt;guidelines to include a preset in the application&lt;/a&gt;&lt;br&gt; . &lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; Take into account that &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#1-create-a-new-preset&#34;&gt;a preset must be previously created in ATRIA&lt;/a&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;String[]&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/configuration/modify-atria-configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/configuration/modify-atria-configuration/</guid>
      <description>
        
        
        &lt;h1 id=&#34;create-and-configure-a-preset&#34;&gt;Create and configure a preset&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the configuration of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; by use cases constructors when developing an experience by means of a &lt;strong&gt;preset&lt;/strong&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; This guidelines correspond to a specific stage in the processes for building experiences using Generative AI or RAG, which are fully explained in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/generative-ai-journey/&#34;&gt;Build experiences using Generative AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/general-rag-journey/&#34;&gt;Build experiences using RAG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p style=&#34;background:rgb(225, 237, 245); color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; A &lt;b&gt;preset&lt;/b&gt; is a configurable entity that defines the instructions to work with the AI model for the resolution of a use case.
&lt;/a&gt;
&lt;p&gt;These instructions include, apart from other parameters, the &lt;strong&gt;prompt&lt;/strong&gt; with text to guide the AI model with the generation of the response. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;Maintain the formal tone of the original text&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;If the previous conversation is relevant for the current query, incorporate it into the query and produce a rewritten query&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When developing an experience in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, use cases constructors must configure a preset for the specific &lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; application&lt;/a&gt; to be used.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors can use the currently available default presets or they can modify them or create new ones via API.&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; In both scenarios, a further step is required to &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#2-include-the-preset-in-the-application&#34;&gt;include the preset in the application&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;guidelines-to-configure-a-preset&#34;&gt;Guidelines to configure a preset&lt;/h2&gt;
&lt;h3 id=&#34;1-create-a-new-preset&#34;&gt;1. Create a new preset&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Build the preset for your use case (json file), using the available &lt;a href=&#34;#preset-fields&#34;&gt;preset fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Do you get lost with all the preset configuration parameters? In &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-config-best-practices/&#34;&gt;best practices for &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration&lt;/a&gt;, you can find the most commonly used parameters by experiences constructors grouped by their purpose (&amp;ldquo;I want to increase security&amp;rdquo;, &amp;ldquo;I want to activate the multi-language feature&amp;rdquo;, etc.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the preset json file is generated, execute this command to include it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  curl --location --request POST &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/presets/&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --data-raw &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;NEW PRESET JSON&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;11-modifyupdate-a-preset&#34;&gt;1.1. Modify/update a preset&lt;/h4&gt;
&lt;p&gt;If once created, certain modifications are required, follow these instructions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Make the required changes in the preset json file using the available &lt;a href=&#34;#preset-fields&#34;&gt;preset fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the preset is modified, execute this command to include it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  curl --location --request PUT &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/presets/&amp;lt;presetID&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;PRESET JSON WITH MODIFICATIONS&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;12-delete-a-preset&#34;&gt;1.2. Delete a preset&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Execute the following command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  curl --location --request DELETE &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/presets/&amp;lt;presetId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-include-the-preset-in-the-application&#34;&gt;2. Include the preset in the application&lt;/h3&gt;
&lt;p&gt;An &lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;application&lt;/a&gt; is defined as an entity that allows the connection of a channel, service or skill with with &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;If the application for your use case does not exist, firstly it is required to create it following the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;guidelines for the configuration of an application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once the application is created, assign the created preset. Two scenarios arise here:&lt;/p&gt;
&lt;h4 id=&#34;21-if-an-existing-preset-is-modified&#34;&gt;2.1. If an existing preset is modified&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Get the list of presets assigned to the application to be used from &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  curl --location &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/applications/&amp;lt;applicationID&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY &amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check if your preset is already included in the list and, consequently, associated to your application.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If not, declare the created preset in the application following the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/#using-generative-ai--rag-models-parameter&#34;&gt;guidelines for the configuration of an application: Use Generative AI/RAG&lt;/a&gt;, within the field &lt;code&gt;presets&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;22-if-a-new-preset-is-created&#34;&gt;2.2. If a new preset is created&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Update &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; to indicate to the &lt;strong&gt;application&lt;/strong&gt; the complete list of presets to be used.&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; It is necessary to include the &lt;strong&gt;entire list of presets&lt;/strong&gt; associated to the application (the existing presets and the created/modified ones)&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    curl --location --request PATCH &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v1/applications/:applicationId&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;id&amp;#34;: &amp;#34;&amp;lt;applicationId&amp;gt;&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;models&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;level&amp;#34;: &amp;lt;levelType&amp;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;presets&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;lt;complete-new-list-of-presets&amp;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;            ]
&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;        }
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;level&lt;/code&gt; field, that indicates the different levels of access to the application, can only be changed By the Global Team.
This command is a specific scenario in the process of modifying API configuration, described in the document &lt;a href=&#34;../../docs/atria/technical-guidelines/hot-swapping-application/#hot-swapping-of-aura-applications-configuration&#34;&gt;Hot swapping of Aura applications configuration&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Declare the created preset in the application following the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/#using-generative-ai--rag-models-parameter&#34;&gt;guidelines for the configuration of an application: Use Generative AI/RAG&lt;/a&gt;, within the field &lt;code&gt;presets&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;preset-fields&#34;&gt;Preset fields&lt;/h2&gt;
&lt;p&gt;The fields for the characterization of a preset are summarized below, which are defined in the API swagger &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/preset/&#34;&gt;Aura Configuration API Preset&lt;/a&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; If there is any discrepancy between the parameters definitions included in this document and those in the API swagger, definitions established in the API shall prevail.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;id&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Preset identifier. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;name&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Preset name. If this value does not exist, &lt;code&gt;id&lt;/code&gt; is used. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;description&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Optional&lt;/em&gt;. Preset description. If this value does not exist, &lt;code&gt;id&lt;/code&gt; is used. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;group&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. This parameter is used to group requests regarding the AI technologies used to generate KPIs. The type is &lt;code&gt;string&lt;/code&gt;. Feasible values: &lt;code&gt;simple_ai&lt;/code&gt; (Generative AI preset) and &lt;code&gt;enriched_ai&lt;/code&gt; (RAG preset).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;session&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Optional&lt;/em&gt;. Parameters for session configuration.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;window&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. The size of the session window, in queries. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;timeout&lt;/code&gt;:  &lt;em&gt;Optional&lt;/em&gt;. The time in seconds after which the session will be closed if no queries are received. If it is 0, the session history will be used, but the current interaction will not be saved. The type is &lt;code&gt;number&lt;/code&gt;.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;generative&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Mandatory&lt;/em&gt; if Generative AI is used. It indicates the use of Generative AI in the use case. If this field exists, the &lt;code&gt;rag&lt;/code&gt; field must not exist.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;model&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Model configuration.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Unique identifier of the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#models-by-default&#34;&gt;model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;parameters&lt;/code&gt;. &lt;em&gt;Optional&lt;/em&gt;. Dictionary with all possible parameters for the model. For generative, check them &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/reference&#34;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;injectionMaxLength&lt;/code&gt;. &lt;em&gt;Optional&lt;/em&gt;. Maximum length of the input user. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;prompts&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Parameters to define the prompts with instructions used as input by the AI model to automatically generate responses.&lt;br&gt;
. The object may include properties such as text, additional parameters, and specific configurations to control the behavior of the generative model.&lt;br&gt;
. If no prompt is defined, the resolution of the use case is entirely delegated to the LLM model.&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&amp;rsquo;s input. It must include &lt;code&gt;{MSG}&lt;/code&gt; for the user&amp;rsquo;s utterance. This will override (or add, if not defined) the template for the user message, as defined in the preset (Note: templates allow framing the user message to mitigate prompt injection attacks). The type is &lt;code&gt;string&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;preamble&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. List of phrases to be included in the model prompt.&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.  The type is &lt;code&gt;string&lt;/code&gt;.&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.&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. The type is &lt;code&gt;number&lt;/code&gt;.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;rag&lt;/code&gt;&lt;/strong&gt;: &lt;em&gt;Mandatory&lt;/em&gt; if RAG technology is used. It indicates the RAG configuration. If this field exists, the &lt;code&gt;generative&lt;/code&gt; field must not exist.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ragType&lt;/code&gt;: Optional. RAG type. Values: &lt;code&gt;questions-answers&lt;/code&gt; (by default) or &lt;code&gt;sql&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;model&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Parameters for the configuration of the RAG model.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;:  &lt;em&gt;Mandatory&lt;/em&gt;. Unique identifier of the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#models-by-default&#34;&gt;model&lt;/a&gt; to be used. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;parameters&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Dictionary with all the possible parameters for the model.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;references&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Configuration for managing references in the system. It control de number of references the system relies on to generate a response.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;maximum&lt;/code&gt;:  &lt;em&gt;Optional&lt;/em&gt;. Maximum number of returned references. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;baseUrl&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Base URL of references that will be shown to the user as part of the response. For the types of data &lt;code&gt;unstructured&lt;/code&gt;, &lt;code&gt;csv&lt;/code&gt;and &lt;code&gt;text&lt;/code&gt; (defined in the field &lt;code&gt;loaderType&lt;/code&gt;), it is required to add here the path to the public URL to be shown in the response as a clickable reference.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;stages&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Stages of the RAG model.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;promptSystemLanguage&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Parameter to select a specific language from the ones defined in the prompt. Type: &lt;code&gt;string&lt;/code&gt; in ISO 639-3 format. For example: &lt;code&gt;es&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;defaultUserLanguage&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Parameter used in multi-language feature. It indicates the default response language to be used if the system is not able to automatically recognize the language. Type: string in ISO 639-3 format. For example: &lt;code&gt;es&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;securityStg&lt;/code&gt;: Stage with parameters related to security used to avoid prompt injection.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;injectionMaxLength&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Maximum length of the input user. If length is greater, an error is sent. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;heuristics&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Heuristics configuration.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;es&lt;/code&gt;: List of heuristic sentences in Spanish. The type is &lt;code&gt;list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;en&lt;/code&gt;: List of heuristic sentences in English. The type is &lt;code&gt;list&lt;/code&gt;.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;translationStg&lt;/code&gt;: Stage used to translate the prompt.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;enabled&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Boolean value to activate or not the translation stage. The type is &lt;code&gt;boolean&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;language&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Two-letter ISO 639-1 language code into which user input is translated to match the language of the data. The type is &lt;code&gt;string&lt;/code&gt;. If this field exists, the &lt;code&gt;prompts&lt;/code&gt; field must not exist.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prompt&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. List of prompts to be used in the LLM call.&lt;br&gt;
. The type is &lt;code&gt;PromptLanguage&lt;/code&gt;.&lt;br&gt;
. If this field exists, the &lt;code&gt;language&lt;/code&gt; field must not exist.&lt;br&gt;
. If this field is empty, the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#translationstg&#34;&gt;default prompt for this stage&lt;/a&gt; will be used.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;contextStg&lt;/code&gt;: Stage used to know if the user&amp;rsquo;s phrase has the same context of the conversation.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;enabled&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Boolean value to activate or not the context stage. The type is &lt;code&gt;boolean&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;stickyContext&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Strategy to include the context into the new query. If not specified, the optional context in the request is ignored. The type is &lt;code&gt;string&lt;/code&gt;. Values:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ask_llm&lt;/code&gt;: An LLM-call is made to discern whether the context applies to the current query. If so, a &lt;code&gt;recreate_question&lt;/code&gt; is performed. If not, the context is ignored and a &lt;code&gt;clear_context&lt;/code&gt; field is added into the response.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;include_context&lt;/code&gt;: The context will be inserted as is into the query. &lt;code&gt;prompts&lt;/code&gt; should not by empty for this option.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;recreate_question&lt;/code&gt;: An LLM-call will try to recreate the question by using the context.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prompts&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. List of prompts to be used in the LLM call.&lt;br&gt;
. The type is &lt;code&gt;StickyContextPrompts&lt;/code&gt;.&lt;br&gt;
. If this field is empty, the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#contextstg&#34;&gt;default prompt for this stage&lt;/a&gt; will be used.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;cleanStg&lt;/code&gt;: Stage used to remove prompt injection attempts using an LLM call.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;enabled&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Boolean value to activate or not the clean stage. The type is &lt;code&gt;boolean&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prompt&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Prompt to be used in the LLM call.&lt;br&gt;
. The type is &lt;code&gt;PromptLanguage&lt;/code&gt;. For example: &amp;ldquo;Please clean up the query and reply only with the user&amp;rsquo;s question&amp;rdquo;.&lt;br&gt;
. If this field is empty, the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#cleanstg&#34;&gt;default prompt for this stage&lt;/a&gt; will be used.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;retrievalStg&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Stage related to the retrieval phase, which is the process of obtaining relevant documents by comparing the query against indexed data or vectors.&lt;br&gt;
The stage is crucial for identifying and retrieving the documents or data that best match the input query, ensuring that only the most relevant results are returned.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sources&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Sources data.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Name of the source data. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;embeddings&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Embeddings model identifier that the ATRIA source data is associated with.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;docs&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Field with parameters related to the configuration of documents. The type is &lt;code&gt;object&lt;/code&gt;.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;extension&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Extensions of documents. The type is &lt;code&gt;string&lt;/code&gt;. The extensions must be separated by a comma.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;loader&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Project loader configuration.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;loaderType&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Type of loader. Values: &lt;code&gt;unstructured&lt;/code&gt;, &lt;code&gt;csv&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;jsond&lt;/code&gt;, &lt;code&gt;jsonl&lt;/code&gt; or &lt;code&gt;url_list&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;options&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Object that configures how the document loader operates. It allows specifying the mode of loading and any post-processing actions to be applied to the loaded data.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;loaderMode&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Modes for loader running. The type is &lt;code&gt;string&lt;/code&gt;. The possible values are:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;single&lt;/code&gt;: Document will be returned as a single document representing the whole&lt;/li&gt;
&lt;li&gt;&lt;code&gt;elements&lt;/code&gt;: The loader splits the document into different elements such as: Title, NarrativeText, etc. This allows a more granular processing and analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;postProcessors&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Post processor loader. It allows to perform operations in the loaded document such as cleaning, transforming, enriching, etc. The type is &lt;code&gt;string&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;splitter&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Project splitter for dividing large text inputs into smaller, manageable chunks, that can be more easily processed by language models, ensuring efficient and accurate processing.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;splitterType&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Method used to split the text. Value: &lt;code&gt;recursivechar&lt;/code&gt; (Recursively divides the text based on a character, typically looking for specific breakpoints such as punctuation or whitespace)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;options&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Project splitter options.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;chunkSize&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Maximum size of chunks to be returned. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chunkOverlap&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Overlap in characters between chunks. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;retrievers&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. List of retrievers used to query and retrieve relevant data or documents from a collection based on a given query.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;retrieverType&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Type of the retriever. Possible values: &lt;code&gt;qdrant&lt;/code&gt;, &lt;code&gt;tfidf&lt;/code&gt;, or &lt;code&gt;elasticsearch&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;config&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Configuration parameters for retrievers. The type is &lt;code&gt;dictionary&lt;/code&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 retrieve. The type is &lt;code&gt;number&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;loadChunkSize&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Chuck size used to load the documents in &lt;code&gt;qdrant&lt;/code&gt;. The type is &lt;code&gt;number&lt;/code&gt;. By default, &lt;code&gt;1000&lt;/code&gt;.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;postFilteringStg&lt;/code&gt;: Stage in charge of processing candidates before they enter the RAG chain.&lt;br&gt;
. It prompts the project LLM for each candidate, using the query and the candidate text. The LLM determines whether the candidate text is related to the query, and if not, the candidate will be filtered out.&lt;br&gt;
. If this option is not enabled, no post-processing or filtering will take place.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;enabled&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. Boolean value to activate or not the post-filtering stage. The type is &lt;code&gt;boolean&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;candidatesPostFiltering&lt;/code&gt;: Mandatory. Post-retrieval filtering applied to the candidates. It must be &lt;code&gt;llm_filter&lt;/code&gt; (for each candidate, a very short request is made to the LLM to identify whether the candidate is relevant to answer the query. If &amp;rsquo;no&amp;rsquo; is decided, the candidate is filtered out)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prompt&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Prompt to be used in the LLM call.&lt;br&gt;
. The type is &lt;code&gt;PromptLanguage&lt;/code&gt;.&lt;br&gt;
. If this field is empty, the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#prompts:~:text=prompts%20names%20sorted.-,postFilteringStg,-This%20stage%20filters&#34;&gt;default prompt for this stage&lt;/a&gt; will be used.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;generativeStg&lt;/code&gt;: Stage for handling the question and answer process. &lt;br&gt;
. It defines the strategy to solve the question, the prompts used in different stages of the process and the templates for generating responses&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ragStrategy&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Strategy to combine documents to generate a response. By default, &lt;code&gt;stuff&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;stuff&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. If &lt;code&gt;stuff&lt;/code&gt; prompt is used, &lt;code&gt;ragStrategy&lt;/code&gt; must be set to &lt;code&gt;stuff&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;refine&lt;/code&gt;: &lt;em&gt;Mandatory&lt;/em&gt;. If &lt;code&gt;informationExtraction&lt;/code&gt; or &lt;code&gt;responseConsolidation&lt;/code&gt; prompts are used, &lt;code&gt;ragStrategy&lt;/code&gt; must be set to &lt;code&gt;refine&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;prompts&lt;/code&gt; &lt;em&gt;Optional&lt;/em&gt;. List of prompts to be used in the LLM call.&lt;br&gt;
. The type is &lt;code&gt;GenerationPrompts&lt;/code&gt;.&lt;br&gt;
. If this field is empty, the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#prompts:~:text=data%20is%20relevant.-,generativeStg,-This%20stage%20generates&#34;&gt;default prompt for this stage&lt;/a&gt; will be used.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;#.auto.language.user_query&lt;/code&gt;: Parameter that activates the automatic detection of language in the user&amp;rsquo;s query (multi-language feature).&lt;br&gt;
. This parameter is included in the &lt;code&gt;args&lt;/code&gt; field of the prompt.&lt;br&gt;
. If you use the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#prompts:~:text=data%20is%20relevant.-,generativeStg,-This%20stage%20generates&#34;&gt;prompt by default&lt;/a&gt;, the multi-language feature &lt;em&gt;&lt;strong&gt;is already activated&lt;/strong&gt;&lt;/em&gt;.&lt;br&gt;
. Example:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;...
default:
  text: |
    Respond in language {user_query_language}.

    Question:
    {question}            
  args:
    user_query_language: &amp;#34;#.auto.language.user_query&amp;#34;
...
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;outputRefine&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. It is used to set up how to provide responses. The retrieving operation produces a list of candidates, each of which may provide a dictionary of metadata.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;candidates&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. It indicates whether to return the candidates in raw (useful for evaluation purposes) or not. The type is &lt;code&gt;boolean&lt;/code&gt;, by default, &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;filterOutputMetadata&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. It is used to set up how metadata is used when providing responses. The retrieving operation produces a list of candidates, each of which may provide a dictionary of metadata.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;map&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Maps attribute names in the original data to standard or more user-friendly names for later use.
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;fileType&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. String representing the type of file, typically used to specify the format or content type of the file being referenced. By default, &lt;code&gt;content-type&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pageNumber&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. String representing a page number. It could be used to identify particular pages within a document or resource. By default, &lt;code&gt;page-number&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;groupBy&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. groupBy and aggregate are expressed in post-map field names. By default, &lt;code&gt;url&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;aggregate&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. It determines how the values of duplicated fields are consolidated during grouping, specifying the handling of aggregated field information. By default, &lt;code&gt;page-number&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;outputFilter&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. List of fields to be displayed in the metadata. Type is &lt;code&gt;list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;root&lt;/code&gt;: &lt;em&gt;Optional&lt;/em&gt;. Defines the primary fields that will structure the final output of the metadata processing. Fields listed under root will remain at the top level of the response entries, while all other metadata fields will be nested under a metadata. Type is &lt;code&gt;list&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;example-of-preset-for-generative-ai-capability&#34;&gt;Example of preset for Generative AI capability&lt;/h3&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;brand&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 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;contact&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 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;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;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;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;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;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;Habla como si fueras {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;Napoleon&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;Naciste en galicia&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;Di que tu padre era gallego&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;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&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;h3 id=&#34;example-of-preset-for-rag-capability&#34;&gt;Example of preset for RAG capability&lt;/h3&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;references&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;maximum&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 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;baseUrl&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/pdfs&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;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;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;en&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;translationStg&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;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;en&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&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;cleanStg&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&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&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;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;txt&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;url_list&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;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;splitterType&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;recursivechar&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;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;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:#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;tfidf&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;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&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&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;outputRefine&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;candidates&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;false&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;
      </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/capabilities/nlp-aas/nlp-apps/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/nlp-aas/nlp-apps/</guid>
      <description>
        
        
        &lt;h1 id=&#34;nlp-apps-capability&#34;&gt;NLP Apps capability&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Overview of the &lt;strong&gt;NLP Apps&lt;/strong&gt; capability, encompassing the underlying technology and its application in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction-to-nlp-apps-technology&#34;&gt;Introduction to NLP Apps technology&lt;/h2&gt;
&lt;p&gt;Within Natural language processing (NLP) technologies, &lt;strong&gt;NLP Apps&lt;/strong&gt; refers to NLP pipelines (chains) that combine different technologies for language processing with several tools for combining them.&lt;/p&gt;
&lt;p&gt;Currently, these technologies, both proprietary and third-party ones, are included in the &lt;a href=&#34;../../docs/components/aura-nlp/&#34;&gt;Aura NLP component&lt;/a&gt; and can be categorized in the following groups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Deterministic recognizers&lt;/strong&gt;, such as &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/exact-match/&#34;&gt;Exact Match&lt;/a&gt; or &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/grammars/&#34;&gt;Grammars&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Probabilistic recognizers&lt;/strong&gt;, such as &lt;a href=&#34;#semantic-search&#34;&gt;OpenAI embeddings: Semantic Search&lt;/a&gt;, that uses Azure OpenAI capabilities based on embeddings and &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/clu/&#34;&gt;Microsoft CLU&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Classifiers&lt;/strong&gt;, from the traditional &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/domain-classifier/&#34;&gt;Domain Classifier&lt;/a&gt; to the &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/embeddings-classifier/&#34;&gt;embeddings-based Domain Classifier&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Entities recognition stages&lt;/strong&gt;, &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/standard-ner/&#34;&gt;Standard NER&lt;/a&gt; or &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/gazetteer-ner/&#34;&gt;Gazetteer NER&lt;/a&gt;, based on deterministic entity detection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Other tools&lt;/strong&gt; for executing different normalization tasks, connectors, adapters, etc.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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; The technical description of all the available NLP technologies in included in the document &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/&#34;&gt;Components for NLP pipelines&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;application-of-nlp-apps-in-atria&#34;&gt;Application of NLP Apps in ATRIA&lt;/h2&gt;
&lt;p style=&#34;background: #e2f8ff; color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; &lt;b&gt;ATRIA&lt;/b&gt; enables the generation of experiences (use cases) through the use of &lt;b&gt;Aura cognitive capabilities&lt;/b&gt; as stand-alone &lt;b&gt;NLP Apps&lt;/b&gt; for sending a request expressed in natural language and receiving back an accurate response &lt;b&gt;without the need for a conversational bot&lt;/b&gt;. &lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/atria-nlpapps-intro.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 6. NLP Apps in ATRIA&lt;/i&gt;
&lt;/p&gt;
&lt;h4 id=&#34;interaction-with-nlp-apps-in-atria&#34;&gt;Interaction with NLP Apps in ATRIA&lt;/h4&gt;
&lt;p&gt;This service is &lt;strong&gt;accessible via API&lt;/strong&gt;, enabling its consumption both from Aura Platform or any external application.&lt;/p&gt;
&lt;h4 id=&#34;functional-overview&#34;&gt;Functional overview&lt;/h4&gt;
&lt;p&gt;A simple overview of the process is provided below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A user sends a request to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, indicating which specific NLP App she wants to use for the recognition of the request. These Apps are available in &lt;a href=&#34;../../docs/components/aura-nlp/&#34;&gt;&lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, a module of Aura Cognitive Services in charge of processing and understanding human natural language.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The NLP technologies in the pre-selected specific App resolves the use case and generates a response.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The response is sent back to the user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/nlpaas-operational-flow/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/nlpaas-operational-flow/</guid>
      <description>
        
        
        &lt;h1 id=&#34;nlp-as-a-service-operational-workflow&#34;&gt;NLP as a Service operational workflow&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical operational flow corresponding to the operation of the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps/&#34;&gt;NLP as a Service capability&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;operational-flowchart&#34;&gt;Operational flowchart&lt;/h2&gt;
&lt;p&gt;The sequence diagram of the process executed by the NLP Apps capability is shown below:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-plantuml&#34; data-lang=&#34;plantuml&#34;&gt;@startuml
title NLP resolution API diagram
participant Application
participant Kernel #1add4d
participant AuraGatewayApi #76bbe7
Application -&amp;gt; Kernel: Create two-legged token with scope aura-ai-services:nlp-messaging:write
Note right of Kernel: this token needs refreshing
Kernel -&amp;gt; Application: Response two-legged token
Application -&amp;gt; Kernel: Request to aura-aiservices/nlp/query with token
Kernel -&amp;gt; AuraGatewayApi: Request to aiservices/nlp/query with token-info header
AuraGatewayApi -&amp;gt; AuraGatewayApi: Validate request
AuraGatewayApi -&amp;gt; AuraNLPApp: Request recognition
AuraGatewayApi -&amp;gt; AuraGatewayApi: generate response
AuraGatewayApi -&amp;gt; Kernel: response 200 and message
Kernel -&amp;gt; Application: response 200 and message
@enduml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;
&lt;i&gt;NLP Apps operational sequence diagram&lt;/i&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/agent-operational-flow/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/agent-operational-flow/</guid>
      <description>
        
        
        &lt;h1 id=&#34;agent-ai-operational-workflow&#34;&gt;Agent AI operational workflow&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical operational flow corresponding to the operation of the Agents AI capability&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;operational-flowchart&#34;&gt;Operational flowchart&lt;/h2&gt;
&lt;p&gt;The sequence diagram of the process executed by the agents AI capability is shown below:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-plantuml&#34; data-lang=&#34;plantuml&#34;&gt;@startuml
title Agent API diagram
participant Application
participant Kernel #1add4d
participant AuraGatewayApi #76bbe7
participant AgentsManager #0796f5
participant MongoDeviceRecommender #11f5cf
participant AtriaModelGateway #f58e11
participant AzureOpenAI #9476e7
Application -&amp;gt; Kernel: Create two-legged token with scope aura-ai-services:agents-messaging:write
Note right of Kernel: this token needs refreshing
Kernel -&amp;gt; Application: Response two-legged token
Application -&amp;gt; Kernel: Request to aura-aiservices/agents/messages with token and correlatorId (x-correlator)
Kernel -&amp;gt; AuraGatewayApi: Request to aiservices/agents/messages with token-info header and correlatorId
AuraGatewayApi -&amp;gt; AuraGatewayApi: Validate request
AuraGatewayApi -&amp;gt; AgentsManager: Send Request to an agent
AgentsManager -&amp;gt; AgentsManager: Check if the context exists &amp;amp;&amp;amp; retrieves it
AgentsManager -&amp;gt; AgentsManager: routing to the agents
AgentsManager -&amp;gt; MongoDeviceRecommender: Send Request to an agent with the context
MongoDeviceRecommender -&amp;gt; MongoDeviceRecommender: process the Request
group Agents process
  loop XX times
    MongoDeviceRecommender -&amp;gt; AtriaModelGateway: Send prompt to atria-model-gateway
    AtriaModelGateway -&amp;gt; AzureOpenAI: Send Request to ChatCompletation endpoint
    AzureOpenAI --&amp;gt; AtriaModelGateway: Response from AzureOpenAI
    AtriaModelGateway -&amp;gt; MongoDeviceRecommender: Response prompt
    MongoDeviceRecommender -&amp;gt; MongoDeviceRecommender: Analyze the response
  end
end
MongoDeviceRecommender -&amp;gt; AgentsManager: response 200 and message
AgentsManager -&amp;gt; AgentsManager: Store the context
AgentsManager --&amp;gt; AuraGatewayApi: response 200 and message
AuraGatewayApi -&amp;gt; AuraGatewayApi: process response
AuraGatewayApi -&amp;gt; AuraGatewayApi: generate response
AuraGatewayApi -&amp;gt; Kernel: response 200 and message
Kernel -&amp;gt; Application: response 200 and message
@enduml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
  &lt;figcaption&gt;&lt;i&gt;Agents AI operational sequence diagram&lt;/i&gt;&lt;/figcaption&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/capabilities/multibrand-overview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/multibrand-overview/</guid>
      <description>
        
        
        &lt;h1 id=&#34;introduction-to-atria-multibrand-feature&#34;&gt;Introduction to ATRIA multibrand feature&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Description of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; multibrand feature, based on a multitenant architecture&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;200&#34; height=&#34;200&#34; src=&#34;../../images/atria/technical-skills-2.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, just like &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt;, is designed as a &lt;a href=&#34;../../docs/aura-assistant/functional-description/multibrand-overview/&#34;&gt;&lt;strong&gt;multibrand&lt;/strong&gt; platform&lt;/a&gt;, meaning that users can access &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; through the different Telefónica brands available in their country.&lt;/p&gt;
&lt;p&gt;This multibrand feature is based on a &lt;a href=&#34;../../docs/aura-assistant/functional-description/multibrand-overview/#overview-of-the-multitenant-architecture&#34;&gt;multitenant architecture&lt;/a&gt;, with a &lt;strong&gt;tenant&lt;/strong&gt; defined as the deployment associated to a specific brand.&lt;/p&gt;
&lt;h2 id=&#34;functional-multitenant-architecture-in-atria&#34;&gt;Functional multitenant architecture in ATRIA&lt;/h2&gt;
&lt;p&gt;An overview of the functional operation of the multibrand feature in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; is shown and explained below:&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;900&#34; height=&#34;900&#34; src=&#34;../../images/aura-multitenant/atria-multitenant-overview.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Overview of multitenant architecture in ATRIA&lt;/i&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; supports different brands&lt;/li&gt;
&lt;li&gt;Each brand is associated to several channels&lt;/li&gt;
&lt;li&gt;Each channel allows accessing to use cases in a specific domain&lt;/li&gt;
&lt;li&gt;When a user send a request, it passes through &lt;strong&gt;Kernel&lt;/strong&gt; and is managed by a specific &lt;a href=&#34;https://accounts.baikalplatform.com/login?next=https%3A%2F%2Fdevelopers.baikalplatform.com%2Ftech-doc%2Frelease%2Flatest%2Fdata-ai%2Fquick-start%2Fbasic-concepts.html#tenants&#34;&gt;&lt;strong&gt;Kernel&lt;/strong&gt; tenant&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;This &lt;strong&gt;Kernel&lt;/strong&gt; tenant sends the query to a particular &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; tenant&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; calls the required AI-driven models for its resolution&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;technical-documents&#34;&gt;Technical documents&lt;/h2&gt;
&lt;h4 id=&#34;multitenant-configuration-in-aura-installer&#34;&gt;Multitenant configuration in Aura installer&lt;/h4&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; &lt;a href=&#34;../../docs/deployment/installer/#multitenant-configuration&#34;&gt;Aura installer: Multitenant configuration&lt;/a&gt;: Guidelines for the configuration of different tenants when several brands are available in the OB.&lt;/p&gt;
&lt;h4 id=&#34;descriptive-documents-and-guidelines&#34;&gt;Descriptive documents and guidelines&lt;/h4&gt;
&lt;p&gt;Once the user accesses through a specific Telefónica brand, the technical behavior of the corresponding Aura tenant is similar to the one before the implementation of the multitenant architecture. Therefore, there are no specific descriptive documents or guidelines for the multitenant architecture.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/building-experiences/nlp-apps-journey/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/building-experiences/nlp-apps-journey/</guid>
      <description>
        
        
        &lt;h1 id=&#34;build-experiences-that-call-nlp-apps&#34;&gt;Build experiences that call NLP apps&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Workflow with the main stages to build an end-to-end experience that calls NLP as a Service to use an NLP app&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Within NLP as a Service, the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps&#34;&gt;NLP Apps&lt;/a&gt; capability enables channels, services or skills to connect with Aura cognitive capabilities for sending a request expressed in natural language and receiving back an accurate response via API, without the need for a conversational bot.&lt;/p&gt;
&lt;h2 id=&#34;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;a. Prerequisites: Install and enable&lt;/strong&gt;&lt;/p&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;1. Enable ATRIA components in Aura installer&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
Is &lt;i&gt;Aura NLP&lt;/i&gt; deployed in your Aura system? If not:&lt;br&gt; 
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#localnlp&#34;&gt;Deploy Aura NLP&lt;/a&gt;&lt;br&gt;  
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#enable-nlp-as-a-service-components&#34;&gt;Enable NLP as a Service components&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;2. Publish &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; in &lt;strong&gt;Kernel&lt;/strong&gt;&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team / Kernel DevOps Team
&lt;br&gt;&lt;br&gt;
Is &lt;i&gt;aura-gateway-api&lt;/i&gt; published in &lt;i&gt;Kernel&lt;/i&gt;? If not: &lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/kernel-api-publication/&#34;&gt;Publish the &lt;i&gt;aura-gateway-api&lt;/i&gt; API in Kernel&lt;/a&gt; as a prerequisite to call this API
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;3. Get a &lt;strong&gt;Kernel&lt;/strong&gt; token&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt;&lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
Check if your Kernel token has already expired. If so:&lt;br&gt;    
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/get-accesstoken/&#34;&gt;Get a valid Kernel two-legged token&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;b. Configure&lt;/strong&gt;&lt;/p&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;4. Configure an application&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;Configure an application&lt;/a&gt; to connect with &lt;i&gt;aura-gateway-api&lt;/i&gt;  
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;c. Build &amp;amp; test&lt;/strong&gt;&lt;/p&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;5. Build the understanding model&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;  
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/&#34;&gt;Generate and deploy the NLP recognition package&lt;/a&gt; for your use case
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;6. Make request to API&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;  
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/nlp-api-request/&#34;&gt;Make a request to Aura NLP resolution API&lt;/a&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/</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/technical-operation/generative-ai-operational-flow/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/generative-ai-operational-flow/</guid>
      <description>
        
        
        &lt;h1 id=&#34;generative-ai-operational-workflow&#34;&gt;Generative AI operational workflow&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical operational flow corresponding to the operation of the &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI capability&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;operational-flowchart&#34;&gt;Operational flowchart&lt;/h2&gt;
&lt;p&gt;The sequence diagram of the process executed by the Generative AI capability is shown below:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-plantuml&#34; data-lang=&#34;plantuml&#34;&gt;@startuml
title Generative API diagram
participant Application
participant Kernel #1add4d
participant AuraGatewayApi #76bbe7
participant AtriaModelGateway #f58e11
participant AzureOpenAI #9476e7
Application -&amp;gt; Kernel: Create two-legged token with scope aura-aiservices:messaging:write
Note right of Kernel: this token needs refreshing
Kernel -&amp;gt; Application: Response two-legged token
Application -&amp;gt; Kernel: Request to aura-aiservices/generative/prompts with token and correlatorId (x-correlator)
Kernel -&amp;gt; AuraGatewayApi: Request to aiservices/generative/prompts with token-info header and correlatorId
AuraGatewayApi -&amp;gt; AuraGatewayApi: Validate request
AuraGatewayApi -&amp;gt; AuraGatewayApi: Generate prompt
AuraGatewayApi -&amp;gt; AtriaModelGateway: Send prompt to atria-model-gateway
AtriaModelGateway -&amp;gt; AzureOpenAI: Send Request to ChatCompletation endpoint
AzureOpenAI --&amp;gt; AtriaModelGateway: Response from AzureOpenAI
AtriaModelGateway -&amp;gt; AuraGatewayApi: Response prompt
AuraGatewayApi -&amp;gt; AuraGatewayApi: process atria-model-gateway response
AuraGatewayApi -&amp;gt; AuraGatewayApi: generate response
AuraGatewayApi -&amp;gt; Kernel: response 200 and message with session_id
Kernel -&amp;gt; Application: response 200 and message with session_id
@enduml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
  &lt;figcaption&gt;&lt;i&gt;Generative AI operational sequence diagram&lt;/i&gt;&lt;/figcaption&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/capabilities/nlp-aas/semantic-search/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/nlp-aas/semantic-search/</guid>
      <description>
        
        
        &lt;h1 id=&#34;semantic-search-capability&#34;&gt;Semantic Search capability&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Overview of the &lt;strong&gt;Semantic Search&lt;/strong&gt; capability, encompassing the underlying technology and its application in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-1.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction-to-semantic-search-technology&#34;&gt;Introduction to Semantic Search technology&lt;/h2&gt;
&lt;p&gt;Within &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps/#technological-overview-nlp-apps&#34;&gt;Natural Language Processing technologies&lt;/a&gt;, &lt;strong&gt;Semantic Search&lt;/strong&gt; goes beyond the traditional keyword-based search methods, as it delves into the intent and the meaning behind a query, interpreting the meaning of words and phrases.&lt;/p&gt;
&lt;p&gt;This leads to the generation of more accurate and relevant search results that align closely with the user&amp;rsquo;s intent.&lt;/p&gt;
&lt;p&gt;For this purpose, semantic search uses neural network &lt;strong&gt;embeddings&lt;/strong&gt;: a representation of words or phrases in a continuous vector space that captures the semantic relationships between them. This information is crucial for semantic search to interpret the user&amp;rsquo;s intent accurately.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;800&#34; height=&#34;800&#34; src=&#34;../../images/atria/embeddings-tech.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 7. Semantic Search technology&lt;/i&gt;
&lt;/p&gt;
&lt;h2 id=&#34;application-of-semantic-search-in-atria&#34;&gt;Application of Semantic Search in ATRIA&lt;/h2&gt;
&lt;p&gt;Semantic Search is a specific &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/nlp-apps/&#34;&gt;NLP App&lt;/a&gt;, included in the NLP as a Service capability.&lt;/p&gt;
&lt;p style=&#34;background: #e2f8ff; color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; &lt;b&gt;ATRIA&lt;/b&gt; benefits from the &lt;b&gt;Semantic Search&lt;/b&gt; capability based on &lt;b&gt;embeddings&lt;/b&gt;&lt;/a&gt; for the development of &lt;b&gt;generic questions experiences (grounded in FAQs)&lt;/b&gt;.&lt;br&gt;
It allows achieving an accurate understanding of requests and the generation of highly reliable answers, fully aligned with the user&#39;s expectations.  &lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;800&#34; height=&#34;800&#34; src=&#34;../../images/atria/atria-semanticsearch-intro.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 8. Semantic Search in ATRIA&lt;/i&gt;
&lt;/p&gt;
&lt;h4 id=&#34;interaction-with-semantic-search-in-atria&#34;&gt;Interaction with Semantic Search in ATRIA&lt;/h4&gt;
&lt;p&gt;This service is &lt;strong&gt;accessible via API&lt;/strong&gt;, enabling its consumption both from Aura Platform and any external application.&lt;/p&gt;
&lt;p&gt;Semantic search technology is available in Aura through a specific &lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt; stage: &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/openai-embeddings/&#34;&gt;OpenAI embeddings&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;current-available-models&#34;&gt;Current available models&lt;/h4&gt;
&lt;p&gt;Semantic Search currently uses &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/embeddings?tabs=console&#34;&gt;Azure OpenAI embeddings technology&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Check the version of the model &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/#models-currently-integrated-into-atria&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;functional-overview&#34;&gt;Functional overview&lt;/h4&gt;
&lt;p&gt;The use of this capability encompasses three different stages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Preparation&lt;/strong&gt;, for the creation of the use case knowledge bases with the required FAQs and associated answers, and the subsequent generation of embeddings with this information.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Identification&lt;/strong&gt;, in which a user sends a request to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, selecting as the specific NLP App the one that includes the semantic search technology (&lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/openai-embeddings/&#34;&gt;OpenAI embeddings&lt;/a&gt;). This app recognizes the user&amp;rsquo;s request.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Answer generation&lt;/strong&gt;: the best response to the user request is identified and sent back to the user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-square-check&#34;&gt;&lt;/i&gt; Comprehensive description of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; default configuration&lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-check&#34;&gt;&lt;/i&gt; Guidelines for the modification of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; components configuration &lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-check&#34;&gt;&lt;/i&gt; Guidelines for importing documents into &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; main components, &lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; and &lt;a href=&#34;../../docs/atria/technical-components/atria-rag-server/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, are configured through different parameters, both internal ones and required when developing an experience in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The following documents describe these parameters and their associated fields and fully define the processes for their modification by experiences constructors.&lt;/p&gt;
&lt;p&gt;The configuration parameters can be divided into two main categories:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;CONFIGURATION PARAMETERS&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;DESCRIPTION&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;TARGET USERS&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;RELATED DOCUMENTS&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Server configuration parameters&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Internal configuration for &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; components&lt;/td&gt;
&lt;td&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; developers and installation teams&lt;/td&gt;
&lt;td&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; components default configuration&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;preset&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;- Instructions to work with the AI model for the resolution of a use case  &lt;br&gt;&lt;br&gt; - It includes a process for documents and data import into the environment&lt;/td&gt;
&lt;td&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use cases constructors&lt;/td&gt;
&lt;td&gt;- &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;Modify ATRIA configuration: Configure a preset&lt;/a&gt; &lt;br&gt;&lt;br&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;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/capabilities/multilanguage-overview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/multilanguage-overview/</guid>
      <description>
        
        
        &lt;h1 id=&#34;introduction-to-atria-multi-language-feature&#34;&gt;Introduction to ATRIA multi-language feature&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Description of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; multi-language feature, offering its AI-driven capabilities in different languages&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; This feature is only available for &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; &lt;strong&gt;RAG stages&lt;/strong&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;200&#34; height=&#34;200&#34; src=&#34;../../images/atria/technical-skills-2.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; RAG now includes a &lt;strong&gt;multi-language feature&lt;/strong&gt;, to deliver service to a global audience in multiple languages.&lt;/p&gt;
&lt;p&gt;This multi-language capability allows users to make a request to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; and receive back the response in their own language through a technology that automatically detects and adapts to the input language.&lt;/p&gt;
&lt;p&gt;The multi-language feature provides multiple benefits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The information provided by &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; is easier to understand, as it is generated in the user&amp;rsquo;s language.&lt;/li&gt;
&lt;li&gt;A wide range of languages is supported, allowing &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; to reach a global audience.&lt;/li&gt;
&lt;li&gt;The user experience is also optimized by reducing the need for external translation tools, making communication more seamless and natural.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From a technical point of view, the model for text identification and classification &lt;a href=&#34;https://fasttext.cc/docs/en/language-identification.html&#34;&gt;&lt;strong&gt;fastText&lt;/strong&gt;&lt;/a&gt; is used, that supports more than 176 languages.&lt;/p&gt;
&lt;h2 id=&#34;functional-overview&#34;&gt;Functional overview&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; This feature is only available for RAG stages&lt;/p&gt;
&lt;p&gt;A high-level overview on how the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; multi-language feature works is included below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A users sends a request to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; in a specific language. &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; automatically detects the input language and sends the response back to the user in the same language.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In case the user&amp;rsquo;s request includes a mixture of languages (for example, &amp;ldquo;por favor, dame feedback&amp;rdquo;), &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; detects the predominant language of the query and uses it in the response.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In case &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; is not capable of identifying the request language, then the system generates the response in a language previously configured by default (that should be the region/country primary one).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The multi-language feature can be activated or deactivated by &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; constructors, as well as configured to meet their requirements and needs.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;technical-guidelines&#34;&gt;Technical guidelines&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How constructors can configure ATRIA multi-language feature?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Constructors can configure this feature through different parameters of the prompt:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-config-best-practices/#use-the-multi-language-feature&#34;&gt;Best practices for &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration: Use the multi-language feature&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA server internal configuration&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; server configuration responsible for managing the multi-language feature includes these fields:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#language-identification&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; default configuration: language identification fields&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/building-experiences/semantic-search-journey/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/building-experiences/semantic-search-journey/</guid>
      <description>
        
        
        &lt;h1 id=&#34;build-experiences-that-call-semantic-search&#34;&gt;Build experiences that call Semantic Search&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;How to build an end-to-end experience that uses the Semantic Search stage (OpenAI embeddings recognizer), within NLP as a service&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Within [NLP as a Service], the &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/semantic-search/&#34;&gt;Semantic Search&lt;/a&gt; capability enables the use of Azure OpenAI embeddings for the development of generic questions experiences (grounded in FAQs).&lt;/p&gt;
&lt;h2 id=&#34;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;a. Prequisites: Install and enable&lt;/strong&gt;&lt;/p&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;1. Enable ATRIA components in Aura installer&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#localnlp&#34;&gt;Deploy Aura NLP&lt;/a&gt;&lt;br&gt;  
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/deployment/installer/#enable-nlp-as-a-service-components&#34;&gt;Enable NLP as a Service components&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;2. Publish &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; in &lt;strong&gt;Kernel&lt;/strong&gt;&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; GES team / Kernel DevOps Team
&lt;br&gt;&lt;br&gt;
Is &lt;i&gt;aura-gateway-api&lt;/i&gt; published in &lt;i&gt;Kernel&lt;/i&gt;? If not: &lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/kernel-api-publication/&#34;&gt;Publish the &lt;i&gt;aura-gateway-api&lt;/i&gt; API in Kernel&lt;/a&gt; as a prerequisite to call this API
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;3. Get a &lt;strong&gt;Kernel&lt;/strong&gt; token&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt;&lt;/i&gt; GES team
&lt;br&gt;&lt;br&gt;
Check if your Kernel token has already expired. If so:&lt;br&gt;    
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/get-accesstoken/&#34;&gt;Get a valid Kernel two-legged token&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;b. Configure&lt;/strong&gt;&lt;/p&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;4. Configure an application&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt;&lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt; 
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;Configure an application&lt;/a&gt; to connect with &lt;i&gt;aura-gateway-api&lt;/i&gt; 
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;c. Build &amp;amp; test&lt;/strong&gt;&lt;/p&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;5. Prepare the FAQ knowledge base&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Content manager
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; Prepare the FAQ contents and answers used by the Semantic Search stage
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;6. Build the understanding model&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;  
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/&#34;&gt;Generate and deploy the NLP recognition package&lt;/a&gt; for your use case&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; For the Semantic Search capability, the stage &lt;a href=&#34;../../docs/experiences-builder/development-use-cases/nlp-uc-development/nlp-pipeline-components-catalog/nlp-stages/openai-embeddings/&#34;&gt;OpenAI embeddings&lt;/a&gt; is used
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;i class=&#34;fa-solid fa-arrow-right cards-icon&#34;&gt;&lt;/i&gt;

&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;7. Make request to API&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-user&#34;&gt; &lt;/i&gt; Use case constructor
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-regular fa-square-check&#34;&gt;&lt;/i&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/nlp-api-request/&#34;&gt;Make a request to Aura NLP resolution API&lt;/a&gt;
  
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-components/atria-model-gateway/environment-variables/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-components/atria-model-gateway/environment-variables/</guid>
      <description>
        
        
        &lt;h1 id=&#34;atria-model-gateway-environment-variables&#34;&gt;ATRIA Model Gateway environment variables&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;List of environment variables handled by the &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; depends on these environment variables to be set. None of them are modifiable by the OBs.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Property&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Type&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_DATABASE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Redis database number to be used by the server. This number is used to connect to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_HOSTS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Redis hosts to be used by the server. This is a comma-separated list of Redis host names or IP addresses.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_MODE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Mode of the Redis connection.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_PASSWORD&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Ppassword for the Redis connection. This password is used to authenticate the connection to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_POOL_SIZE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Size of the Redis connection pool. This number is used to limit the number of connections to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_PREFIX_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Prefix for the Redis subscribers. This prefix is used to identify the subscribers in the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_CHANNELS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Channels (separated by &amp;lsquo;,&amp;rsquo;) for the Redis subscribers. Redis prefix is added to these channels at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_P_CHANNELS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Pattern channels (separated by &amp;lsquo;,&amp;rsquo;) for the Redis subscribers. Redis prefix is added to these pattern channels at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_PUBSUB_NAME&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;DAPR pubsub component name. It is used to identify DAPR component to be used.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_PREFIX_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Prefix for the DAPR pubsub subscribers. This prefix is used to identify the subscribers in the configured database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_TOPICS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Topics (separated by &amp;lsquo;,&amp;rsquo;) for the DAPR pubsub subscribers. DAPR prefix is added to these topics at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&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;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The &lt;strong&gt;environment variables related to Redis&lt;/strong&gt; are used to connect to the Redis database. This database is used to refresh the agent&amp;rsquo;s configuration, because every time the configuration of an agent is changed, it publishes this change in the corresponding channel so we can detect this change in order to refresh it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;strong&gt;environment variables related to DAPR&lt;/strong&gt; are used to connect to the DAPR components. These components are used to refresh the agent&amp;rsquo;s configuration, because every time the configuration of an agent is changed, it publishes this change in a corresponding topic, so we can detect this change in order to refresh it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In order to use DAPR, it is necessary to have the DAPR pubsub component configured in the DAPR configuration file, besides the DAPR &lt;a href=&#34;https://docs.dapr.io/reference/environment/&#34;&gt;environment variables&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-components/atria-rag-server/environment-variables/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-components/atria-rag-server/environment-variables/</guid>
      <description>
        
        
        &lt;h1 id=&#34;atria-rag-server-environment-variables&#34;&gt;ATRIA RAG Server environment variables&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;List of environment variables handled by the &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; depends on these environment variables to be set. None of them are modifiable by the OBs.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Property&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Type&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_DATABASE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Redis database number to be used by the server. This number is used to connect to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_HOSTS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Redis hosts to be used by the server. This is a comma-separated list of Redis host names or IP addresses.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_MODE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Mode of the Redis connection.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_PASSWORD&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Ppassword for the Redis connection. This password is used to authenticate the connection to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_POOL_SIZE&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;number&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Size of the Redis connection pool. This number is used to limit the number of connections to the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_PREFIX_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Prefix for the Redis subscribers. This prefix is used to identify the subscribers in the Redis database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_CHANNELS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Channels (separated by &amp;lsquo;,&amp;rsquo;) for the Redis subscribers. Redis prefix is added to these channels at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_REDIS_P_CHANNELS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Pattern channels (separated by &amp;lsquo;,&amp;rsquo;) for the Redis subscribers. Redis prefix is added to these pattern channels at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_PUBSUB_NAME&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;DAPR pubsub component name. It is used to identify DAPR component to be used.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_PREFIX_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Prefix for the DAPR pubsub subscribers. This prefix is used to identify the subscribers in the configured database.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;strong&gt;AURA_DAPR_TOPICS_SUBSCRIBERS&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;string&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;Topics (separated by &amp;lsquo;,&amp;rsquo;) for the DAPR pubsub subscribers. DAPR prefix is added to these topics at the beginning.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&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;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The &lt;strong&gt;environment variables related to Redis&lt;/strong&gt; are used to connect to the Redis database. This database is used to refresh the agent&amp;rsquo;s configuration, because every time the configuration of an agent is changed, it publishes this change in the corresponding channel so we can detect this change in order to refresh it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;strong&gt;environment variables related to DAPR&lt;/strong&gt; are used to connect to the DAPR components. These components are used to refresh the agent&amp;rsquo;s configuration, because every time the configuration of an agent is changed, it publishes this change in a corresponding topic, so we can detect this change in order to refresh it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In order to use DAPR, it is necessary to have the DAPR pubsub component configured in the DAPR configuration file, besides the DAPR &lt;a href=&#34;https://docs.dapr.io/reference/environment/&#34;&gt;environment variables&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Comprehensive technical description of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; main components&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-3.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities are driven by certain technical components, which are fully described in the succeeding documents, together with their role, architecture, communication protocols, sub-components and environment variables.&lt;/p&gt;
&lt;h2 id=&#34;index-of-technical-components&#34;&gt;Index of technical components&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA application&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Configurable entity that allows the connection of channels, services or skills with &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Entry gateway to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; that manages the access to the different AI cognitive capabilities.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Component that orchestrates the communication with LLM models.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/atria-rag-server/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Component that manages a RAG-type server for using RAG (Retrieval Augmented Generation) models.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-generate-db&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Component that manages the upload of documents to feed the databases.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/agents-manager/&#34;&gt;&lt;em&gt;&lt;strong&gt;agents-manager&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Component that manages input and output requests to the registered agents, storing their conversation history by session.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/agents-server/&#34;&gt;&lt;em&gt;&lt;strong&gt;agents-server&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Component responsible for the execution of different agents&amp;rsquo; tasks.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/components/aura-nlp&#34;&gt;&lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Module of Aura Cognitive Services in charge of processing and understanding human natural language. It can be considered as a &lt;strong&gt;cross component&lt;/strong&gt; for &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/apis-documentation/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA APIs documentation&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: List of available &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; APIs.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/</guid>
      <description>
        
        
        &lt;h1 id=&#34;atria-operational-workflows&#34;&gt;ATRIA operational workflows&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;These documents include various &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical operational flows, designed as sequence diagrams to provide a clear, step-by-step representation of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities and processes, interactions between components or systems, and the overall &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; workflow&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/technical-complex-3.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index-of-technical-operational-workflows&#34;&gt;Index of technical operational workflows&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/nlpaas-operational-flow/&#34;&gt;NLP as a Service operational workflow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/generative-ai-operational-flow/&#34;&gt;Generative API operational workflow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/general-rag-operational-flow/&#34;&gt;General RAG operational workflow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/germany-rag-operational-flow/&#34;&gt;Germany ATRIA General RAG operational workflow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/feedback-operational-flow/&#34;&gt;Feedback capability operational workflow&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-operation/reload-config-by-redis-events/&#34;&gt;Reload config by Redis events&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/configuration/configure-agent/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/configuration/configure-agent/</guid>
      <description>
        
        
        &lt;h1 id=&#34;create-and-configure-an-agent&#34;&gt;Create and configure an agent&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the configuration of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; by use cases constructors when developing an experience by means of an &lt;strong&gt;agent&lt;/strong&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p style=&#34;background:rgb(225, 237, 245); color: #220183; font-weight: normal; padding: 15px; border: 1px solid #0710e6; border-radius: 6px;&#34;&gt; An &lt;b&gt;agent&lt;/b&gt; is a configuration entity in &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt; that represents an integration point for external channels, services, or platforms. &lt;/p&gt;
&lt;p&gt;Each agent defines how &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; communicates with and manages sessions for a specific external system, specifying connection details, session parameters, and operational metadata.&lt;/p&gt;
&lt;p&gt;Agents are referenced by &lt;em&gt;&lt;strong&gt;applications&lt;/strong&gt;&lt;/em&gt; to enable channel or service connectivity within the platform.&lt;/p&gt;
&lt;h2 id=&#34;guidelines-to-configure-an-agent&#34;&gt;Guidelines to configure an agent&lt;/h2&gt;
&lt;h3 id=&#34;1-create-a-new-agent&#34;&gt;1. Create a new agent&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Build the agent for your use case (json file), using the available &lt;a href=&#34;#agent-fields&#34;&gt;agent fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent json file is generated, execute this command to include it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request POST &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data-raw &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;NEW AGENT JSON&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;11-modifyupdate-an-agent&#34;&gt;1.1. Modify/update an agent&lt;/h4&gt;
&lt;p&gt;If once created, certain modifications are required, follow these instructions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Make the required changes in the agent json file using the available &lt;a href=&#34;#agent-fields&#34;&gt;agent fields&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the agent is modified, execute this command to update it:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request PUT &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;lt;agentID&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;&amp;lt;AGENT JSON WITH MODIFICATIONS&amp;gt;&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;12-delete-an-agent&#34;&gt;1.2. Delete an agent&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Execute the following command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request DELETE &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/agents/&amp;lt;agentId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-include-the-agent-in-the-application&#34;&gt;2. Include the agent in the application&lt;/h3&gt;
&lt;p&gt;If the application for your use case does not exist, first create it following the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;guidelines for the configuration of an application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once the application is created, assign the created agent in the field &lt;code&gt;agents&lt;/code&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; If you update or delete an agent, ensure that any application referencing it is also updated accordingly.&lt;br&gt;
&lt;i class=&#34;fa-solid fa-triangle-exclamation fa-xl&#34; style=&#34;color: #f45815;&#34;&gt;&lt;/i&gt; Remember that agents must exist to be inserted in an application.&lt;/p&gt;
&lt;p&gt;Example to update the list of agents in an application:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location --request PATCH &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v1/applications/&amp;lt;applicationId&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY XXX&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;  --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;id&amp;#34;: &amp;#34;&amp;lt;applicationId&amp;gt;&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;agents&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;&amp;lt;agentId1&amp;gt;&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;&amp;lt;agentId2&amp;gt;&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;    ]
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;agent-fields&#34;&gt;Agent fields&lt;/h2&gt;
&lt;p&gt;The fields for the characterization of an agent are summarized below, as defined in the API swagger &lt;a href=&#34;../../docs/components/aura-configuration-api/api-definition/agent/&#34;&gt;Aura Configuration ATRIA Agents&lt;/a&gt;:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;id&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Unique identifier (UUID) for the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Name that uniquely identifies the agent in Aura.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Description of the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;communication&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Parameters for the configuration of the communication flow. See &lt;a href=&#34;#communication-configuration-communication&#34;&gt;communication configuration&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;flowConfig&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Configuration of the agent flow.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;deploymentName&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Name of the deployment where the agent is running. &lt;br&gt;&lt;b&gt;If the &lt;code&gt;endpoint&lt;/code&gt; field is not present in &lt;code&gt;communication&lt;/code&gt;, this field will be used to route requests to the agent.&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Document metadata (version, createdAt, updatedAt, etc). See &lt;a href=&#34;#metadata-metadata&#34;&gt;metadata&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;communication-configuration-communication&#34;&gt;Communication configuration (&lt;code&gt;communication&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;communicationType&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Type of communication. Only &lt;code&gt;http&lt;/code&gt; is currently supported.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;endpoint&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;HTTP endpoint where the agent listens.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;headers&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;object&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;HTTP headers associated with the agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;timeout&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;number&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Timeout for agent communication.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;retries&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;number&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Number of retries for communication.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;metadata-metadata&#34;&gt;Metadata (&lt;code&gt;metadata&lt;/code&gt;)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Mandatory&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Configuration version when the document was created.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;createdAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Creation date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;updatedAt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Last update date (ISO 8601).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;example-minimal-agent-configuration&#34;&gt;Example: Minimal agent configuration&lt;/h2&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;b1e2c3d4-5678-1234-9abc-def012345678&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;example-agent&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;communication&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;communicationType&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;http&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;endpoint&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;https://agent.example.com/webhook&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;example-full-agent-configuration&#34;&gt;Example: Full agent configuration&lt;/h2&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;b1e2c3d4-5678-1234-9abc-def012345678&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;example-agent&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;Agent for integration with Example Service&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;communication&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;communicationType&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;http&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;endpoint&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;https://agent.example.com/webhook&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;headers&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;Authorization&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;Bearer &amp;lt;token&amp;gt;&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;timeout&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;30&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;retries&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;flowConfig&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;deploymentName&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;example-deployment&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;metadata&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;version&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;1.0.0&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;createdAt&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;2024-05-30T10:00:00Z&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;updatedAt&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;2024-05-30T12:00:00Z&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, and &lt;code&gt;communication&lt;/code&gt; fields are mandatory.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;communicationType&lt;/code&gt; must be &lt;code&gt;http&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If an agent is deleted, applications referencing it will be updated.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/capabilities/generative-feedback-functional-overview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/capabilities/generative-feedback-functional-overview/</guid>
      <description>
        
        
        &lt;h1 id=&#34;generative-feedback-functional-description&#34;&gt;Generative feedback functional description&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Discover the feedback functionality that can be used for Generative AI and RAG capabilities&lt;/p&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; If you are interested in the &lt;strong&gt;detailed technical operational flow&lt;/strong&gt; of this capability, that includes the sequence diagram of interactions between components, access &lt;a href=&#34;../../docs/atria/technical-operation/&#34;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/atria/technical-skills-2.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Within the use of the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI&lt;/a&gt; or &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG&lt;/a&gt; capabilities, we have developed a &lt;strong&gt;feedback functionality&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This feedback functionality allows the estimation of the &lt;strong&gt;user&amp;rsquo;s satisfaction&lt;/strong&gt; regarding the obtained response.&lt;/p&gt;
&lt;p&gt;The user can provide feedback by clicking on a thumbs-up icon if the quality and appropriateness of the answer is correct or selecting the thumbs-down icon if the response misses the point, contains hallucinations, or is unclear.&lt;/p&gt;
&lt;h2 id=&#34;functional-operation&#34;&gt;Functional operation&lt;/h2&gt;
&lt;p&gt;The underlying process is summarized in the following lines and schematically shown in the figure below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;An &lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;&lt;em&gt;&lt;strong&gt;application&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; sends a request to &lt;em&gt;&lt;strong&gt;aura-gateway-api generative&lt;/strong&gt;&lt;/em&gt; with a correlator.&lt;/li&gt;
&lt;li&gt;Firstly, it passes through &lt;strong&gt;Kernel&lt;/strong&gt; (Telefónica Digital Ecosystem) for authentication and security purposes.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; processes the received request and sends the request to the auto-generative content generator &lt;strong&gt;atria-model-gateway&lt;/strong&gt; to obtain an appropriate response.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt; generates the most appropriate response and sends it back to &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; sends the response back to the service that initiated the request with the same correlator and a session identifier.&lt;/li&gt;
&lt;li&gt;An &lt;em&gt;&lt;strong&gt;application&lt;/strong&gt;&lt;/em&gt; sends a request to &lt;em&gt;&lt;strong&gt;aura-gateway-api feedback&lt;/strong&gt;&lt;/em&gt; with:
&lt;ul&gt;
&lt;li&gt;A new header correlator&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;sessionId&lt;/code&gt; received in the path&lt;/li&gt;
&lt;li&gt;The field &lt;code&gt;msg_corrid&lt;/code&gt;, in the body, that indicates the correlator of the message the feedback is about.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; processes the received request and communicates with &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; to send this request.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; stores the feedback.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; communicates a &lt;code&gt;204&lt;/code&gt; to the application.&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/ingestion-process-automation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/ingestion-process-automation/</guid>
      <description>
        
        
        &lt;h1 id=&#34;ingestion-process-automation&#34;&gt;Ingestion Process Automation&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Technical operational flow of RAG data processing, specifically the automation of the &lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-generate-db&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; process&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;flow-diagram&#34;&gt;Flow diagram&lt;/h2&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-circle-info fa-xl&#34; style=&#34;color: #3267c3;&#34;&gt;&lt;/i&gt;Flow of calls made to launch the generate-db process.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-plantuml&#34; data-lang=&#34;plantuml&#34;&gt;@startuml
title Ingestion Process Automation Flow

&amp;#39; Define participants with themed colors and clear names
actor User

participant &amp;#34;Azure Blob Storage&amp;#34; as AzureStorage #A2C4E0
participant &amp;#34;Gateway API&amp;#34; as GatewayAPI #bfb1f2
participant &amp;#34;Config Watcher&amp;#34; as ConfigWatcher #f296ee
participant &amp;#34;Deployment API&amp;#34; as DeploymentAPI #f77cbc
participant &amp;#34;Generate DB Process&amp;#34; as GenerateDBProcess #D9EAD3


&amp;#39; === Upload Files Stage ===
User -&amp;gt; AzureStorage : Upload training files
AzureStorage --&amp;gt; User : Response 200 OK

&amp;#39; === Launch generate-db ===
User -&amp;gt; GatewayAPI : Request to /aura-services/v2/operations/data to launch ingestion process
GatewayAPI -&amp;gt; ConfigWatcher : Request to Config Watcher
ConfigWatcher -&amp;gt; GenerateDBProcess : Start generate-db process
GenerateDBProcess --&amp;gt; ConfigWatcher : Response 200 OK
ConfigWatcher --&amp;gt; GatewayAPI : Response 200 OK
GatewayAPI --&amp;gt; User : Response 200 OK


&amp;#39; === Processing Stage ===
GenerateDBProcess -&amp;gt; AzureStorage : Read training files
AzureStorage --&amp;gt; GenerateDBProcess : Response 200 OK
GenerateDBProcess -&amp;gt; GenerateDBProcess : Processing training files

&amp;#39; === Logs Querying ===
... Logging queries can occur anytime ...


User -&amp;gt; GatewayAPI : Request to /aura-services/v2/operations/data/{presetId}/logs
GatewayAPI -&amp;gt; ConfigWatcher : Request to get logs
ConfigWatcher -&amp;gt; DeploymentAPI : Response 200 OK
DeploymentAPI --&amp;gt; ConfigWatcher : Response 200 OK
ConfigWatcher --&amp;gt; GatewayAPI : Response 200 OK
GatewayAPI --&amp;gt; User : Response 200 OK

&amp;#39; === Status Query ===
... Status queries can occur anytime ...

&amp;#39; === Status process ===
User -&amp;gt; GatewayAPI : Request to /aura-services/v2/operations/data/{presetId}/status to get status
GatewayAPI -&amp;gt; ConfigWatcher : Request to get status
ConfigWatcher -&amp;gt; DeploymentAPI : Response 200 OK
DeploymentAPI --&amp;gt; ConfigWatcher : Response 200 OK
ConfigWatcher --&amp;gt; GatewayAPI : Response 200 OK
GatewayAPI --&amp;gt; User : Response 200 OK


@enduml
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/reload-config-by-redis-events/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/reload-config-by-redis-events/</guid>
      <description>
        
        
        &lt;h1 id=&#34;reload-config-by-redis-event-in-rag-and-model-gateway&#34;&gt;Reload config by Redis event in RAG and Model Gateway&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Description of the process for updating and reloading &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration by means of Redis events&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Once a preset or application &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/&#34;&gt;&lt;em&gt;&lt;strong&gt;configuration&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; has been modified, a Redis &lt;a href=&#34;../../docs/components/aura-configuration-api/use-synchronization-by-events/&#34;&gt;&lt;em&gt;&lt;strong&gt;event&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; is automatically triggered to the &lt;code&gt;PresetConfiguration&lt;/code&gt; and &lt;code&gt;ApplicationConfiguration&lt;/code&gt; channels.&lt;/p&gt;
&lt;p&gt;The components &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; are subscribed to these channels and once an event arrives, they launch the configuration update process.&lt;/p&gt;
&lt;p&gt;This process is transparent to the user.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/nlp-api-request/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/nlp-api-request/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-making-a-request-to-aura-nlp-resolution-api&#34;&gt;Guidelines for making a request to Aura NLP Resolution API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Steps to be followed to make a request to the &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; NLP Resolution API, for using &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; NLP as a Service capabilities&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The use of the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas&#34;&gt;NLP as a Service&lt;/a&gt; capability requires making a request to the &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; &lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/api-definition/aura-nlp-resolution-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-nlp-resolution-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For this purpose, constructors must follow the steps below.&lt;/p&gt;
&lt;h2 id=&#34;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;p&gt;The request from the application must include different fields to be properly processed by this API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;application.id&lt;/code&gt; or &lt;code&gt;application.name&lt;/code&gt;: Id or name of the application that has configured the specific pipeline to be used for the resolution of the request. If this field is empty or the channel configured in the application does not exist in the &lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt; service, an error is sent.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;message&lt;/code&gt;: text of the message with the request to be resolved.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Authorization header&lt;/code&gt;: Two-legged token.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Moreover, NLP as a Service can also handle disambiguation. In this scenario, a list of options will be provided back from the &lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt; service.&lt;/p&gt;
&lt;p&gt;A general request and the associated response are included below:&lt;/p&gt;
&lt;h3 id=&#34;request&#34;&gt;Request&lt;/h3&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-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://api.environment.baikalplatform.com/aura-aiservices/v1/nlp/query&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;x-correlator: &amp;lt;uuid&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: Bearer {token}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{  
&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;message&amp;#34;: &amp;#34;¿Cómo puedo contactar con Movistar plus?&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;contextFilters&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;application&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;id&amp;#34;: &amp;#34;12345678-1234-5678-9a0b-abcd73f96111&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;  }
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;response&#34;&gt;Response&lt;/h3&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;entities&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;entity&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;7&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;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;faq&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;score&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.9489&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;start_index&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;end_index&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;canon&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;7&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;label&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-embeddings&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;questionId&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;7&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;question&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;¿Cómo puedo interactuar con Movistar?&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;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;Atención Comercial: 900104708 Atención al Cliente: 1004. Desde el extranjero +34 699 991 004 Soporte Técnico: 1002 Clientes con TV por satélite: 900104709  Clientes con sólo satélite: 900110010  Clientes Prepago: 224430  Atención Canal+: 900 220 305  [Bot de Movistar](http://www.movistar.es/#forward) en Twitter&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;relatedQuestions&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;questionId&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;8&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;question&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;¿Cómo puedo darme de baja?&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;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;Para bajas de líneas móviles de contrato, puedes solicitarlo en la sección [Bajas](https://www.movistar.es/particulares/BajasIframe/?_ga=2.253697609.1756783427.1543820522-1816496064.1527850957).\r\nPara fusión o  prepago, debes llamar al 1004.\r\nPara paquetes de TV, accede a la sección TV.&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;questionId&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;9&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;question&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;¿Dónde puedo comprar un móvil?&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;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;Encuentra el móvil que necesitas en la [tienda electrónica](http://www.movistar.es/particulares/movil/moviles). Si has solicitado un smartphone a través de la web o del 1004 con la opción de recogida en tienda y no recuerdas el código de bono, [recupéralo](https://www.movistar.es/atcliente/c2c/servicio-online/index.jsp?language=es&amp;amp;service=consulta-bono-canje).&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;types-of-responses-in-nlp-resolution-api&#34;&gt;Types of responses in NLP resolution API&lt;/h2&gt;
&lt;h3 id=&#34;a-simple-response&#34;&gt;a. Simple response&lt;/h3&gt;
&lt;p&gt;When the &lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt; app (pipeline) recognizes an intent, a simple response with the intent and entities recognized is returned:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;Hola&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;contextFilters&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;intent&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;intent.common.greetings&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;entities&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;Mi cobertura&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;contextFilters&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;entities&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;entity&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;16&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;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;faq&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;score&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.99&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;start_index&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;end_index&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;canon&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;16&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;label&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-embeddings&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;questionId&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;16&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;question&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;¿Cuál es mi cobertura?&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;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;Si quieres, [consulta la cobertura de ADSL y fibra](https://www.movistar.es/coberturas/ ). Para mejorar la cobertura de tu móvil en casa o en el trabajo a través de tu ADSL o fibra puedes contratar el servicio [“Mi cobertura móvil”](http://www.movistar.es/particulares/movil/servicios/ficha/nav-mi-cobertura-movil ).&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;relatedQuestions&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;questionId&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;84&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;question&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;¿Cómo puedo reclamar la factura que me ha llegado?&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;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;Sentimos que no estés de acuerdo con los conceptos facturados. Por favor, para poder ayudarte, completa el siguiente [formulario](https://www.movistar.es/particulares/atencion-cliente/escribenos/?tipo=telco&amp;amp;tipo_directo=12-21) y el Servicio de Atención te contestará en un plazo aproximado de 48 horas.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;c-disambiguation-response&#34;&gt;c. Disambiguation response&lt;/h3&gt;
&lt;p&gt;When there is more than one intent recognized, an &lt;code&gt;intent.disambiguation&lt;/code&gt; will be returned with a list of options.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;Mi factura&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;contextFilters&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;intent&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;intent.disambiguation&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;entities&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:#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;questionId&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;32&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;question&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;¿Cómo puedo ver mi factura?&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;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;Para consultar y descargar las facturas del último año accede a la [web](https://www.movistar.es/cliente/areaprivada/#/facturas) o en Facturas en la sección de [cuenta](https://external-account.movistar-es-dev.svc.dev.mad.tuenti.io/redirect.php?target=account-home) de la app.&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;relatedQuestions&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;questionId&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;33&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;question&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;¿Cómo puedo pagar mis facturas pendientes?&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;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;Si tienes alguna factura pendiente de pago, recibirás un aviso de pago con el que abonar la deuda en cualquier oficina de correos o en las oficinas bancarias indicadas. También puedes abonarla con tarjeta llamando al 1004.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;d-filtered-response&#34;&gt;d. Filtered response&lt;/h3&gt;
&lt;p&gt;In some FAQs of a generic questions use case, you can add multiple answers and select the most accurate one according to some input &lt;em&gt;&lt;strong&gt;context-filters&lt;/strong&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;¿Cómo puedo acceder a Mi Movistar?&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;contextFilters&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:#4e9a06&#34;&gt;&amp;#34;channelName:novum-mytelco&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;entities&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;entity&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;3&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;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;faq&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;score&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;start_index&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;end_index&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;canon&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;3&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;label&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-embeddings&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;questionId&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;3&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;question&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;¿Cómo puedo acceder a Mi Movistar?&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;contextFilters&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:#4e9a06&#34;&gt;&amp;#34;channelName:novum-mytelco&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;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;Si accedes con tu móvil mediante Mobile Connect verás todos tus productos y el consumo de la línea con la que accedes.\r\nAccediendo con contraseña tendrás acceso a todos tus productos, facturas y consumo de todas tus líneas.&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;relatedQuestions&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;questionId&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;7&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;question&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;¿Cómo puedo interactuar con Movistar?&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;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;Atención Comercial: 900104708 Atención al Cliente: 1004. Desde el extranjero +34 699 991 004 Soporte Técnico: 1002 Clientes con TV por satélite: 900104709  Clientes con sólo satélite: 900110010  Clientes Prepago: 224430  Atención Canal+: 900 220 305  [Bot de Movistar](http://www.movistar.es/#forward) en Twitter&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;questionId&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;19&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;question&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;¿Qué tengo contratado?&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;contextFilters&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:#4e9a06&#34;&gt;&amp;#34;channelName:novum-mytelco&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;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;Puedes ver los servicios y productos que tienes contratados en la [sección de cuenta](https://external-account.movistar-es-dev.svc.dev.mad.tuenti.io/redirect.php?target=account-home). Si quieres conocer el detalle de lo que incluye tu tarifa, ve a Tu Tarifa dentro de la sección de cuenta.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here is the example of the same request without &lt;em&gt;&lt;strong&gt;context-filters&lt;/strong&gt;&lt;/em&gt;. You can see that the texts are different and the &lt;code&gt;contextFilter&lt;/code&gt; field is not returned:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;¿Cómo puedo acceder a Mi Movistar?&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;contextFilters&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;entities&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;entity&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;3&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;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;faq&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;score&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;start_index&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;end_index&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;canon&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;3&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;label&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-embeddings&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;questionId&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;3&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;question&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;¿Cómo puedo acceder a Mi Movistar?&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;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;Puedes entrar:\r\nCon tu móvil: debes tenerlo a mano para validar el acceso.\r\nO con contraseña y con tu NIF, CIF, NIE o pasaporte: si no la recuerdas puedes regenerarla.&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;relatedQuestions&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;questionId&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;7&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;question&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;¿Cómo puedo interactuar con Movistar?&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;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;Atención Comercial: 900104708 Atención al Cliente: 1004. Desde el extranjero +34 699 991 004 Soporte Técnico: 1002 Clientes con TV por satélite: 900104709  Clientes con sólo satélite: 900110010  Clientes Prepago: 224430  Atención Canal+: 900 220 305  [Bot de Movistar](http://www.movistar.es/#forward) en Twitter&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;questionId&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;9&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;question&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;¿Dónde puedo comprar un móvil?&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;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;Encuentra el móvil que necesitas en la [tienda electrónica](http://www.movistar.es/particulares/movil/moviles). Si has solicitado un smartphone a través de la web o del 1004 con la opción de recogida en tienda y no recuerdas el código de bono, [recupéralo](https://www.movistar.es/atcliente/c2c/servicio-online/index.jsp?language=es&amp;amp;service=consulta-bono-canje).&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;e-custom-columns-response&#34;&gt;e. Custom columns response&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Request body&lt;/strong&gt;&lt;/p&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;message&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;Información de la jornada 20&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;application&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;12345678-1234-5678-9a0b-abcd73f96111&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Response body&lt;/strong&gt;&lt;/p&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;entities&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:#204a87;font-weight:bold&#34;&gt;&amp;#34;entity&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;10&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;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;faq&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;score&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;start_index&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;end_index&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;canon&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;10&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;label&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-embeddings&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;questionId&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;10&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;question&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;Información de la jornada 20&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;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;La información de toda la jornada 20&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;speak&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;La información de toda la jornada veinte&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;mainContent&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;custom&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;custom&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;carrusel&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;1&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;2&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;3&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;4&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;data_summary&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:#204a87;font-weight:bold&#34;&gt;&amp;#34;gol_destacado&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;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;Gol jornada 23&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;url&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;https://www.youtube.com/watch?v=MgP3zDzQ0CE&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;gol_propia_puerta&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;url&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;https://www.20minutos.es/deportes/noticia/4146386/0/insolito-golazo-olympique-propia-puerta-psg/&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;gol_destacado&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;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;Gol jornada 24&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;url&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;https://eldesmarque.com/actualidad/futbol/primera-laliga-santander/video-resumenes-primera/1372827-madrid-atleti-resumen-en-video-del-partido-de-la-jornada-22&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;gol_propia_puerta&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;url&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;https://www.mundodeportivo.com/futbol/20200207/473330110580/el-insolito-gol-en-propia-puerta-del-portero-de-uruguay.html&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;
      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/best-practices-promtps/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/best-practices-promtps/</guid>
      <description>
        
        
        &lt;h1 id=&#34;best-practices-for-prompts-generation&#34;&gt;Best practices for prompts generation&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;The purpose of this document is to provide complete and practical guidelines and best practices for constructors when creating a prompt for an &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; use case&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;the-use-of-markdown-text&#34;&gt;The use of Markdown text&lt;/h2&gt;
&lt;p&gt;It is highly recommended to use &lt;strong&gt;Markdown&lt;/strong&gt; as a format for prompts due to its benefits, summarized below:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clarity and readability&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown allows structuring text in a clear and hierarchical way using headings, lists and other elements. It helps understanding both humans and automated systems.&lt;/li&gt;
&lt;li&gt;Raw text is easy to read and understand, even without rendering. This streamlines review and collaborative work.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Easy edition and maintenance&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown is editable in any plain text editor, without the need for specialized tools.&lt;/li&gt;
&lt;li&gt;It can be easily modified, versioned and maintained, especially within large or distributed teams.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Error minimization&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown syntax is simple and minimizes common errors associated with other markup languages such as HTML.&lt;/li&gt;
&lt;li&gt;The visual structure allows a quick identification of inconsistencies or formatting issues.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Versatility and compatibility&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown is a widely supported standard: it can be easily converted into HTML, PDF, or DOCX formats, presentations and more.&lt;/li&gt;
&lt;li&gt;Additionally, it is well-suited for integration with AI tools, static site generators, document management systems and version control systems like Git.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Portability and universality&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown files are lightweight and portable, enabling easy use across different platforms and devices without formatting loss.&lt;/li&gt;
&lt;li&gt;As a plain text editor, Markdown ensures content accessibility and long-term usability, regardless of future technological changes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Effective collaboration&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown facilitates collaborative work in projects with different teams or people editing or reviewing simultaneously.&lt;/li&gt;
&lt;li&gt;Tt includes intuitive and useful change control, version controlling and diff tools.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Simplicity and legibility for AI&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Markdown is a lightweight markup language with a minimalist plain-text-formatting syntax. It eases LLMs to identify text structures in comparison to markup languages such as HTML or XML.&lt;/li&gt;
&lt;li&gt;Consequently, it reduces significantly misinterpretations and errors and improves processing efficiency.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;In summary, using Markdown to define prompts makes them clearer, easier to edit, minimizes errors and provides great flexibility across platforms and tools.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&#34;general-formatting-guidelines&#34;&gt;General formatting guidelines&lt;/h2&gt;
&lt;h3 id=&#34;sections-and-subsections&#34;&gt;Sections and subsections&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Organize your content&lt;/strong&gt;: Use Markdown syntax for headers to separate the different parts of the prompt (##, ###, etc.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Ensure clarity&lt;/strong&gt;: Identify each section univocally for easy reading and maintenance of the prompt.
In the following example, although Markdown shows a correct structure, visualization is not adequate:&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/prompts/sections-subsections.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h3 id=&#34;sections-lists&#34;&gt;Sections lists&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Add lists&lt;/strong&gt;: If a section or sub-section includes multiple elements or fields, present them as a bulleted or numbered list for better organization.
For example:&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/prompts/section-list.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h3 id=&#34;line-breaks&#34;&gt;Line breaks&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Do not include line breaks manually (\n)&lt;/strong&gt;: The final formatting of the prompt with line breaks will be handled by the CTO team. Now, just write the content as it should appear, without adding manual line break characters.&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;800&#34; height=&#34;800&#34; src=&#34;../../images/atria/prompts/line-break-1.png&#34;&gt;&lt;br&gt;
  &lt;img width=&#34;800&#34; height=&#34;800&#34; src=&#34;../../images/atria/prompts/line-break-2.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h3 id=&#34;quotation-marks&#34;&gt;Quotation marks&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Be consistent&lt;/strong&gt;: Use the same type of quotation marks throughout the prompt (preferably: &amp;lsquo;single&amp;rsquo; or &amp;ldquo;straight double&amp;rdquo;, depending on the project requirements)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Avoid mixing styles&lt;/strong&gt;: Do not combine straight and curly quotation marks. Although visually similar, mismatched opening and closing quotes can lead to unclosed texts.&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/prompts/quotation-mark.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;h3 id=&#34;urls&#34;&gt;URLs&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Be careful with URLs&lt;/strong&gt;: the above-mentioned issue related to quotation marks affects URLs, as seen in the following example.&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/prompts/url.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Disney: incorrect → the closing quote in the URL is considered as part of the link
- Dazn: correct → the closing quote in the URL is closing the field “answer” correctly
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Review unusual characters&lt;/strong&gt;: Once the prompt creation is finished, make a comprehensive review to check no invalid or wrong characters are included. This is particularly relevant if text has been copied from external sources.&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;img width=&#34;700&#34; height=&#34;700&#34; src=&#34;../../images/atria/prompts/unusual-characters.png&#34;&gt;&lt;br&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Carry out a visual review&lt;/strong&gt;: If possible, upload your prompt into a Markdown editor to review its visualization.
&lt;ul&gt;
&lt;li&gt;Desktop version editors: Ghostwriter, VS Code, Pycharm, etc.&lt;/li&gt;
&lt;li&gt;Online editors: &lt;a href=&#34;https://markdownlivepreview.com/&#34;&gt;https://markdownlivepreview.com/&lt;/a&gt;, &lt;a href=&#34;https://dillinger.io/&#34;&gt;https://dillinger.io/&lt;/a&gt;, &lt;a href=&#34;https://stackedit.io/&#34;&gt;https://stackedit.io/&lt;/a&gt;, etc.
 &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;general-content-guidelines&#34;&gt;General content guidelines&lt;/h2&gt;
&lt;h3 id=&#34;simple-and-direct-language&#34;&gt;Simple and direct language&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use clear and simple expressions instead of overly elaborate ones.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Example: “Use a wide range&amp;hellip;” instead of “Utilize a wide range&amp;hellip;”.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Avoid unnecessary slang or technical terms that have not been previously defined.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add a clear definition of relevant keywords and terms used in your prompt. For example: user_type, estado_desconocido, etc.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;language-consistency&#34;&gt;Language consistency&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Include the main structure in English (language used for technical terms such as context, keywords, answer, action, etc.) and examples in the expected language, ex. Spanish.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Avoid mixing languages (English and Spanish) to ease reading and implementation.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;accurate-examples-and-definitions&#34;&gt;Accurate examples and definitions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Examples must be grammatically and orthographically correct, with no errors in accents, capitalization or wording.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check that fields or variables are clearly defined previous to its implementation.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Integrate examples in the corresponding section, not in a separate one.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;grammar-and-syntax-review&#34;&gt;Grammar and syntax review&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Check grammatical agreements (singular vs. plural, gender, etc.).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Be coherent with the use of pronouns. For example: If you use “user” (singular), follow the sentence by “his/her”, not “their”, or change to “users”.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can also use impersonal structures for ease.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;homogeneous-categories-structure&#34;&gt;Homogeneous categories structure&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;All categories must follow a common structure, with the same fields (context, keywords, answer, action), even if any is left empty.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If there are special values (such as unknown_status), they must be explained and applied consistently.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-operation/feedback-operational-flow/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-operation/feedback-operational-flow/</guid>
      <description>
        
        
        &lt;h1 id=&#34;feedback-capability-operational-workflow&#34;&gt;Feedback capability operational workflow&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; technical operational flow corresponding to the operation of the &lt;a href=&#34;../../docs/atria/capabilities/generative-feedback-functional-overview/&#34;&gt;&lt;strong&gt;feedback capability&lt;/strong&gt;&lt;/a&gt; that can be used for Generative AI and RAG capabilities&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;flow-diagram&#34;&gt;Flow diagram&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-plantuml&#34; data-lang=&#34;plantuml&#34;&gt;@startuml
title Feedback API diagram
participant Application
participant Kernel #1add4d
participant AuraGatewayApi #76bbe7
Note right of Application: The application has made a previous request to `aiservices/generative/prompts` on which it will give feedback. Use the correlatorId sending in the request and the session_id received in the response. View Generative API diagram
Application -&amp;gt; Kernel: Request to aiservices/{session_id}/feedback with token and msg_corrId: correlatorId
Kernel -&amp;gt; AuraGatewayApi: Request to aiservices/{session_id}/feedback with token-info header and msg_corrId: correlatorId
AuraGatewayApi -&amp;gt; AuraGatewayApi: Validate request
AuraGatewayApi -&amp;gt; AuraGatewayApi: Covert message to format atria-model-gateway
AuraGatewayApi -&amp;gt; AtriaModelGateway: Send feedback to atria-model-gateway
AtriaModelGateway -&amp;gt; AuraGatewayApi: Response feedback
AuraGatewayApi -&amp;gt; AuraGatewayApi: process atria-model-gateway response
AuraGatewayApi -&amp;gt; AuraGatewayApi: generate response
AuraGatewayApi -&amp;gt; Kernel: response 204
Kernel -&amp;gt; Application: response 204


@enduml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;figcaption&gt;&lt;i&gt;Generative feedback sequence diagram&lt;/i&gt;&lt;/figcaption&gt;
&lt;/p&gt;
&lt;h3 id=&#34;request&#34;&gt;Request&lt;/h3&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-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://api.environment.baikalplatform.com/aura-aiservices/v1/{session_id}/feedback&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;x-correlator: &amp;lt;uuid2&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: Bearer {token}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;application&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;name&amp;#34;: &amp;#34;app-name&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;  },
&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;value&amp;#34;: true,  
&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;msg_corrId&amp;#34;: &amp;#34;{previous-x-correlator}&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/generative-api-request/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/generative-api-request/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-making-a-request-to-aura-generative-api&#34;&gt;Guidelines for making a request to Aura Generative API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Steps to be followed to make a request to &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; Generative API, for using &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; Generative or RAG capabilities&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The use of the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; AI-driven &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative AI&lt;/a&gt; or &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG&lt;/a&gt; capabilities requires making a request to the &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; &lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/api-definition/aura-generative-api/&#34;&gt;Generative API&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For this purpose, constructors must follow the steps below.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/api-definition/aura-generative-api/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-generative-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; is a synchronous service so, if there is no validation error, once the call to &lt;strong&gt;atria-model-gateway&lt;/strong&gt; is made, the response will be sent to the application.&lt;/p&gt;
&lt;h2 id=&#34;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;p&gt;The request from the application must include different fields to be properly processed by this API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;application.id&lt;/code&gt; or &lt;code&gt;application.name&lt;/code&gt;: Id or name of the application to be used for the resolution of the request. If this field is empty or the application does not exist in the &lt;em&gt;&lt;strong&gt;Generative&lt;/strong&gt;&lt;/em&gt; service, an error is sent.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;application.preset&lt;/code&gt;: Name of preset to use in &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;message&lt;/code&gt;: text of the message with the request to be resolved.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Authorization header&lt;/code&gt;: Two-legged token.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;request&#34;&gt;Request&lt;/h3&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-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://api.environment.baikalplatform.com/aura-aiservices/v1/generative/prompts&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;x-correlator: &amp;lt;uuid&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: Bearer {token}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;application&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;name&amp;#34;: &amp;#34;app-name&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;preset&amp;#34;: &amp;#34;preset-default&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;  },
&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;message&amp;#34;: &amp;#34;Hola, ¿qué es AURA?&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;prompt_params&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;preamble&amp;#34;: &amp;#34;system 1&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;template&amp;#34;: &amp;#34;template 1&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;fields_mapped&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;examples&amp;#34;: [&amp;#34;example 1&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;  },
&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;model_params&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;max_tokens&amp;#34;: 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:#4e9a06&#34;&gt;    &amp;#34;temperature&amp;#34;: 2,
&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;top_p&amp;#34;: 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:#4e9a06&#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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;response&#34;&gt;Response&lt;/h3&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;message&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;Hello I am Aura, how can I help you?&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;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;3fa85f64-5717-4562-b3fc-2c963f66afa6&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;sequence&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;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;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;10&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;timeout&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;30&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;prompt_info&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;sizes&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;completion&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;100&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:#0000cf;font-weight:bold&#34;&gt;50&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;total&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;150&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;model_params&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;100&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.5&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.5&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;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:#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;role&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;user&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;content&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;I want to know more about the beach&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;input&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;I want to know more about the beach&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;errors&#34;&gt;Errors&lt;/h2&gt;
&lt;h3 id=&#34;error-400-invalid-application&#34;&gt;Error 400: Invalid application&lt;/h3&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;code&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;BAD_REQUEST&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;message&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;Invalid message. Application not found.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;error-400-preset-not-found-for-the-application&#34;&gt;Error 400: Preset not found for the application&lt;/h3&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;code&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;BAD_REQUEST&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;message&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;Invalid message. Preset not valid for application app_name.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;error-400-invalid-args&#34;&gt;Error 400: Invalid Args&lt;/h3&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;code&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;BAD_REQUEST&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;message&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;Bad Request&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;errors&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;code&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;InvArg&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;message&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;unknown preset: dfg&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;error-429-quota&#34;&gt;Error 429: Quota&lt;/h3&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;code&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;TOO_MANY_REQUESTS&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;message&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;Too Many Request&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;errors&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;code&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;Quota&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;message&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 system is experiencing operational problems. We apologize for the inconvenience.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;error-500&#34;&gt;Error 500&lt;/h3&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;code&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;INTERNAL_SERVER_ERROR&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;message&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;Internal Server Error&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;errors&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;code&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;Internal&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;message&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 system is experiencing operational problems. We apologize for the inconvenience.&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;recommendations-for-using-response_format&#34;&gt;Recommendations for using response_format&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;response_format&lt;/code&gt;parameter is an object that specifies the format that the model must output. It is compatible with Azure OpenAI GPT models newer than gpt-3.5-turbo-1106.&lt;/p&gt;
&lt;p&gt;Setting to { &amp;ldquo;type&amp;rdquo;: &amp;ldquo;json_schema&amp;rdquo;, &amp;ldquo;json_schema&amp;rdquo;: {&amp;hellip;} } enables structured outputs which guarantee the model will match your supplied JSON schema.&lt;/p&gt;
&lt;p&gt;How to include it in the request:&lt;/p&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-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl --location &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://api.environment.baikalplatform.com/aura-aiservices/v1/generative/prompts&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;x-correlator: &amp;lt;uuid&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: Bearer {token}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;--data &lt;span style=&#34;color:#a40000&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;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;application&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#ce5c00;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;name&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;app-name&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;preset&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;preset-default&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:#ce5c00;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;message&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Hola, ¿qué es AURA?, genera un JSON &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;prompt_params&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#ce5c00;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;preamble&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;system 1&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;template&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;template 1&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;fields_mapped&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#ce5c00;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;examples&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;example 1&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;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:#ce5c00;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;model_params&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#ce5c00;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;max_tokens&amp;#34;&lt;/span&gt;: 1,
&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;temperature&amp;#34;&lt;/span&gt;: 2,
&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;top_p&amp;#34;&lt;/span&gt;: 1,
&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;response_format&amp;#34;&lt;/span&gt;:&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;{&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;type&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;json_object&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;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:#ce5c00;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:#ce5c00;font-weight:bold&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are two key factors that need to be present to successfully use JSON mode:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;response_format={ &amp;ldquo;type&amp;rdquo;: &amp;ldquo;json_object&amp;rdquo; }&lt;/li&gt;
&lt;li&gt;With this configuration, we tell the model to output JSON as part of the system message. Including guidance to the model that it should produce JSON as part of the messages conversation is required. We recommend adding instruction as part of the system message.&lt;/li&gt;
&lt;li&gt;According to OpenAI, to add this instruction can cause the model to &amp;ldquo;generate an unending stream of whitespace and the request could run continually until it reaches the token limit.&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If &amp;ldquo;JSON&amp;rdquo; is not included within the messages, the following error may occur:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;BadRequestError: Error code: 400 - {&amp;#39;error&amp;#39;: {&amp;#39;message&amp;#39;: &amp;#34;&amp;#39;messages&amp;#39; must contain the word &amp;#39;json&amp;#39; in some form, to use &amp;#39;response_format&amp;#39; of type &amp;#39;json_object&amp;#39;.&amp;#34;, &amp;#39;type&amp;#39;: &amp;#39;invalid_request_error&amp;#39;, &amp;#39;param&amp;#39;: &amp;#39;messages&amp;#39;, &amp;#39;code&amp;#39;: None}}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Further Reference: &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/json-mode?tabs=python&#34;&gt;Microsoft documentation: Learn how to use JSON mode&lt;/a&gt;&lt;/p&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines detailing specific technical processes for different technical profiles (DevOps, use case builders, NLP experts, linguists, etc.) who want to use &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; capabilities or operate our AI-driven platform&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;250&#34; height=&#34;250&#34; src=&#34;../../images/technical-complex-3.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index-of-atria-technical-guidelines&#34;&gt;Index of ATRIA technical guidelines&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/building-experiences/&#34;&gt;Build e2e experiences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/kernel-api-publication/&#34;&gt;Publish an API in Kernel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;Configure an application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/hot-swapping-application/&#34;&gt;Hot swapping of applications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/get-accesstoken/&#34;&gt;Get Kernel access token&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/nlp-api-request/&#34;&gt;Request to Aura NLP Resolution API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/generative-api-request/&#34;&gt;Request to Aura Generative API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/atria-web-interface/&#34;&gt;Use &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface (aura-manager)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/atria-error-management/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; error management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/adjust-timeouts/&#34;&gt;Adjust timeouts in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;other-technical-guidelines&#34;&gt;Other technical guidelines&lt;/h2&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-circle-info fa-xl&#34; style=&#34;color: #3267c3;&#34;&gt;&lt;/i&gt; These guidelines are common to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Deploy Aura: &lt;a href=&#34;../../docs/deployment/&#34;&gt;Deployment Task Center &lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Develop and operate &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;: &lt;a href=&#34;../../docs/developers-workspace/&#34;&gt;Developers Workspace&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/atria-web-interface/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/atria-web-interface/</guid>
      <description>
        
        
        &lt;h1 id=&#34;use-atria-web-interface-aura-manager&#34;&gt;Use ATRIA web interface (aura-manager)&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for using the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface for testing purposes&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-circle-info fa-xl&#34; style=&#34;color: #3a13fb;&#34;&gt;&lt;/i&gt; The &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface (&lt;em&gt;&lt;strong&gt;aura-manager&lt;/strong&gt;&lt;/em&gt;) is available for Generative AI and RAG capabilities in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In the current release, a web interface &lt;em&gt;&lt;strong&gt;aura-manager&lt;/strong&gt;&lt;/em&gt; has been provided for internal use to test how &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; Generative and RAG capabilities work.&lt;/p&gt;
&lt;p&gt;Discover below how to use it.&lt;/p&gt;
&lt;h2 id=&#34;guidelines&#34;&gt;Guidelines&lt;/h2&gt;
&lt;h3 id=&#34;1-enable-aura-manager&#34;&gt;1. Enable aura-manager&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/deployment/installer/#enable-aura-manager&#34;&gt;Enable &lt;em&gt;&lt;strong&gt;aura-manager&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; in Aura installer.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-access-to-atria-web-interface-aura-manager&#34;&gt;2. Access to &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface (aura-manager)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Web chat URL: https://svc-[country-environment].auracognitive.com/aura-manager&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enter the web using Office365 authentication.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are interested in the underlying authentication process, access &lt;a href=&#34;../../docs/atria/technical-guidelines/o365-authentication/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;3-introduce-application-name&#34;&gt;3. Introduce application name&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Prerequisite: The application must be previously configured using the &lt;a href=&#34;../../docs/atria/technical-guidelines/applications-configuration/&#34;&gt;applications configuration sheet&lt;/a&gt; with all the parameters to communicate with &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the exact name of the application to be used.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-app-name.png&#34; alt=&#34;web-app-name&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the name of the application is wrong, a message as shown below will be displayed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-app-name-error.png&#34; alt=&#34;web-app-name-error&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the request fails, the following error will be displayed and the website will reload:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-error-application.png&#34; alt=&#34;web-error-application&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;4-select-theme-optional&#34;&gt;4. Select theme (optional)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If required, select a theme to change the visualization style.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click on the meatball menu &lt;code&gt;...&lt;/code&gt; and select the preferred theme.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-select-theme.png&#34; alt=&#34;web-select-theme&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;5-select-preset&#34;&gt;5. Select preset&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Once the application is selected, all the &lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway/#presets&#34;&gt;presets&lt;/a&gt; that this application can use are loaded.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click on the meatball menu &lt;code&gt;...&lt;/code&gt; and select the specific preset to be used.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-select-preset.png&#34; alt=&#34;web-select-preset&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-select-preset-options.png&#34; alt=&#34;web-select-preset-options&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-circle-info fa-xl&#34; style=&#34;color: #3a13fb;&#34;&gt;&lt;/i&gt; In the current version of the web interface, the option &amp;ldquo;Activate response voiceover&amp;rdquo; is deactivated.&lt;/p&gt;
&lt;h3 id=&#34;6-send-request&#34;&gt;6. Send request&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Send your request:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Writing it down in the search box&lt;/li&gt;
&lt;li&gt;Or using the microphone by clicking on the microphone icon&lt;br&gt;
NOTE: The microphone is enabled in certain compatible web browsers:
&lt;ul&gt;
&lt;li&gt;Google Chrome v33 (Windows, macOS, Linux, Android)&lt;/li&gt;
&lt;li&gt;Microsoft Edge v79 (Windows, macOS)&lt;/li&gt;
&lt;li&gt;Firefox 52 (Windows, macOS, Linux, Android). It requires enabling &lt;code&gt;media.webspeech.synth.enabled&lt;/code&gt; in &lt;code&gt;about:config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Safari 14.1 (macOS, iOS)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now, you can start a conversational flow with &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; to get the response you need.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-send-request.png&#34; alt=&#34;web-add-request&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the request fails, the following error will be displayed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-error-send-message-popup.png&#34; alt=&#34;web-error-send-message-popup&#34;&gt;
&lt;img src=&#34;../../images/atria/web-error-send-message-chat.png&#34; alt=&#34;web-error-send-message-chat&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If this error is displayed, you should enter the request again.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;7-receive-response&#34;&gt;7. Receive response&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; will provide you with the most appropriate answer to your request.&lt;/p&gt;
&lt;p&gt;Additionally, the information sources used to generate the response are included, so the user can have greater confidence in the answer provided and consult these references afterwards.&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;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the current release, the references from public URLs can be consulted directly through their corresponding links.&lt;/li&gt;
&lt;li&gt;If the documents used as references (such as PDF files) are not publicly accessible, only the document names will be displayed. You can upload them for testing purposes before making their content available via a public URL.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-response-and-references.png&#34; alt=&#34;aura-manager-response-and-references&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;8-add-feedback-optional&#34;&gt;8. Add feedback (Optional)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Use the thumbs-up and thumbs-down symbols to provide &lt;a href=&#34;../../docs/atria/capabilities/generative-feedback-functional-overview/&#34;&gt;feedback&lt;/a&gt; regarding the accuracy of the response.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-feedback.png&#34; alt=&#34;web-feedback&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the request fails, the following error will be displayed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-error-feedback.png&#34; alt=&#34;web-error-feedback&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If this error is displayed, you can continue using the application, trying to send feedback again.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;9-copy-response-optional&#34;&gt;9. Copy response (Optional)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;If required, you can copy the text response.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-copy-text.png&#34; alt=&#34;web-copy-text&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;10-start-new-conversation&#34;&gt;10. Start new conversation&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Click on the &amp;ldquo;New conversation&amp;rdquo; button or on the &amp;ldquo;reload&amp;rdquo; symbol to start a new conversation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-new-conversation.png&#34; alt=&#34;web-new-conversation&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the request fails, the following error will be displayed, and you should try to initiate a new conversation again:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/web-error-create-new-conversation.png&#34; alt=&#34;web-error-create-new-conversation&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/o365-authentication/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/o365-authentication/</guid>
      <description>
        
        
        &lt;h1 id=&#34;office-365-authentication&#34;&gt;Office 365 Authentication&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Description of the Office 365 authentication made by &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;User authentication on &lt;a href=&#34;../../docs/atria/technical-guidelines/atria-web-interface/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface&lt;/a&gt; is integrated with Office 365, using one internal component component (&lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt;) and one external component (&lt;em&gt;&lt;strong&gt;keycloak&lt;/strong&gt;&lt;/em&gt;), managed by &lt;strong&gt;Novum&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; component works as a reverse proxy, receiving requests and redirecting them to &lt;em&gt;&lt;strong&gt;keycloak&lt;/strong&gt;&lt;/em&gt; in case they are not authenticated.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;Keycloak&lt;/strong&gt;&lt;/em&gt; manages the application users and has a connector for Office 365, so it redirects to the Office365 login web to identify with the &lt;em&gt;&lt;a href=&#34;https://www.telefonica.com&#34;&gt;www.telefonica.com&lt;/a&gt;&lt;/em&gt; corporate account.&lt;/li&gt;
&lt;li&gt;In case of correct login, it loads the proxified web with a cookie (and optionally, other headers) where the user is already logged in.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;authentication-workflow&#34;&gt;Authentication workflow&lt;/h2&gt;
&lt;p&gt;The authentication process will be transparent for the &lt;a href=&#34;../../docs/atria/technical-guidelines/atria-web-interface/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; web interface&lt;/a&gt; and, therefore, for developers.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;atria&lt;/strong&gt;&lt;/em&gt; web interface may have no authentication at all, or a basic one, and &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;keycloak&lt;/strong&gt;&lt;/em&gt; are in charge of the entire process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; component will be deployed, configured and operated by the Aura DevOps team.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;keycloak&lt;/strong&gt;&lt;/em&gt; component will be managed by the Novum team, including granting access to a user list.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;sequence-diagram&#34;&gt;Sequence diagram&lt;/h3&gt;
&lt;pre class=&#34;mermaid&#34;&gt;sequenceDiagram
    actor Browser
    Browser-&amp;gt;&amp;gt;&amp;#43;OAuth2 Proxy: Request /*
    OAuth2 Proxy--&amp;gt;&amp;gt;-Browser: Redirect to Keycloak&amp;#39;s login page
    Browser-&amp;gt;&amp;gt;&amp;#43;Keycloak: User login
    Keycloak-&amp;gt;&amp;gt;Keycloak: O365 Login
    Keycloak--&amp;gt;&amp;gt;-Browser: Redirect to /oauth2/callback
    Browser-&amp;gt;&amp;gt;&amp;#43;OAuth2 Proxy: Request /oauth2/callback
    OAuth2 Proxy-&amp;gt;&amp;gt;&amp;#43;Keycloak: Get access token
    Keycloak--&amp;gt;&amp;gt;-OAuth2 Proxy: Send id &amp;amp; access token
    OAuth2 Proxy--&amp;gt;&amp;gt;-Browser: Send session cookie and redirect to /*
    Browser-&amp;gt;&amp;gt;&amp;#43;OAuth2 Proxy: Request /*
    OAuth2 Proxy-&amp;gt;&amp;gt;&amp;#43;Atria web interface: Request /*
    Atria web interface--&amp;gt;&amp;gt;-OAuth2 Proxy: HTTP response
    OAuth2 Proxy--&amp;gt;&amp;gt;-Browser: HTTP response&lt;/pre&gt;
&lt;h2 id=&#34;authentication-steps&#34;&gt;Authentication steps&lt;/h2&gt;
&lt;p&gt;The three main authentication steps are detailed below, together with the team in charge of its execution.&lt;/p&gt;
&lt;h3 id=&#34;1-installation&#34;&gt;1. Installation&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;A new environment must be created using the aurak8s installer, where &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; will be installed and configured.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Responsible teams&lt;/strong&gt;: Novum&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Once installed, it is necessary to create a new client in &lt;strong&gt;keycloak&lt;/strong&gt;, with the redirection URL &lt;code&gt;https://&amp;lt;deployed-env&amp;gt;/oauth2/callback&lt;/code&gt; and create a user group with the members that will have access.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;oauth2-proxy-tips-from-cross-team&#34;&gt;OAuth2-proxy tips from Cross team&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; is designed to be installed one per environment.&lt;/li&gt;
&lt;li&gt;Redis is necessary, and one instance per environment is also required to be installed.&lt;/li&gt;
&lt;li&gt;In Kubernetes, virtualserver in Nginx is used to configured ingress traffic.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;keycloak-tips-from-novum-team&#34;&gt;Keycloak tips from Novum team&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Login: The only login screen will be the one from Office 365.&lt;/li&gt;
&lt;li&gt;Logout: Usually, it is not required. If we want to use it, it will logout the user from O365 (for all web apps).&lt;/li&gt;
&lt;li&gt;CORS: Identify static REST endpoints and configure two different rules.&lt;/li&gt;
&lt;li&gt;Error codes: The web application will not see typically any auth error code.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-requesting-access-for-users&#34;&gt;2. Requesting access for users&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Responsible teams&lt;/strong&gt;: Aura &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; team and Novum&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The Aura &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; team must pass a list to Novum team for requesting access for certain users.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Each user must have the following data:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Name: Full name of the user&lt;/li&gt;
&lt;li&gt;Email: E-mail of the user&lt;/li&gt;
&lt;li&gt;Group: A list of keycloak groups to where the user must be added (typically, one per environment, &lt;em&gt;dev&lt;/em&gt;, &lt;em&gt;pre&lt;/em&gt; and &lt;em&gt;pro&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Novum team is in charge of providing access to these users.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;3-virtualserver&#34;&gt;3. Virtualserver&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Responsible teams&lt;/strong&gt;: Aura &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; DevOps team&lt;/p&gt;
&lt;p&gt;Virtualserver is used to configured Nginx. We have two virtualserver in the authentication method:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;aura-services virtualserver&lt;/strong&gt;: we have to modify it to add two paths:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;/aura-mf-base-atria&lt;/strong&gt;&lt;/em&gt;: redirect to &lt;em&gt;&lt;strong&gt;aura-mf-base-atria&lt;/strong&gt;&lt;/em&gt; if the user is logged in or if not to the next path.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;/oauth2/auth&lt;/strong&gt;&lt;/em&gt;: redirect to &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; service.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;oauth virtualserver&lt;/strong&gt;:  redirect to &lt;em&gt;&lt;strong&gt;oauth2-proxy&lt;/strong&gt;&lt;/em&gt; service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;An example is shown below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;aura-services virtualserver /aura-mf-base-atria&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;    location /aura-mf-base-atria {
         auth_request /oauth2/auth;
         error_page 401 =302 https://auth-svc-ap-nine.auracognitive.com/oauth2/start?rd=$scheme://$host$request_uri;
         auth_request_set $user   $upstream_http_x_auth_request_user;
         auth_request_set $email  $upstream_http_x_auth_request_email;
         proxy_set_header X-User  $user;
         proxy_set_header X-Email $email;
         auth_request_set $token $upstream_http_authorization;
         proxy_set_header Authorization $token;
         auth_request_set $auth_cookie $upstream_http_set_cookie;
         add_header Set-Cookie $auth_cookie;
         auth_request_set $auth_cookie_name_upstream_1 $upstream_cookie_auth_cookie_name_1;
         if ($auth_cookie ~* &amp;#34;(; .*)&amp;#34;) {
             set $auth_cookie_name_0 $auth_cookie;
             set $auth_cookie_name_1 &amp;#34;auth_cookie_name_1=$auth_cookie_name_upstream_1$1&amp;#34;;
         }
         # Send both Set-Cookie headers now if there was a second part
         if ($auth_cookie_name_upstream_1) {
             add_header Set-Cookie $auth_cookie_name_0;
             add_header Set-Cookie $auth_cookie_name_1;
         }
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header Host            $http_host;
         proxy_pass http://aura-mf-base-atria:4000/aura-mf-base-atria;
    }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;aura-services virtualserver /oauth2/auth&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;  - action:
      proxy:
        upstream: oauth2-proxy
    location-snippets: |
      proxy_pass_request_body off;
      proxy_set_header Content-Length &amp;#34;&amp;#34;;
    path: /oauth2/auth
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;oauth virtualserver /&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;  routes:
  - action:
      proxy:
        upstream: oauth2-proxy
    path: /
  tls:
    secret: nginx-certificates
  upstreams:
  - name: oauth2-proxy
    port: 80
    service: oauth2-proxy
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/atria-error-management/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/atria-error-management/</guid>
      <description>
        
        
        &lt;h1 id=&#34;atria-error-management&#34;&gt;ATRIA error management&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Documents defining the most common errors in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; components and how to handle them&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index-of-documents&#34;&gt;Index of documents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/atria-error-management/atria-model-gw-errors-manager/&#34;&gt;atria-model-gateway error management&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-components/apis-documentation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-components/apis-documentation/</guid>
      <description>
        
        
        &lt;h1 id=&#34;atria-apis-documentation&#34;&gt;ATRIA APIs documentation&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;List of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; APIs&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;atria-apis-index&#34;&gt;ATRIA APIs index&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/aura-gateway-api/api-definition/&#34;&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; API definition&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-components/atria-model-gateway/api-definition/&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; API definition&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/create-preset-guidelines/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/create-preset-guidelines/</guid>
      <description>
        
        
        &lt;h1 id=&#34;tutorial-create-new-copilot-preset-using-aura-configuration-api&#34;&gt;Tutorial: Create new Copilot preset using Aura Configuration API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Comprehensive guidelines for the creation of a new preset in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; for &lt;em&gt;&lt;strong&gt;Aura Copilot&lt;/strong&gt;&lt;/em&gt; using &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;As an example of the process for the creation of a new preset in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, the current document shows the detailed guidelines to create a new &lt;em&gt;&lt;strong&gt;Aura Copilot&lt;/strong&gt;&lt;/em&gt; preset in a specific environment through the use of &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It is important to follow the following steps in the correct order&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;#1-prerequisites&#34;&gt;Prerequisites&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#2-create-a-new-preset-in-aura-configuration-api&#34;&gt;Create a new preset in &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#3-include-the-new-preset-in-an-application&#34;&gt;Include the new preset in an application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#4-upload-documents-and-execute-generate-db-job&#34;&gt;Upload documents and execute the &lt;em&gt;&lt;strong&gt;generate-db&lt;/strong&gt;&lt;/em&gt; job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#5-update-aura-applications-configuration-via-api&#34;&gt;Update Aura applications configuration via API&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;

&lt;h2 id=&#34;1-prerequisites&#34;&gt;1. Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Recommended installations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kubectl&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;curl&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;jq&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You must have access to Azure container &lt;code&gt;atria-resources&lt;/code&gt; in order to upload documents.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;2-create-a-new-preset-in-aura-configuration-api&#34;&gt;2. Create a new preset in &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;preset&lt;/strong&gt; is defined as a configurable entity to define the instructions to work with the AI model for the resolution of the use case.&lt;/p&gt;
&lt;p&gt;The creation of a new preset in a specific environment is a key part of &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration. The general guidelines for this task are included in:&lt;/p&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; &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#13-create-new-preset&#34;&gt;Modify &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration: Create a new preset&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;example-of-the-new-preset&#34;&gt;Example of the new preset&lt;/h3&gt;
&lt;p&gt;This can be the structure and fields of the new preset for &lt;em&gt;&lt;strong&gt;Aura Copilot&lt;/strong&gt;&lt;/em&gt;, including the prompt with instructions.&lt;/p&gt;
  &lt;details open&gt;
  &lt;summary&gt; New preset&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;a2cdb523-883e-44ab-8e0b-2d164dd98346&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;new-copilot-preset&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;New copilot preset&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 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;timeout&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;30&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;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;sql&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-4o&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;16384&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.01&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;references&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;maximum&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 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;baseUrl&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-copilot/jsonl&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;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;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;en&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;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-copilot&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;test_distilbert&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;jsonl&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;jsonl&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;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&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;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;tfidf&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;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;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;sqlPrompt&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;{% raw %}\nGenerate a SQL query statement to answer the following question:\n`{question}`\n    \nUse the data contained in the following table. You have its definition in SQL and in Avro.\n{sql_table_definition}\n    \n    \nThe following tables, containing auxiliary information, are also available:\n```sql\nCREATE TABLE D_CBD_Static_Geo_Area_v6 (GEO_AREA_ID VARCHAR, CBD_GEO_AREA_LEVEL1_ID VARCHAR, CBD_GEO_AREA_LEVEL2_ID VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area IS &amp;#39;Geographical areas. This table contains foreign keys to the different levels of geographical areas. In particular, it contains the foreign keys to these tables: CBD_Static_Geo_Area_Level1, CBD_Static_Geo_Area_Level2, CBD_Static_Geo_Area_Level3, CBD_Static_Geo_Area_Level4. Therefore, this tables is used, via JOIN, to query the geographical information contained in the different levels of geographical areas. For instance, if you have a table T with a field GEO_AREA_ID and you need to check whether this location corresponds to the region of Asturias you will need to look for GEO_AREA_ID in this table, then extract the CBD_GEO_AREA_LEVEL4_ID and query the table CBD_Static_Geo_Area_Level4 to get the name of the region.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL1_ID IS &amp;#39;Identifier of the geographical area Level 1 (max level of detail: CP or similar). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level2_v6 (CBD_GEO_AREA_LEVEL2_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level2 IS &amp;#39;Geographical area level 2 (State)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 2. FORMAT: alphanumeric string containing the name of the city/town.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level3_v6 (CBD_GEO_AREA_LEVEL3_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, ISO_3166_2_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level3 IS &amp;#39;Geographical area level 3 (Region)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 3. FORMAT: alphanumeric string containing the name of the province.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 3&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 3&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.ISO_3166_2_CD IS &amp;#39;ISO 3166-2 associated&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level4_v6 (CBD_GEO_AREA_LEVEL4_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, HASC_1_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level4 IS &amp;#39;Geographical area level 4 (min. Detail)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 4. FORMAT: alphanumerical string containing the name of the state/region. EXAMPLE VALUES: &amp;#39;&amp;#39;Asturias&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Andaluc\u00eda&amp;#39;&amp;#39;, etc.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 4&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 4&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.HASC_1_CD IS &amp;#39;Hierarchical administrative subdivision codes &amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Station_Type_v6 (STATION_TYPE_CD VARCHAR, TECH_LEVEL_WEIGHT_QT FLOAT, STATION_TYPE_L2_DES VARCHAR, STATION_TYPE_L1_DES VARCHAR, STATION_TYPE_L2_ORDER_NUM INT, STATION_TYPE_L1_ORDER_NUM INT, STATION_TYPE_ORDER_NUM INT, CONSCIOUS_IND BOOLEAN, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Station_Type IS &amp;#39;Station types&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_CD IS &amp;#39;Description: Type of device connected to the HGU router. It used to find out which devices are connected to routers in households. Format: String. Example values: \&amp;#34;A/V Equipment\&amp;#34;, \&amp;#34;Air Conditioning\&amp;#34;, \&amp;#34;Air Conditioning Control\&amp;#34;, \&amp;#34;Apple Handheld Device\&amp;#34;, \&amp;#34;Apple Home Device\&amp;#34;, \&amp;#34;AudioCast\&amp;#34;, \&amp;#34;Audiocast\&amp;#34;, \&amp;#34;Barcode Printer\&amp;#34;, \&amp;#34;Camera\&amp;#34;, \&amp;#34;Car Dash Cam\&amp;#34;, \&amp;#34;Cryptominner\&amp;#34;, \&amp;#34;Digital Clock\&amp;#34;, \&amp;#34;Dishwasher\&amp;#34;, \&amp;#34;Drone Equipment\&amp;#34;, \&amp;#34;GPS\&amp;#34;, \&amp;#34;Gaming Console\&amp;#34;, \&amp;#34;Hyper Media Player\&amp;#34;, \&amp;#34;IP Camera\&amp;#34;, \&amp;#34;IPC Hub\&amp;#34;, \&amp;#34;IPC Video Recorder\&amp;#34;, \&amp;#34;IoT Device\&amp;#34;, \&amp;#34;Key Cutting Machine\&amp;#34;, \&amp;#34;Media Center\&amp;#34;, \&amp;#34;Monitoring Device\&amp;#34;, \&amp;#34;Multimedia Player\&amp;#34;, \&amp;#34;Network Access Point\&amp;#34;, \&amp;#34;Network Equipment\&amp;#34;, \&amp;#34;PC\&amp;#34;, \&amp;#34;PDA\&amp;#34;, \&amp;#34;PIR Sensor\&amp;#34;, \&amp;#34;Print Server\&amp;#34;, \&amp;#34;Printer\&amp;#34;, \&amp;#34;Projector\&amp;#34;, \&amp;#34;Raspberry\&amp;#34;, \&amp;#34;Router\&amp;#34;, \&amp;#34;Security System\&amp;#34;, \&amp;#34;Smart AC Control\&amp;#34;, \&amp;#34;Smart Air Freshener\&amp;#34;, \&amp;#34;Smart Air Fryer\&amp;#34;, \&amp;#34;Smart Air Ventilator\&amp;#34;, \&amp;#34;Smart Animal Feeder\&amp;#34;, \&amp;#34;Smart Baby Monitor\&amp;#34;, \&amp;#34;Smart Blind\&amp;#34;, \&amp;#34;Smart Bulb\&amp;#34;, \&amp;#34;Smart Bulb Adapter\&amp;#34;, \&amp;#34;Smart Car\&amp;#34;, \&amp;#34;Smart Car e-Charger\&amp;#34;, \&amp;#34;Smart Display e-bike\&amp;#34;, \&amp;#34;Smart Energy Analyzer\&amp;#34;, \&amp;#34;Smart Home Controller\&amp;#34;, \&amp;#34;Smart Home Hub\&amp;#34;, \&amp;#34;Smart Humidifier\&amp;#34;, \&amp;#34;Smart Hydrometer Clock\&amp;#34;, \&amp;#34;Smart Kitchen Appliances\&amp;#34;, \&amp;#34;Smart Kitchen Scale\&amp;#34;, \&amp;#34;Smart Lamp\&amp;#34;, \&amp;#34;Smart Light Dimmer\&amp;#34;, \&amp;#34;Smart Lock Control\&amp;#34;, \&amp;#34;Smart Plug\&amp;#34;, \&amp;#34;Smart Pool\&amp;#34;, \&amp;#34;Smart Power Strip\&amp;#34;, \&amp;#34;Smart Purifier\&amp;#34;, \&amp;#34;Smart Scale\&amp;#34;, \&amp;#34;Smart Signage\&amp;#34;, \&amp;#34;Smart Speaker\&amp;#34;, \&amp;#34;Smart Switch\&amp;#34;, \&amp;#34;Smart TV\&amp;#34;, \&amp;#34;Smart Thermostat\&amp;#34;, \&amp;#34;Smart Toothbrush\&amp;#34;, \&amp;#34;Smart Vacuum\&amp;#34;, \&amp;#34;Smart WallSocket\&amp;#34;, \&amp;#34;Smart Watch\&amp;#34;, \&amp;#34;Smart Watch Fit\&amp;#34;, \&amp;#34;Smart WifiButton\&amp;#34;, \&amp;#34;Smartphone\&amp;#34;, \&amp;#34;Smartphone/Tablet\&amp;#34;, \&amp;#34;Smartwatch\&amp;#34;, \&amp;#34;Smartwatch Fit\&amp;#34;, \&amp;#34;Solar Panel Equipment\&amp;#34;, \&amp;#34;Soundbar\&amp;#34;, \&amp;#34;Steam Controller\&amp;#34;, \&amp;#34;Storage Device\&amp;#34;, \&amp;#34;TPV\&amp;#34;, \&amp;#34;TV Dongle\&amp;#34;, \&amp;#34;Tablet\&amp;#34;, \&amp;#34;Tempest Weather System\&amp;#34;, \&amp;#34;UPS\&amp;#34;, \&amp;#34;VR/AR Headset\&amp;#34;, \&amp;#34;Video Doorbell\&amp;#34;, \&amp;#34;Video Intercom\&amp;#34;, \&amp;#34;Video STB Equipment\&amp;#34;, \&amp;#34;VideointercomIP\&amp;#34;, \&amp;#34;Virtual Desktop\&amp;#34;, \&amp;#34;VoIP Phone\&amp;#34;, \&amp;#34;WAN Extender\&amp;#34;, \&amp;#34;WiFi Extender\&amp;#34;, \&amp;#34;Wifi Dongle\&amp;#34;, \&amp;#34;Wireless Blood Pressure Monitor\&amp;#34;, \&amp;#34;Wireless Bridge\&amp;#34;, \&amp;#34;Wireless Headphones\&amp;#34;, \&amp;#34;Wireless Router + VoIP Series\&amp;#34;, \&amp;#34;e-Note\&amp;#34;, \&amp;#34;eBook\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.TECH_LEVEL_WEIGHT_QT IS &amp;#39;Associated weight for the technologic level of the home&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_DES IS &amp;#39;Description: Higher level device type grouping. Example values: \&amp;#34;PCs &amp;amp; Home Office\&amp;#34;, \&amp;#34;Smartphones / Tablets / eReaders / iWatch\&amp;#34;, \&amp;#34;Multimedia Entertainment\&amp;#34;, \&amp;#34;Gaming\&amp;#34;, \&amp;#34;Sport &amp;amp; Health\&amp;#34;, \&amp;#34;Smart Home\&amp;#34;, \&amp;#34;Unknown\&amp;#34;, \&amp;#34;Network Devices\&amp;#34;, \&amp;#34;Security &amp;amp; Control\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_DES IS &amp;#39;Description: Intermediate level device type grouping. Example values: \&amp;#34;Smart Speakers &amp;amp; Audio\&amp;#34;, \&amp;#34;PCs &amp;amp; Home Office\&amp;#34;, \&amp;#34;Video Entertainment\&amp;#34;, \&amp;#34;Domestic Appliances\&amp;#34;, \&amp;#34;Smart Energy &amp;amp; Lighting\&amp;#34;, \&amp;#34;Apple Handheld Device\&amp;#34;, \&amp;#34;Smartphones / Tablets / eReaders\&amp;#34;, \&amp;#34;Gaming\&amp;#34;, \&amp;#34;Sport &amp;amp; Health\&amp;#34;, \&amp;#34;Network Devices\&amp;#34;, \&amp;#34;Security &amp;amp; Control\&amp;#34;, \&amp;#34;IoT\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_ORDER_NUM IS &amp;#39;Station type order level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_ORDER_NUM IS &amp;#39;Station type order level 1&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_ORDER_NUM IS &amp;#39;Station type order&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.CONSCIOUS_IND IS &amp;#39;Indicates if the related device type has energy efficiency&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_Segment_v8 (OPERATOR_ID VARCHAR, SEGMENT_ID VARCHAR, SEGMENT_DES VARCHAR, GBL_SEGMENT_ID VARCHAR, SEGMENT_GROUP_ID VARCHAR, SEGMENT_GROUP_DES VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_Segment IS &amp;#39;Classifications of the customers, attending to different segmentation criteria, for marketing and management issues, according to OB criteria and its correspondence with the global segment classification&amp;#39;;\n    COMMENT ON COLUMN D_Segment.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_ID IS &amp;#39;Description: Organisational segment of the client. Format: two letter string. Possible values: &amp;#39;&amp;#39;NT&amp;#39;&amp;#39; - NTT, &amp;#39;&amp;#39;GP&amp;#39;&amp;#39; - Residencial, &amp;#39;&amp;#39;PE&amp;#39;&amp;#39; - Pymes, &amp;#39;&amp;#39;RE&amp;#39;&amp;#39; - Residencial/SC, &amp;#39;&amp;#39;AU&amp;#39;&amp;#39; - Autonomos, &amp;#39;&amp;#39;OP&amp;#39;&amp;#39; - Operadores, &amp;#39;&amp;#39;GC&amp;#39;&amp;#39; - Grandes Clientes, &amp;#39;&amp;#39;RP&amp;#39;&amp;#39; - Residencial Prepago, &amp;#39;&amp;#39;TE&amp;#39;&amp;#39; - Telefonica, &amp;#39;&amp;#39;SC&amp;#39;&amp;#39; - Sin Clasificar, &amp;#39;&amp;#39;ME&amp;#39;&amp;#39; - Empresas&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_DES IS &amp;#39;Description: Name or description of the organisational segment of the client (provides the description for each segment identifier). Format: string. Example values: &amp;#39;&amp;#39;Residencial&amp;#39;&amp;#39;,  &amp;#39;&amp;#39;Pymes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Autonomos&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Operadores&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Grandes Clientes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Sin Clasificar&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_Segment.GBL_SEGMENT_ID IS &amp;#39;ID of the global segment classification&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_ID IS &amp;#39;ID code of the segmentation group&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_DES IS &amp;#39;Description of the segmentation group&amp;#39;;\n    COMMENT ON COLUMN D_Segment.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\nCREATE TABLE D_Fixed_Tariff_Plan_v8 (OPERATOR_ID VARCHAR, DAY_DT VARCHAR, TARIFF_PLAN_ID VARCHAR, TARIFF_PLAN_DES VARCHAR, VOICE_IND BOOLEAN, BBAND_IND BOOLEAN, TV_IND BOOLEAN, WORKSTATION_IND BOOLEAN, APP_IND BOOLEAN, VOICE_BUNDLE_QT FLOAT, BBAND_UP_SPEED_QT FLOAT, BBAND_DOWN_SPEED_QT FLOAT, TV_TYPE_CD VARCHAR, FIXED_SERVICE_COMMERCIAL_NAME VARCHAR, COMMERCIAL_IND BOOLEAN, TARIFF_PLAN_START_DT VARCHAR, TARIFF_PLAN_END_DT VARCHAR, CONVERGENT_IND BOOLEAN, BRAND_ID VARCHAR);\n    COMMENT ON TABLE D_Fixed_Tariff_Plan_v8 IS &amp;#39;Every fixed Tariff to be applied, either Commercial, Convergent, Individual, or any other, for any product&amp;amp;service for the fixed client base&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.DAY_DT IS &amp;#39;Year, month and day of the data  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_ID IS &amp;#39;Unique identifier of the tariff plan&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_DES IS &amp;#39;Name/short description of the tariff plan&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_IND IS &amp;#39;Indicates whether the line has a fixed line voice service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_IND IS &amp;#39;Indicates whether the line has a Broadband service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_IND IS &amp;#39;Indicates if the line has a TV service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.WORKSTATION_IND IS &amp;#39;Indicates if the line has a workstation service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.APP_IND IS &amp;#39;Indicates if the line has the \&amp;#34;Aplicateca service\&amp;#34; associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_BUNDLE_QT IS &amp;#39;Amount of data associated with the voice bundle&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_UP_SPEED_QT IS &amp;#39;Broadband up speed (Mbps)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_DOWN_SPEED_QT IS &amp;#39;Broadband down speed (Mbps)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_TYPE_CD IS &amp;#39;Type of TV line&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.FIXED_SERVICE_COMMERCIAL_NAME IS &amp;#39;Commercial name of the service&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.COMMERCIAL_IND IS &amp;#39;Indicates if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID.    Fill-in with 1 if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID or 0 if it doesn&amp;#39;&amp;#39;t    0 = Non commercial tariff  1 = commercial tariff&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_START_DT IS &amp;#39;Start date of the tariff plan validity (that day is the first day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_END_DT IS &amp;#39;End date of the tariff plan validity (that day is the last day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.CONVERGENT_IND IS &amp;#39;Flag indicating if the current fixed tariff plan can be configured as a \&amp;#34;Convergent tariff plan\&amp;#34;, i. e., a plan with special conditions due to the fact of including at least one Fixed line/service and one Mobile line.   0 = No (the plan can&amp;#39;&amp;#39;t be configured as convergent)   1 = Yes (the plan can be configured as convergent)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BRAND_ID IS &amp;#39;Commercial brand identifier. In order to differentiate among different brands in the same OB (e.g. Movistar, O2, Tuenti...)&amp;#39;;\n```\nSome of the former tables contain columns in full-qualified format. For instance, these are some examples of full-qualified columns:\n```\nrecord_name.field_name\nTEC_PLAT_REC.DEVICE_ID\nrecord_name.subrecord_name.field_name\nTEC_PLAT_REC.TEC_PLAT_SUBCOMP_REC.DEVICE_ID\n...\n```\nAlways use the full-qualified format when referring to columns in the tables. For instance, if you need to use the column &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;, you should not refer to it as &amp;#39;DEVICE_ID&amp;#39;, but as &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;.\n**Explain in detail, step by step, all your decisions**. \n# General instructions \nFollow these reasoning steps to generate the SQL query:\n- Step 1: Identify Necessary Tables\n- Step 2: Identify Useful Candidate Columns\n- Step 3: Assess if Tables and Columns are Sufficient to Answer the Question\n- Step 4: Identify Columns Contained in Maps\n- Step 5: Plan the SQL Query\n- Step 6: Write the final SQL Query and apply the rules\n- Step 7: Check that the query actually can answer the question\n- Step 8: Create the result as a JSON object \nIf you need to filter by a higher level geographical such as a region (Comunidad Autónoma) you will need to:\n- join the `GEO_AREA_ID` field of the data table (such as `CBD_HGU_Detail_Daily_v10`) with the `GEO_AREA_ID` field in `D_CBD_Static_Geo_Area_v6` table\n- then join the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_v6` with the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_Level4_v6` table   \n- then compare the `GEO_AREA_LEVEL_DES` field in the `D_CBD_Static_Geo_Area_Level4_v6` table with the name of the region (e.g., &amp;#39;Cantabria&amp;#39;), since the DESCRIPTION field does contain the actual name of the geographical area.\n**Only perform these joins if explicit filtering or grouping by geographical location is necessary**.\n# Detailed instructions\n### Step 1: Identify Necessary Tables\nFirst, identify which tables are necessary to answer the question `{question}`. Justify why you selected each of these tables. \nUse the following format:\n```\nI need the following tables to answer the question:\n- &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;\n- &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;\n...\n```\n### Step 2: Identify Useful Candidate Columns\nIdentify which columns are useful to answer the question `{question}`. Justify why you selected each of these columns.\nAlways include any column you think may be needed to answer the question. If there are similar columns in the table, you should identify all of them always. You will later choose which them are more suitable to answer the question. But, at this stage, you should include **all the columns that may be useful**.\nWrite the list of candidate columns you identified, and the reasoning after each column, using the following format:\n```\nI can use the following candidate columns to answer the question (including all the columns that may be useful):\n- &amp;lt;table name&amp;gt;:\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;. \n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  ...\n- &amp;lt;table_name&amp;gt;:\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  ...\n...\n```\n### Step 3: Assess if Tables and Columns are Sufficient to Answer the Question\nTell if the tables and columns you identified are enough to answer the question `{question}`. Make sure to justify your answer and check the actual descriptions of the columns in the table definitions and the user question.\nWrite the answer using the following format:\n```\nPossible to answer the question using the former columns: \n- &amp;lt;reasoning&amp;gt;\n- Result: &amp;lt;Yes|No&amp;gt;\n```\n### Step 4: Identify Columns Contained in Maps\nSome columns are actually contained in a map structure. Since these columns need to be queried differently, you need to identify them.\nColumns with a name like &amp;#39;&amp;lt;some_name&amp;gt;.map.&amp;lt;other_name&amp;gt;&amp;#39; are contained in maps. \nFor instance, the column `STATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD` is contained in a map structure called `STATIONS_DETAIL_REC.UNQ_STATION_MAP`.\nThis map structure is like this:\n```\nSTATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD: {{\n    &amp;lt;key1&amp;gt;: {{\n        &amp;lt;some_field&amp;gt;; &amp;lt;some_value&amp;gt;,\n        \&amp;#34;STATION_TYPE_CD\&amp;#34;: &amp;lt;station_type_value1&amp;gt;\n    }},\n    &amp;lt;key2&amp;gt;: {{\n        &amp;lt;some_other_field&amp;gt;; &amp;lt;some_other_value&amp;gt;,\n        \&amp;#34;STATION_TYPE_CD\&amp;#34;: &amp;lt;station_type_value2&amp;gt;\n    }},\n...\n}}\n```\nTherefore, in this step, identify which columns are contained in maps since you will later need to use LATERAL VIEW EXPLODE to access the values of these maps.\n### Step 5: Plan the SQL Query  \nExplain, step by step, how you would write the SQL query to answer the question `{question}`, using the columns you identified. \n**Use the full qualified names of the columns**. **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.\nSome columns are contained in map structures. You can access the fields of the map using LATERAL VIEW EXPLODE. Do not use UNNEST to access the fields of the map.\nIn particular, you can create a temporary table with the exploded map and then query it. For instance, if you need to get the value of the `ABC.CDE.map.field` column, you should use the following SQL code to create a temporary table with the exploded map data and get the value of the field:\n```sql\nWITH exploded_map AS (\n  SELECT key, value.field_1, value,field_2, value.field_3  -- Select here all the columns/fields you will use later. \n  FROM &amp;lt;table_name&amp;gt;\n  LATERAL VIEW EXPLODE(ABC.CDE) AS key, value\n)\nSELECT exploded_map.field_1\nFROM exploded_map\n``` \nThis is another example:\n```sql\n  WITH exploded_map AS (\n  SELECT DATE, ID, RECORD.GROUP, value.CODE  -- Select here all the columns/fields you will use later.\n    FROM CBD_HGU_Detail_Daily_Aura_v10 LATERAL VIEW EXPLODE(STATIONS_DETAIL_REC.UNQ_STATION_MAP) AS key, value) \n  SELECT COUNT(DISTINCT ID) AS num_homes \n  FROM exploded_map JOIN D_Segment_v8 ON exploded_map.CLASS_ID = D_Segment_v8.CLASS_ID \n    WHERE DATE BETWEEN &amp;#39;2024-01-01&amp;#39; AND &amp;#39;2024-02-01&amp;#39; \n      AND D_Segment_v8.DESCRIPTION = &amp;#39;DESCRIPTION value&amp;#39; \n      AND exploded_map.CODE = &amp;#39;CODE value&amp;#39;    \n```\nHere is another example. If you need to count the number of elements in a map column named &amp;#39;ABC.map&amp;#39; you should use a code like this:\n```sql\nWITH exploded_map AS (\n  SELECT key_from_exploded_map\n  FROM &amp;lt;table_name&amp;gt;\n  LATERAL VIEW EXPLODE(ABC) AS key_from_exploded_map, value_from_exploded_map\n)\nSELECT COUNT(key_from_exploded_map)\nFROM exploded_map\n```\nTake into account that all map fields are named with the suffix `_MAP`. Take into account that you can only use the operation EXPLODE to fields that are maps. Therefore, you should use the EXPLODE operation only on fields that end with `_MAP`.\nTo finish this step, explain how you would write the SQL query to answer the question, using the columns you identified, taking into account the previous considerations for columns contained in maps, if there are any.\n### Step 6: Write the final SQL Query and apply the rules\nFinally, write the SQL query to answer the question `{question}`, using the columns you identified. \nRemarks:\n**DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.\n**IMPORTANT: The keys in the exploded maps should not be used in JOIN operations, since they are just internal keys to the map structure.**\nCheck if you need to use any of the following **business rules** to build the query:\n```json\n{{\n  \&amp;#34;rules\&amp;#34;: [\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Fiction\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;ficción\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FICCION%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%SERIES%&amp;#39;, &amp;#39;%CINE%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCION%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCIÓN%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%SERIES%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CINE%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Disney\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;Disney\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DISNEY%&amp;#39;.  To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DISNEY%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B3\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Football\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including football contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FUTBOL%&amp;#39;, &amp;#39;%FÚTBOL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;,  &amp;#39;%FUSION TA TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TA TOTAL%&amp;#39;, &amp;#39;%LIGA%&amp;#39;, &amp;#39;%CHAMPION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one:  `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUTBOL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FÚTBOL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%LIGA%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CHAMPION%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B4\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Netflix\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;Netflix\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%NETFLIX%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%FICCION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%NETFLIX%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B5\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Promociones\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;promotions\&amp;#34;, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%PROMO%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%PROMO%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B6\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Edad promedio 1\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;You are not allowed to use the field `CBD_INFO_REC.CUST_AGE_NUM` in any query. You should use the field `CBD_INFO_REC.CUST_AGE_SEGMENT_CD` instead.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B7\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Edad promedio 2\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to calculate the average age of customers you should use the  following calculation instead of AVG(CBD_INFO_REC.CUST_AGE_SEGMENT_CD): AVG(IF(CBD_INFO_REC.CUST_AGE_SEGMENT_CD = &amp;#39;1&amp;#39;, NULL, CBD_INFO_REC.CUST_AGE_SEGMENT_CD))\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B8\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Query by customers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to query by customers: if the time scope of the query is daily or weekly then you should use the `DEVICE_ID` field. If the time scope of the query is monthly or longer then you should use the `CUSTOMER_ID` field.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B9\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `STATION_TYPE_L2` corresponds to a higher aggregation level than `STATION_TYPE_L1`.  `STATION_TYPE_L1` corresponds to an intermediate category, used only with analytical purposes.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B10\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Active devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check whether a device is active at a given date, you should use this check: `DEVICE_INFO_REC.INACTIVITY_DEVICE_INFO_NUM &amp;lt; 24`. If true, the device is active. If false, the device is inactive.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B11\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Penetración de un producto\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked for calculating \&amp;#34;la penetración de un producto\&amp;#34; you should calculate the percentage of customers with that product.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B12\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Obsolete routers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked for obsolete routers, you should check for those with MANUFACT_HGU_CHIPSET_DES IN (&amp;#39;Askey Broadcom&amp;#39;, &amp;#39;Askey Econet&amp;#39;,&amp;#39;MitraStar Broadcom&amp;#39;, &amp;#39;MitraStar Econet&amp;#39;).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B13\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;High value customers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Consider as high value customers those with a monthly revenue higher than 100 (TOTAL_CUST_RV &amp;gt; 100).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B14.1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Technological level formula\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check the technological level of a customer, use the following formula on the field `TECH_LEVEL_WEIGHT_QT` of the table `D_CBD_STATIC_STATION_TYPE_v6`: `SUM(COALESCE(D_CBD_STATIC_STATION_TYPE_v6.TECH_LEVEL_WEIGHT_QT,0) + CASE WHEN AMM.VALUE.STATION_BRAND_DES = &amp;#39;Ubiquiti&amp;#39; THEN 0.8 ELSE 0 END)/COUNT(DISTINCT DAY_DT)`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B14.2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Technological levels\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Consider as **high technological level** customers those with a value higher or equal to 2.5. Consider as **medium technological level** customers those with a value higher or equal to 1 and lower than 2.5. Consider as **low technological level** customers those with a value lower than 1.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B15\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Sport\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;sport\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DEPORTE%&amp;#39;, &amp;#39;%TOTAL PLUS%&amp;#39;, &amp;#39;%TOTAL SAT%PLUS%&amp;#39;, &amp;#39;%MOTOR%&amp;#39;, &amp;#39;%DAZN%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `(UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DEPORTE%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL PLUS%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL SAT%PLUS%&amp;#39; -- Se añade para incluir los \&amp;#34;Total Satelite/Satélite Plus\&amp;#34; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%MOTOR%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DAZN%&amp;#39;)`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Temporary table fields\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;When you use in a filter a given filed from a temporary table, built using the `WITH` clause, make sure that the  field is actually present in the SELECT statement defining the temporary table.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Temporary table field naming\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Example: If you write a temporary table like this: `WITH temp_table AS (SELECT field1_prefix.field1 FROM table)`,  then you should use refer to the field as `field1` and not as `field1_prefix.field1` in the rest of the query.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R3\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Tariff plan\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for some specific tariffs, use the field `TARIFF_PLAN_DES` from the dimensional table D_Fixed_Tariff_Plan instead of using `CBD_INFO_REC.COMMERCIAL_TARIFF_ID` since this last one only contains identifiers without any meaning.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R4.1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type 1\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If the query uses `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES` answer this question: does the value you are looking for, matches one of the possible values of these fields? Justify your answer. Enumerate the possible values of these fields if they are used.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R4.2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type 2\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Apply this rule if the query uses a filter with the field `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES` and the value you are looking for does not match any of the possible values of these fields. In this case, you should use the field `STATION_TYPE_CD` instead. Write the result of the previous reasoning in detail.  REMEMBER TO FIX THE QUERY TO USE THE FIELD `STATION_TYPE_CD` INSTEAD.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R5\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Counting entities\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to count the number of customer, homes, devices or any other entities, you should ensure that you are actually counting distinct entities. Therefore you should use the `COUNT(DISTINCT ...)` function instead of `COUNT(...)`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R6\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Time scope less than a month\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked to answer a question for a time scope minor than a month (daily or weekly) you must not use the field `MONTH_DT` in your query.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R7\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;No UNION operator\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Avoid using the UNION operator in your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R8\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Counting entities\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked to count the number of customers, homes, devices or any other entities, you should ensure that the  result is actually a count and not a list of elements. Therefore you should use the COUNT function.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R9\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;IoT devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for IoT (Internet of Things) devices, you should look for devices with `STATION_TYPE_L2_DES = &amp;#39;Smart Home&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R10\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Router model\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check the model of the router, you should use the field `MANUFACT_HGU_CHIPSET_DES` (do not use other fields such as `MANUFACTURER_FW_VER_DES`).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R11\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Weekly period\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to query data from weekly period, you should start always with the first day of the week (Monday) and end with the last day of the week (Sunday).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R12\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;WiFi type\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for information on a specific WiFi type, such as 2.4 GHz or 5 GHz, you should use the specific fields corresponding to these types.  For instance, if you need to look for WiFi5 device information, you should not use the field `STATIONS_REC.WIFI_REC.ALL_TECH_REC` but the field `STATIONS_REC.WIFI_REC.TECH_5G_REC`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R13\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Equivalent terms for WiFi technologies\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The following terms are considered equivalent: \n- `WiFi 5G`, `WiFi Technology 5G`, `WiFi5`.\n- `WiFi 2.4G`, `WiFi Technology 2.4G`, `WiFi2.4` , `WiFi2`, `WiFi Technology 2G`, `WiFi 2G`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R14\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Customer Satisfaction Index\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `CSI_QT` contains the `Customer Satisfaction Index` value. It is not a quality value but a satisfaction value.  Do not confuse it with Quality Index fields.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R15\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Active HGU devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `CUST_HGU_DEVICES_NUM` contains the number of active HGU devices of the customer, i.e. the number of active routers (HGUs) of the customer.  Do not confuse it with the number of active devices of the customer.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R16\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Megabytes\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The fields starting with `MB_` or containing `_MB_` in their name refer to Megabytes. Take this into account during your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R17\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Gigabytes\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The fields starting with `GB_` or containing `_GB_` in their name refer to Gigabytes. Take this into account during your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R18\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;RSSI meaning\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `RSSI` refers to the `Received Signal Strength Indicator`. It is a measure of the power present in a received radio signal.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R19\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Checking absence of a device\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for homes without a specific type of device, you should not forget checking at least one of the following fields: `STATION_TYPE_L1_DES`, `STATION_TYPE_L2_DES`, `STATION_TYPE_CD`. In other words, you need an explicit filter checking the absence of the device.\n\&amp;#34;\n    }}\n  ]\n}}\n```\nExplain whether you can apply any of the rules and explain how you would apply them in the SQL query.\nAlways write your result following these steps:\n1. SQL query to answer the question `{question}`: &amp;lt;write the SQL query here&amp;gt;\n2. Reasoning: &amp;lt;explain why you wrote the query like that&amp;gt;\n3. Check of the rules, RULE BY RULE and FOR EACH RULE (one entry per rule)2. &amp;lt;write ALL the rules and tell if they are applied or not&amp;gt;. Follow this format:\n- &amp;lt;rule1&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;\n- &amp;lt;rule2&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;\n...\n4. Result of the execution of the rules that have been identified to be applied. Follow this format:\n- &amp;lt;rule1&amp;gt;: &amp;lt;result&amp;gt;\n- &amp;lt;rule2&amp;gt;: &amp;lt;result&amp;gt;\n...\n5. Need to fix the query because &amp;lt;reason&amp;gt;. The following changes are needed: &amp;lt;change_1&amp;gt;, &amp;lt;change 2&amp;gt;, etc. | The query is already correct.\n6. SQL query to answer the question `{question}` after considering the previous **rules**: &amp;lt;write the SQL query here&amp;gt;. FIX THE QUERY IF NECESSARY.\n### Step 7: Check that the query actually can answer the question\nCheck again if the generated query answers the question `{question}`.\nFollow these steps:\n1. Write the concepts involved in the question. Enumerate the concepts as a list. Follow this format:\n - &amp;lt;concept1&amp;gt;\n - &amp;lt;concept2&amp;gt;\n ...\n2. Write all the concepts of the question that are covered by the SQL query. Enumerate them and create a match list with the concepts from the previous step. Write down the part of the SQL query covering the concept. Take into account that conditions on specific proper names, such as model names, location names, etc, need to be explicitly checked. Follow this format:\n - &amp;lt;concept1&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.\n - &amp;lt;concept2&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.\n3. Find those concepts in the question that are not covered by the SQL query.\n4. Conclude whether the question can actually be answered by the generated query. Follow this format:\n - The question can be answered by the SQL query: &amp;lt;Yes|No&amp;gt;\n### Step 8: Create the result as a JSON object\nReturn the result as a unique JSON object, with the following structure:\n{{\n  \&amp;#34;result\&amp;#34;: &amp;lt;Write the SQL query here. **MAKE SURE THAT THE STATEMENT `SELECT JSON_OBJECT` is not used in the query and Use the full qualified names of the columns. Generate a valid SQL sentence in a single line without new line characters.**&amp;gt;,\n  \&amp;#34;status\&amp;#34;: \&amp;#34;OK\&amp;#34;,\n  \&amp;#34;reason\&amp;#34;: &amp;lt;a reasoning explaining the query&amp;gt;\n}}\nIf the former table does not contain the necessary data to answer the question, return the following JSON object:\n{{\n  \&amp;#34;result\&amp;#34;: null,\n  \&amp;#34;status\&amp;#34;: \&amp;#34;ERROR\&amp;#34;,\n  \&amp;#34;reason\&amp;#34;: &amp;lt;a reasoning explaining why it is not possible to answer the question&amp;gt;\n}}\nMake sure that the JSON object is correctly formatted, and can be parsed by a JSON parser.\n**Please, ALWAYS follow the 8 steps presented in the instructions.** Start reasoning with ### Step 1 and finish with ### Step 8.\n{% endraw %}\&amp;#34;\&amp;#34;en\&amp;#34;: \&amp;#34;{% raw %}\nGenerate a SQL query statement to answer the following question:\n`{question}`\n    \nUse the data contained in the following table. You have its definition in SQL and in Avro.\n{sql_table_definition}\n    \n    \nThe following tables, containing auxiliary information, are also available:\n```sql\nCREATE TABLE D_CBD_Static_Geo_Area_v6 (GEO_AREA_ID VARCHAR, CBD_GEO_AREA_LEVEL1_ID VARCHAR, CBD_GEO_AREA_LEVEL2_ID VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area IS &amp;#39;Geographical areas. This table contains foreign keys to the different levels of geographical areas. In particular, it contains the foreign keys to these tables: CBD_Static_Geo_Area_Level1, CBD_Static_Geo_Area_Level2, CBD_Static_Geo_Area_Level3, CBD_Static_Geo_Area_Level4. Therefore, this tables is used, via JOIN, to query the geographical information contained in the different levels of geographical areas. For instance, if you have a table T with a field GEO_AREA_ID and you need to check whether this location corresponds to the region of Asturias you will need to look for GEO_AREA_ID in this table, then extract the CBD_GEO_AREA_LEVEL4_ID and query the table CBD_Static_Geo_Area_Level4 to get the name of the region.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL1_ID IS &amp;#39;Identifier of the geographical area Level 1 (max level of detail: CP or similar). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level2_v6 (CBD_GEO_AREA_LEVEL2_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level2 IS &amp;#39;Geographical area level 2 (State)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 2. FORMAT: alphanumeric string containing the name of the city/town.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level3_v6 (CBD_GEO_AREA_LEVEL3_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, ISO_3166_2_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level3 IS &amp;#39;Geographical area level 3 (Region)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 3. FORMAT: alphanumeric string containing the name of the province.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 3&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 3&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.ISO_3166_2_CD IS &amp;#39;ISO 3166-2 associated&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Geo_Area_Level4_v6 (CBD_GEO_AREA_LEVEL4_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, HASC_1_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Geo_Area_Level4 IS &amp;#39;Geographical area level 4 (min. Detail)&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 4. FORMAT: alphanumerical string containing the name of the state/region. EXAMPLE VALUES: &amp;#39;&amp;#39;Asturias&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Andaluc\u00eda&amp;#39;&amp;#39;, etc.&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 4&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 4&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.HASC_1_CD IS &amp;#39;Hierarchical administrative subdivision codes &amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_CBD_Static_Station_Type_v6 (STATION_TYPE_CD VARCHAR, TECH_LEVEL_WEIGHT_QT FLOAT, STATION_TYPE_L2_DES VARCHAR, STATION_TYPE_L1_DES VARCHAR, STATION_TYPE_L2_ORDER_NUM INT, STATION_TYPE_L1_ORDER_NUM INT, STATION_TYPE_ORDER_NUM INT, CONSCIOUS_IND BOOLEAN, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_CBD_Static_Station_Type IS &amp;#39;Station types&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_CD IS &amp;#39;Description: Type of device connected to the HGU router. It used to find out which devices are connected to routers in households. Format: String. Example values: \&amp;#34;A/V Equipment\&amp;#34;, \&amp;#34;Air Conditioning\&amp;#34;, \&amp;#34;Air Conditioning Control\&amp;#34;, \&amp;#34;Apple Handheld Device\&amp;#34;, \&amp;#34;Apple Home Device\&amp;#34;, \&amp;#34;AudioCast\&amp;#34;, \&amp;#34;Audiocast\&amp;#34;, \&amp;#34;Barcode Printer\&amp;#34;, \&amp;#34;Camera\&amp;#34;, \&amp;#34;Car Dash Cam\&amp;#34;, \&amp;#34;Cryptominner\&amp;#34;, \&amp;#34;Digital Clock\&amp;#34;, \&amp;#34;Dishwasher\&amp;#34;, \&amp;#34;Drone Equipment\&amp;#34;, \&amp;#34;GPS\&amp;#34;, \&amp;#34;Gaming Console\&amp;#34;, \&amp;#34;Hyper Media Player\&amp;#34;, \&amp;#34;IP Camera\&amp;#34;, \&amp;#34;IPC Hub\&amp;#34;, \&amp;#34;IPC Video Recorder\&amp;#34;, \&amp;#34;IoT Device\&amp;#34;, \&amp;#34;Key Cutting Machine\&amp;#34;, \&amp;#34;Media Center\&amp;#34;, \&amp;#34;Monitoring Device\&amp;#34;, \&amp;#34;Multimedia Player\&amp;#34;, \&amp;#34;Network Access Point\&amp;#34;, \&amp;#34;Network Equipment\&amp;#34;, \&amp;#34;PC\&amp;#34;, \&amp;#34;PDA\&amp;#34;, \&amp;#34;PIR Sensor\&amp;#34;, \&amp;#34;Print Server\&amp;#34;, \&amp;#34;Printer\&amp;#34;, \&amp;#34;Projector\&amp;#34;, \&amp;#34;Raspberry\&amp;#34;, \&amp;#34;Router\&amp;#34;, \&amp;#34;Security System\&amp;#34;, \&amp;#34;Smart AC Control\&amp;#34;, \&amp;#34;Smart Air Freshener\&amp;#34;, \&amp;#34;Smart Air Fryer\&amp;#34;, \&amp;#34;Smart Air Ventilator\&amp;#34;, \&amp;#34;Smart Animal Feeder\&amp;#34;, \&amp;#34;Smart Baby Monitor\&amp;#34;, \&amp;#34;Smart Blind\&amp;#34;, \&amp;#34;Smart Bulb\&amp;#34;, \&amp;#34;Smart Bulb Adapter\&amp;#34;, \&amp;#34;Smart Car\&amp;#34;, \&amp;#34;Smart Car e-Charger\&amp;#34;, \&amp;#34;Smart Display e-bike\&amp;#34;, \&amp;#34;Smart Energy Analyzer\&amp;#34;, \&amp;#34;Smart Home Controller\&amp;#34;, \&amp;#34;Smart Home Hub\&amp;#34;, \&amp;#34;Smart Humidifier\&amp;#34;, \&amp;#34;Smart Hydrometer Clock\&amp;#34;, \&amp;#34;Smart Kitchen Appliances\&amp;#34;, \&amp;#34;Smart Kitchen Scale\&amp;#34;, \&amp;#34;Smart Lamp\&amp;#34;, \&amp;#34;Smart Light Dimmer\&amp;#34;, \&amp;#34;Smart Lock Control\&amp;#34;, \&amp;#34;Smart Plug\&amp;#34;, \&amp;#34;Smart Pool\&amp;#34;, \&amp;#34;Smart Power Strip\&amp;#34;, \&amp;#34;Smart Purifier\&amp;#34;, \&amp;#34;Smart Scale\&amp;#34;, \&amp;#34;Smart Signage\&amp;#34;, \&amp;#34;Smart Speaker\&amp;#34;, \&amp;#34;Smart Switch\&amp;#34;, \&amp;#34;Smart TV\&amp;#34;, \&amp;#34;Smart Thermostat\&amp;#34;, \&amp;#34;Smart Toothbrush\&amp;#34;, \&amp;#34;Smart Vacuum\&amp;#34;, \&amp;#34;Smart WallSocket\&amp;#34;, \&amp;#34;Smart Watch\&amp;#34;, \&amp;#34;Smart Watch Fit\&amp;#34;, \&amp;#34;Smart WifiButton\&amp;#34;, \&amp;#34;Smartphone\&amp;#34;, \&amp;#34;Smartphone/Tablet\&amp;#34;, \&amp;#34;Smartwatch\&amp;#34;, \&amp;#34;Smartwatch Fit\&amp;#34;, \&amp;#34;Solar Panel Equipment\&amp;#34;, \&amp;#34;Soundbar\&amp;#34;, \&amp;#34;Steam Controller\&amp;#34;, \&amp;#34;Storage Device\&amp;#34;, \&amp;#34;TPV\&amp;#34;, \&amp;#34;TV Dongle\&amp;#34;, \&amp;#34;Tablet\&amp;#34;, \&amp;#34;Tempest Weather System\&amp;#34;, \&amp;#34;UPS\&amp;#34;, \&amp;#34;VR/AR Headset\&amp;#34;, \&amp;#34;Video Doorbell\&amp;#34;, \&amp;#34;Video Intercom\&amp;#34;, \&amp;#34;Video STB Equipment\&amp;#34;, \&amp;#34;VideointercomIP\&amp;#34;, \&amp;#34;Virtual Desktop\&amp;#34;, \&amp;#34;VoIP Phone\&amp;#34;, \&amp;#34;WAN Extender\&amp;#34;, \&amp;#34;WiFi Extender\&amp;#34;, \&amp;#34;Wifi Dongle\&amp;#34;, \&amp;#34;Wireless Blood Pressure Monitor\&amp;#34;, \&amp;#34;Wireless Bridge\&amp;#34;, \&amp;#34;Wireless Headphones\&amp;#34;, \&amp;#34;Wireless Router + VoIP Series\&amp;#34;, \&amp;#34;e-Note\&amp;#34;, \&amp;#34;eBook\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.TECH_LEVEL_WEIGHT_QT IS &amp;#39;Associated weight for the technologic level of the home&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_DES IS &amp;#39;Description: Higher level device type grouping. Example values: \&amp;#34;PCs &amp;amp; Home Office\&amp;#34;, \&amp;#34;Smartphones / Tablets / eReaders / iWatch\&amp;#34;, \&amp;#34;Multimedia Entertainment\&amp;#34;, \&amp;#34;Gaming\&amp;#34;, \&amp;#34;Sport &amp;amp; Health\&amp;#34;, \&amp;#34;Smart Home\&amp;#34;, \&amp;#34;Unknown\&amp;#34;, \&amp;#34;Network Devices\&amp;#34;, \&amp;#34;Security &amp;amp; Control\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_DES IS &amp;#39;Description: Intermediate level device type grouping. Example values: \&amp;#34;Smart Speakers &amp;amp; Audio\&amp;#34;, \&amp;#34;PCs &amp;amp; Home Office\&amp;#34;, \&amp;#34;Video Entertainment\&amp;#34;, \&amp;#34;Domestic Appliances\&amp;#34;, \&amp;#34;Smart Energy &amp;amp; Lighting\&amp;#34;, \&amp;#34;Apple Handheld Device\&amp;#34;, \&amp;#34;Smartphones / Tablets / eReaders\&amp;#34;, \&amp;#34;Gaming\&amp;#34;, \&amp;#34;Sport &amp;amp; Health\&amp;#34;, \&amp;#34;Network Devices\&amp;#34;, \&amp;#34;Security &amp;amp; Control\&amp;#34;, \&amp;#34;IoT\&amp;#34;&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_ORDER_NUM IS &amp;#39;Station type order level 2&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_ORDER_NUM IS &amp;#39;Station type order level 1&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_ORDER_NUM IS &amp;#39;Station type order&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.CONSCIOUS_IND IS &amp;#39;Indicates if the related device type has energy efficiency&amp;#39;;\n    COMMENT ON COLUMN D_CBD_Static_Station_Type.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\n    \nCREATE TABLE D_Segment_v8 (OPERATOR_ID VARCHAR, SEGMENT_ID VARCHAR, SEGMENT_DES VARCHAR, GBL_SEGMENT_ID VARCHAR, SEGMENT_GROUP_ID VARCHAR, SEGMENT_GROUP_DES VARCHAR, EXTRACTION_TM VARCHAR);\n    COMMENT ON TABLE D_Segment IS &amp;#39;Classifications of the customers, attending to different segmentation criteria, for marketing and management issues, according to OB criteria and its correspondence with the global segment classification&amp;#39;;\n    COMMENT ON COLUMN D_Segment.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_ID IS &amp;#39;Description: Organisational segment of the client. Format: two letter string. Possible values: &amp;#39;&amp;#39;NT&amp;#39;&amp;#39; - NTT, &amp;#39;&amp;#39;GP&amp;#39;&amp;#39; - Residencial, &amp;#39;&amp;#39;PE&amp;#39;&amp;#39; - Pymes, &amp;#39;&amp;#39;RE&amp;#39;&amp;#39; - Residencial/SC, &amp;#39;&amp;#39;AU&amp;#39;&amp;#39; - Autonomos, &amp;#39;&amp;#39;OP&amp;#39;&amp;#39; - Operadores, &amp;#39;&amp;#39;GC&amp;#39;&amp;#39; - Grandes Clientes, &amp;#39;&amp;#39;RP&amp;#39;&amp;#39; - Residencial Prepago, &amp;#39;&amp;#39;TE&amp;#39;&amp;#39; - Telefonica, &amp;#39;&amp;#39;SC&amp;#39;&amp;#39; - Sin Clasificar, &amp;#39;&amp;#39;ME&amp;#39;&amp;#39; - Empresas&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_DES IS &amp;#39;Description: Name or description of the organisational segment of the client (provides the description for each segment identifier). Format: string. Example values: &amp;#39;&amp;#39;Residencial&amp;#39;&amp;#39;,  &amp;#39;&amp;#39;Pymes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Autonomos&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Operadores&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Grandes Clientes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Sin Clasificar&amp;#39;&amp;#39;&amp;#39;;\n    COMMENT ON COLUMN D_Segment.GBL_SEGMENT_ID IS &amp;#39;ID of the global segment classification&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_ID IS &amp;#39;ID code of the segmentation group&amp;#39;;\n    COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_DES IS &amp;#39;Description of the segmentation group&amp;#39;;\n    COMMENT ON COLUMN D_Segment.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;\nCREATE TABLE D_Fixed_Tariff_Plan_v8 (OPERATOR_ID VARCHAR, DAY_DT VARCHAR, TARIFF_PLAN_ID VARCHAR, TARIFF_PLAN_DES VARCHAR, VOICE_IND BOOLEAN, BBAND_IND BOOLEAN, TV_IND BOOLEAN, WORKSTATION_IND BOOLEAN, APP_IND BOOLEAN, VOICE_BUNDLE_QT FLOAT, BBAND_UP_SPEED_QT FLOAT, BBAND_DOWN_SPEED_QT FLOAT, TV_TYPE_CD VARCHAR, FIXED_SERVICE_COMMERCIAL_NAME VARCHAR, COMMERCIAL_IND BOOLEAN, TARIFF_PLAN_START_DT VARCHAR, TARIFF_PLAN_END_DT VARCHAR, CONVERGENT_IND BOOLEAN, BRAND_ID VARCHAR);\n    COMMENT ON TABLE D_Fixed_Tariff_Plan_v8 IS &amp;#39;Every fixed Tariff to be applied, either Commercial, Convergent, Individual, or any other, for any product&amp;amp;service for the fixed client base&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.DAY_DT IS &amp;#39;Year, month and day of the data  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_ID IS &amp;#39;Unique identifier of the tariff plan&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_DES IS &amp;#39;Name/short description of the tariff plan&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_IND IS &amp;#39;Indicates whether the line has a fixed line voice service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_IND IS &amp;#39;Indicates whether the line has a Broadband service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_IND IS &amp;#39;Indicates if the line has a TV service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.WORKSTATION_IND IS &amp;#39;Indicates if the line has a workstation service associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.APP_IND IS &amp;#39;Indicates if the line has the \&amp;#34;Aplicateca service\&amp;#34; associated.  Values: 0=No; 1=Yes.&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_BUNDLE_QT IS &amp;#39;Amount of data associated with the voice bundle&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_UP_SPEED_QT IS &amp;#39;Broadband up speed (Mbps)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_DOWN_SPEED_QT IS &amp;#39;Broadband down speed (Mbps)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_TYPE_CD IS &amp;#39;Type of TV line&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.FIXED_SERVICE_COMMERCIAL_NAME IS &amp;#39;Commercial name of the service&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.COMMERCIAL_IND IS &amp;#39;Indicates if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID.    Fill-in with 1 if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID or 0 if it doesn&amp;#39;&amp;#39;t    0 = Non commercial tariff  1 = commercial tariff&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_START_DT IS &amp;#39;Start date of the tariff plan validity (that day is the first day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_END_DT IS &amp;#39;End date of the tariff plan validity (that day is the last day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.CONVERGENT_IND IS &amp;#39;Flag indicating if the current fixed tariff plan can be configured as a \&amp;#34;Convergent tariff plan\&amp;#34;, i. e., a plan with special conditions due to the fact of including at least one Fixed line/service and one Mobile line.   0 = No (the plan can&amp;#39;&amp;#39;t be configured as convergent)   1 = Yes (the plan can be configured as convergent)&amp;#39;;\n    COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BRAND_ID IS &amp;#39;Commercial brand identifier. In order to differentiate among different brands in the same OB (e.g. Movistar, O2, Tuenti...)&amp;#39;;\n```\nSome of the former tables contain columns in full-qualified format. For instance, these are some examples of full-qualified columns:\n```\nrecord_name.field_name\nTEC_PLAT_REC.DEVICE_ID\nrecord_name.subrecord_name.field_name\nTEC_PLAT_REC.TEC_PLAT_SUBCOMP_REC.DEVICE_ID\n...\n```\nAlways use the full-qualified format when referring to columns in the tables. For instance, if you need to use the column &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;, you should not refer to it as &amp;#39;DEVICE_ID&amp;#39;, but as &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;. \n**Explain in detail, step by step, all your decisions**. \n# General instructions\nFollow these reasoning steps to generate the SQL query:\n- Step 1: Identify Necessary Tables\n- Step 2: Identify Useful Candidate Columns\n- Step 3: Assess if Tables and Columns are Sufficient to Answer the Question\n- Step 4: Identify Columns Contained in Maps\n- Step 5: Plan the SQL Query\n- Step 6: Write the final SQL Query and apply the rules\n- Step 7: Check that the query actually can answer the question\n- Step 8: Create the result as a JSON object \nIf you need to filter by a higher level geographical such as a region (Comunidad Autónoma) you will need to:\n- join the `GEO_AREA_ID` field of the data table (such as `CBD_HGU_Detail_Daily_v10`) with the `GEO_AREA_ID` field in `D_CBD_Static_Geo_Area_v6` table\n- then join the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_v6` with the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_Level4_v6` table   \n- then compare the `GEO_AREA_LEVEL_DES` field in the `D_CBD_Static_Geo_Area_Level4_v6` table with the name of the region (e.g., &amp;#39;Cantabria&amp;#39;), since the DESCRIPTION field does contain the actual name of the geographical area.\n**Only perform these joins if explicit filtering or grouping by geographical location is necessary**. \n# Detailed instructions\n### Step 1: Identify Necessary Tables\nFirst, identify which tables are necessary to answer the question `{question}`. Justify why you selected each of these tables. \nUse the following format:\n```\nI need the following tables to answer the question:\n- &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;\n- &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;\n...\n```\n### Step 2: Identify Useful Candidate Columns\nIdentify which columns are useful to answer the question `{question}`. Justify why you selected each of these columns.\nAlways include any column you think may be needed to answer the question. If there are similar columns in the table, you should identify all of them always. You will later choose which them are more suitable to answer the question. But, at this stage, you should include **all the columns that may be useful**.\nWrite the list of candidate columns you identified, and the reasoning after each column, using the following format:\n```\nI can use the following candidate columns to answer the question (including all the columns that may be useful):\n- &amp;lt;table name&amp;gt;:\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;. \n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  ...\n- &amp;lt;table_name&amp;gt;:\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.\n  ...\n...\n```  \n### Step 3: Assess if Tables and Columns are Sufficient to Answer the Question\nTell if the tables and columns you identified are enough to answer the question `{question}`. Make sure to justify your answer and check the actual descriptions of the columns in the table definitions and the user question.\nWrite the answer using the following format:\n```\nPossible to answer the question using the former columns: \n- &amp;lt;reasoning&amp;gt;\n- Result: &amp;lt;Yes|No&amp;gt;\n```  \n### Step 4: Identify Columns Contained in Maps\nSome columns are actually contained in a map structure. Since these columns need to be queried differently, you need to identify them.\nColumns with a name like &amp;#39;&amp;lt;some_name&amp;gt;.map.&amp;lt;other_name&amp;gt;&amp;#39; are contained in maps. \nFor instance, the column `STATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD` is contained in a map structure called `STATIONS_DETAIL_REC.UNQ_STATION_MAP`.\nThis map structure is like this:\n```\nSTATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD: {{\n    &amp;lt;key1&amp;gt;: {{\n        &amp;lt;some_field&amp;gt;; &amp;lt;some_value&amp;gt;,\n        \&amp;#34;STATION_TYPE_CD\&amp;#34;: &amp;lt;station_type_value1&amp;gt;\n    }},\n    &amp;lt;key2&amp;gt;: {{\n        &amp;lt;some_other_field&amp;gt;; &amp;lt;some_other_value&amp;gt;,\n        \&amp;#34;STATION_TYPE_CD\&amp;#34;: &amp;lt;station_type_value2&amp;gt;\n    }},\n    ...\n}}\n```\nTherefore, in this step, identify which columns are contained in maps since you will later need to use LATERAL VIEW EXPLODE to access the values of these maps.  \n### Step 5: Plan the SQL Query  \nExplain, step by step, how you would write the SQL query to answer the question `{question}`, using the columns you identified. \n**Use the full qualified names of the columns**. **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.\nSome columns are contained in map structures. You can access the fields of the map using LATERAL VIEW EXPLODE. Do not use UNNEST to access the fields of the map.\nIn particular, you can create a temporary table with the exploded map and then query it. For instance, if you need to get the value of the `ABC.CDE.map.field` column, you should use the following SQL code to create a temporary table with the exploded map data and get the value of the field:\n```sql\nWITH exploded_map AS (\n  SELECT key, value.field_1, value,field_2, value.field_3  -- Select here all the columns/fields you will use later. \n  FROM &amp;lt;table_name&amp;gt;\n  LATERAL VIEW EXPLODE(ABC.CDE) AS key, value\n)\nSELECT exploded_map.field_1\nFROM exploded_map\n``` \nThis is another example:\n```sql\n  WITH exploded_map AS (\n  SELECT DATE, ID, RECORD.GROUP, value.CODE  -- Select here all the columns/fields you will use later.\n    FROM CBD_HGU_Detail_Daily_Aura_v10 LATERAL VIEW EXPLODE(STATIONS_DETAIL_REC.UNQ_STATION_MAP) AS key, value) \n  SELECT COUNT(DISTINCT ID) AS num_homes \n  FROM exploded_map JOIN D_Segment_v8 ON exploded_map.CLASS_ID = D_Segment_v8.CLASS_ID \n    WHERE DATE BETWEEN &amp;#39;2024-01-01&amp;#39; AND &amp;#39;2024-02-01&amp;#39; \n      AND D_Segment_v8.DESCRIPTION = &amp;#39;DESCRIPTION value&amp;#39; \n      AND exploded_map.CODE = &amp;#39;CODE value&amp;#39;    \n```\nHere is another example. If you need to count the number of elements in a map column named &amp;#39;ABC.map&amp;#39; you should use a code like this:\n```sql\nWITH exploded_map AS (\n  SELECT key_from_exploded_map\n  FROM &amp;lt;table_name&amp;gt;\n  LATERAL VIEW EXPLODE(ABC) AS key_from_exploded_map, value_from_exploded_map\n)\nSELECT COUNT(key_from_exploded_map)\nFROM exploded_map\n```\nTake into account that all map fields are named with the suffix `_MAP`. Take into account that you can only use the operation EXPLODE to fields that are maps. Therefore, you should use the EXPLODE operation only on fields that end with `_MAP`. \nTo finish this step, explain how you would write the SQL query to answer the question, using the columns you identified, taking into account the previous considerations for columns contained in maps, if there are any.\n### Step 6: Write the final SQL Query and apply the rules\nFinally, write the SQL query to answer the question `{question}`, using the columns you identified. \nRemarks:\n**DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.\n**IMPORTANT: The keys in the exploded maps should not be used in JOIN operations, since they are just internal keys to the map structure.** \nCheck if you need to use any of the following **business rules** to build the query:\n```json\n{{\n  \&amp;#34;rules\&amp;#34;: [\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Fiction\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;ficción\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FICCION%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%SERIES%&amp;#39;, &amp;#39;%CINE%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCION%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCIÓN%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%SERIES%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CINE%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Disney\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;Disney\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DISNEY%&amp;#39;.  To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DISNEY%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B3\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Football\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including football contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FUTBOL%&amp;#39;, &amp;#39;%FÚTBOL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;,  &amp;#39;%FUSION TA TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TA TOTAL%&amp;#39;, &amp;#39;%LIGA%&amp;#39;, &amp;#39;%CHAMPION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one:  `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUTBOL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FÚTBOL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%LIGA%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CHAMPION%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B4\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Netflix\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;Netflix\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%NETFLIX%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%FICCION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%NETFLIX%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B5\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Promociones\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;promotions\&amp;#34;, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%PROMO%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%PROMO%&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B6\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Edad promedio 1\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;You are not allowed to use the field `CBD_INFO_REC.CUST_AGE_NUM` in any query. You should use the field `CBD_INFO_REC.CUST_AGE_SEGMENT_CD` instead.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B7\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Edad promedio 2\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to calculate the average age of customers you should use the  following calculation instead of AVG(CBD_INFO_REC.CUST_AGE_SEGMENT_CD): AVG(IF(CBD_INFO_REC.CUST_AGE_SEGMENT_CD = &amp;#39;1&amp;#39;, NULL, CBD_INFO_REC.CUST_AGE_SEGMENT_CD))\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B8\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Query by customers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to query by customers: if the time scope of the query is daily or weekly then you should use the `DEVICE_ID` field. If the time scope of the query is monthly or longer then you should use the `CUSTOMER_ID` field.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B9\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `STATION_TYPE_L2` corresponds to a higher aggregation level than `STATION_TYPE_L1`.  `STATION_TYPE_L1` corresponds to an intermediate category, used only with analytical purposes.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B10\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Active devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check whether a device is active at a given date, you should use this check: `DEVICE_INFO_REC.INACTIVITY_DEVICE_INFO_NUM &amp;lt; 24`. If true, the device is active. If false, the device is inactive.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B11\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Penetración de un producto\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked for calculating \&amp;#34;la penetración de un producto\&amp;#34; you should calculate the percentage of customers with that product.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B12\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Obsolete routers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked for obsolete routers, you should check for those with MANUFACT_HGU_CHIPSET_DES IN (&amp;#39;Askey Broadcom&amp;#39;, &amp;#39;Askey Econet&amp;#39;,&amp;#39;MitraStar Broadcom&amp;#39;, &amp;#39;MitraStar Econet&amp;#39;).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B13\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;High value customers\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Consider as high value customers those with a monthly revenue higher than 100 (TOTAL_CUST_RV &amp;gt; 100).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B14.1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Technological level formula\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check the technological level of a customer, use the following formula on the field `TECH_LEVEL_WEIGHT_QT` of the table `D_CBD_STATIC_STATION_TYPE_v6`: `SUM(COALESCE(D_CBD_STATIC_STATION_TYPE_v6.TECH_LEVEL_WEIGHT_QT,0) + CASE WHEN AMM.VALUE.STATION_BRAND_DES = &amp;#39;Ubiquiti&amp;#39; THEN 0.8 ELSE 0 END)/COUNT(DISTINCT DAY_DT)`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B14.2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Technological levels\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Consider as **high technological level** customers those with a value higher or equal to 2.5. Consider as **medium technological level** customers those with a value higher or equal to 1 and lower than 2.5. Consider as **low technological level** customers those with a value lower than 1.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;B15\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Sport\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for tariff plans including \&amp;#34;sport\&amp;#34; contents, you will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DEPORTE%&amp;#39;, &amp;#39;%TOTAL PLUS%&amp;#39;, &amp;#39;%TOTAL SAT%PLUS%&amp;#39;, &amp;#39;%MOTOR%&amp;#39;, &amp;#39;%DAZN%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `(UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DEPORTE%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL PLUS%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL SAT%PLUS%&amp;#39; -- Se añade para incluir los \&amp;#34;Total Satelite/Satélite Plus\&amp;#34; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%MOTOR%&amp;#39; OR UPPER(${{TABLE}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DAZN%&amp;#39;)`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Temporary table fields\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;When you use in a filter a given filed from a temporary table, built using the `WITH` clause, make sure that the  field is actually present in the SELECT statement defining the temporary table.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Temporary table field naming\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Example: If you write a temporary table like this: `WITH temp_table AS (SELECT field1_prefix.field1 FROM table)`,  then you should use refer to the field as `field1` and not as `field1_prefix.field1` in the rest of the query.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R3\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Tariff plan\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for some specific tariffs, use the field `TARIFF_PLAN_DES` from the dimensional table D_Fixed_Tariff_Plan instead of using `CBD_INFO_REC.COMMERCIAL_TARIFF_ID` since this last one only contains identifiers without any meaning.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R4.1\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type 1\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If the query uses `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES` answer this question: does the value you are looking for, matches one of the possible values of these fields? Justify your answer. Enumerate the possible values of these fields if they are used.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R4.2\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Station type 2\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Apply this rule if the query uses a filter with the field `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES` and the value you are looking for does not match any of the possible values of these fields. In this case, you should use the field `STATION_TYPE_CD` instead. Write the result of the previous reasoning in detail.  REMEMBER TO FIX THE QUERY TO USE THE FIELD `STATION_TYPE_CD` INSTEAD.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R5\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Counting entities\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to count the number of customer, homes, devices or any other entities, you should ensure that you are actually counting distinct entities. Therefore you should use the `COUNT(DISTINCT ...)` function instead of `COUNT(...)`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R6\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Time scope less than a month\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked to answer a question for a time scope minor than a month (daily or weekly) you must not use the field `MONTH_DT` in your query.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R7\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;No UNION operator\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;Avoid using the UNION operator in your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R8\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Counting entities\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you are asked to count the number of customers, homes, devices or any other entities, you should ensure that the  result is actually a count and not a list of elements. Therefore you should use the COUNT function.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R9\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;IoT devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for IoT (Internet of Things) devices, you should look for devices with `STATION_TYPE_L2_DES = &amp;#39;Smart Home&amp;#39;`\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R10\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Router model\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to check the model of the router, you should use the field `MANUFACT_HGU_CHIPSET_DES` (do not use other fields such as `MANUFACTURER_FW_VER_DES`).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R11\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Weekly period\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to query data from weekly period, you should start always with the first day of the week (Monday) and end with the last day of the week (Sunday).\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R12\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;WiFi type\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for information on a specific WiFi type, such as 2.4 GHz or 5 GHz, you should use the specific fields corresponding to these types.  For instance, if you need to look for WiFi5 device information, you should not use the field `STATIONS_REC.WIFI_REC.ALL_TECH_REC` but the field `STATIONS_REC.WIFI_REC.TECH_5G_REC`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R13\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Equivalent terms for WiFi technologies\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The following terms are considered equivalent: \n- `WiFi 5G`, `WiFi Technology 5G`, `WiFi5`.\n- `WiFi 2.4G`, `WiFi Technology 2.4G`, `WiFi2.4` , `WiFi2`, `WiFi Technology 2G`, `WiFi 2G`.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R14\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Customer Satisfaction Index\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `CSI_QT` contains the `Customer Satisfaction Index` value. It is not a quality value but a satisfaction value.  Do not confuse it with Quality Index fields.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R15\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Active HGU devices\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `CUST_HGU_DEVICES_NUM` contains the number of active HGU devices of the customer, i.e. the number of active routers (HGUs) of the customer.  Do not confuse it with the number of active devices of the customer.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R16\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Megabytes\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The fields starting with `MB_` or containing `_MB_` in their name refer to Megabytes. Take this into account during your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R17\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Gigabytes\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The fields starting with `GB_` or containing `_GB_` in their name refer to Gigabytes. Take this into account during your queries.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R18\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;RSSI meaning\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;The field `RSSI` refers to the `Received Signal Strength Indicator`. It is a measure of the power present in a received radio signal.\n\&amp;#34;\n    }},\n    {{\n      \&amp;#34;id\&amp;#34;: \&amp;#34;R19\&amp;#34;,\n      \&amp;#34;name\&amp;#34;: \&amp;#34;Checking absence of a device\&amp;#34;,\n      \&amp;#34;rule\&amp;#34;: \&amp;#34;If you need to look for homes without a specific type of device, you should not forget checking at least one of the following fields: `STATION_TYPE_L1_DES`, `STATION_TYPE_L2_DES`, `STATION_TYPE_CD`. In other words, you need an explicit filter checking the absence of the device.\n\&amp;#34;\n    }}\n  ]\n}}\n```\nExplain whether you can apply any of the rules and explain how you would apply them in the SQL query.\nAlways write your result following these steps:\n1. SQL query to answer the question `{question}`: &amp;lt;write the SQL query here&amp;gt;\n2. Reasoning: &amp;lt;explain why you wrote the query like that&amp;gt;\n3. Check of the rules, RULE BY RULE and FOR EACH RULE (one entry per rule)2. &amp;lt;write ALL the rules and tell if they are applied or not&amp;gt;. Follow this format:\n- &amp;lt;rule1&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;\n- &amp;lt;rule2&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;\n...\n4. Result of the execution of the rules that have been identified to be applied. Follow this format:\n- &amp;lt;rule1&amp;gt;: &amp;lt;result&amp;gt;\n- &amp;lt;rule2&amp;gt;: &amp;lt;result&amp;gt;\n...\n5. Need to fix the query because &amp;lt;reason&amp;gt;. The following changes are needed: &amp;lt;change_1&amp;gt;, &amp;lt;change 2&amp;gt;, etc. | The query is already correct.\n6. SQL query to answer the question `{question}` after considering the previous **rules**: &amp;lt;write the SQL query here&amp;gt;. FIX THE QUERY IF NECESSARY.\n### Step 7: Check that the query actually can answer the question\nCheck again if the generated query answers the question `{question}`.\nFollow these steps:\n1. Write the concepts involved in the question. Enumerate the concepts as a list. Follow this format:\n - &amp;lt;concept1&amp;gt;\n - &amp;lt;concept2&amp;gt;\n ...\n2. Write all the concepts of the question that are covered by the SQL query. Enumerate them and create a match list with the concepts from the previous step. Write down the part of the SQL query covering the concept. Take into account that conditions on specific proper names, such as model names, location names, etc, need to be explicitly checked. Follow this format:\n - &amp;lt;concept1&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.\n - &amp;lt;concept2&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.\n3. Find those concepts in the question that are not covered by the SQL query.\n4. Conclude whether the question can actually be answered by the generated query. Follow this format:\n - The question can be answered by the SQL query: &amp;lt;Yes|No&amp;gt;\n### Step 8: Create the result as a JSON object\nReturn the result as a unique JSON object, with the following structure:\n{{\n  \&amp;#34;result\&amp;#34;: &amp;lt;Write the SQL query here. **MAKE SURE THAT THE STATEMENT `SELECT JSON_OBJECT` is not used in the query and Use the full qualified names of the columns. Generate a valid SQL sentence in a single line without new line characters.**&amp;gt;,\n  \&amp;#34;status\&amp;#34;: \&amp;#34;OK\&amp;#34;,\n  \&amp;#34;reason\&amp;#34;: &amp;lt;a reasoning explaining the query&amp;gt;\n}}\nIf the former table does not contain the necessary data to answer the question, return the following JSON object:\n{{\n  \&amp;#34;result\&amp;#34;: null,\n  \&amp;#34;status\&amp;#34;: \&amp;#34;ERROR\&amp;#34;,\n  \&amp;#34;reason\&amp;#34;: &amp;lt;a reasoning explaining why it is not possible to answer the question&amp;gt;\n}}\nMake sure that the JSON object is correctly formatted, and can be parsed by a JSON parser.\n**Please, ALWAYS follow the 8 steps presented in the instructions.** Start reasoning with ### Step 1 and finish with ### Step 8.\n{% endraw %}&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:#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;h2 id=&#34;3-include-the-new-preset-in-an-application&#34;&gt;3. Include the new preset in an application&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; Remember that an &lt;a href=&#34;../../docs/atria/technical-components/application/&#34;&gt;&lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; application&lt;/a&gt; must be previously created and configured for the use case.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Once the preset is fully defined and included in &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; through the previous steps, it must be declared into the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; application:&lt;/li&gt;
&lt;/ul&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; &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#22-if-a-new-preset-is-created&#34;&gt;Modify &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration: Include the new preset in an application&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;4-upload-documents-and-execute-generate-db-job&#34;&gt;4. Upload documents and execute generate-db job&lt;/h2&gt;
&lt;p&gt;Follow the guidelines for uploading new or modified documents in a specific environment through the edition of the ConfigMap of the component (included in the general guidelines &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/import-documents/&#34;&gt;Import documents into ATRIA&lt;/a&gt;).&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Upload the documents in the Azure container &lt;code&gt;atria-resources&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Insert these documents in &lt;code&gt;new-copilot-preset/project-copilot/jsonl/&lt;/code&gt; folder.&lt;/li&gt;
&lt;li&gt;Keep in mind the allowed formats for documents, set in the preset&amp;rsquo;s variable &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#:~:text=is%20string.-,loaderType,-%3A%20Mandatory.%20Must%20be&#34;&gt;&lt;code&gt;loader.loaderType&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;
&lt;p&gt;Finally, execute the &lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/#launch-atria-rag-generate-db&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-generate-db&lt;/strong&gt;&lt;/em&gt; job&lt;/a&gt; to update the data into the environment.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You need to upload the file content in the same folder with the extension &lt;code&gt;.jsonl&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-jsonl&#34; data-lang=&#34;jsonl&#34;&gt;{&amp;#34;page_content&amp;#34;: &amp;#34;test1&amp;#34;, &amp;#34;metadata&amp;#34;: {&amp;#34;source&amp;#34;: &amp;#34;https://www.dummy1.es/&amp;#34;}, &amp;#34;type&amp;#34;: &amp;#34;Document&amp;#34;}
{&amp;#34;page_content&amp;#34;: &amp;#34;test2&amp;#34;, &amp;#34;metadata&amp;#34;: {&amp;#34;source&amp;#34;: &amp;#34;https://www.dummy2.es/&amp;#34;}, &amp;#34;type&amp;#34;: &amp;#34;Document&amp;#34;}
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;5-update-aura-applications-configuration-via-api&#34;&gt;5. Update Aura applications configuration via API&lt;/h2&gt;
&lt;p&gt;Once the new preset is created, the &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; must be updated to indicate the &lt;strong&gt;application&lt;/strong&gt; that will make use of this preset.&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; This document includes a specific scenario in the process of modifying API configuration, described in the document &lt;a href=&#34;../../docs/atria/technical-guidelines/hot-swapping-application/#hot-swapping-of-aura-applications-configuration&#34;&gt;Hot swapping of Aura applications configuration&lt;/a&gt;.&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    curl --location --request PATCH &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/applications/3e1cb831-d5bf-423d-8bef-4abcc53dfa97&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;correlator: &amp;lt;uuid&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY {{apikey}}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;id&amp;#34;: &amp;#34;3e1cb831-d5bf-423d-8bef-4abcc53dfa97&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;models&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;presets&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;copilot-preset-rag&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;copilot-reduced-preset-rag&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;raw-gpt-4o&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;openai-preset-gpt-35-turbo-copilot-generative&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;openai-preset-gpt-4o-copilot-generative&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;a2cdb523-883e-44ab-8e0b-2d164dd98346&amp;#34; &amp;lt;-- New preset
&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;            ]
&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;        }
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&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; It is necessary to send all application presets in the request.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/adjust-timeouts/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/adjust-timeouts/</guid>
      <description>
        
        
        &lt;h1 id=&#34;adjust-timeouts-in-atria&#34;&gt;Adjust timeouts in ATRIA&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the adjustment of timeouts in ATRIA &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;adjust-timeouts-in-aura-gateway-api&#34;&gt;Adjust timeouts in aura-gateway-api&lt;/h2&gt;
&lt;p&gt;The instructions to adjust timeouts in &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; and Nginx are detailed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;aura-gateway-api&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit configmap aura-gateway-api -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;config&lt;/code&gt; key, search and update the &lt;strong&gt;AURA_REQUEST_TIMEOUT&lt;/strong&gt; field:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AURA_REQUEST_TIMEOUT: 490000
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;aura-services&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit vs aura-services  -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;aura-gateway-api&lt;/code&gt; key, search and update &lt;strong&gt;read_timeout&lt;/strong&gt;  and &lt;strong&gt;send_timeout&lt;/strong&gt; field:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;read_timeout: 495s
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;send_timeout: 495s
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;adjust-timeouts-in-atria-model-gateway&#34;&gt;Adjust timeouts in atria-model-gateway&lt;/h3&gt;
&lt;p&gt;The instructions to adjust timeouts in &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; are detailed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;atria-model-gw&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;kubectl edit cm atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now, modify the following &lt;strong&gt;timeout&lt;/strong&gt; in the corresponding models:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rag-server:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    timeout:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        timeout: 485
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        read: 60
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpt-35-turbo:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    timeout:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        timeout: 240
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        read: 60
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpt-4:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    timeout:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        timeout: 240
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        read: 60
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/create-copilot-preset/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/create-copilot-preset/</guid>
      <description>
        
        
        &lt;h1 id=&#34;create-new-copilot-preset-using-configmap&#34;&gt;Create new Copilot preset using ConfigMap&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&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; &lt;strong&gt;Guidelines valid for releases previous to Metallica&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This document includes a specific scenario in the process of modifying &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration, described in the document &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/&#34;&gt;&lt;strong&gt;Modify ATRIA components configuration&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Guidelines to create new &lt;em&gt;&lt;strong&gt;Aura Copilot&lt;/strong&gt;&lt;/em&gt; preset in a specific environment through the use of &lt;strong&gt;ConfigMap&lt;/strong&gt; and &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It is important to follow the following steps in the correct order&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;#prerequisites&#34;&gt;Prerequisites&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#create-configmap-copy&#34;&gt;Create ConfigMap copy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#create-a-new-preset-in-atria-model-gateway&#34;&gt;Create a new preset in &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#adjust-model-params&#34;&gt;Adjust model params&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#allow-preset-access&#34;&gt;Allow Preset Access&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#add-a-new-project-in-atria-rag-server&#34;&gt;Add a new project in &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#adjust-max_tokens-param&#34;&gt;Adjust max_tokens param&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#adjust-timeouts-in-aura-gateway-api-and-nginx&#34;&gt;Adjust timeouts in aura-gateway-api and Nginx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#upload-documents-and-execute-generate-db-job&#34;&gt;Upload documents and execute the &lt;em&gt;&lt;strong&gt;generate-db&lt;/strong&gt;&lt;/em&gt; job&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#restart-the-deployments&#34;&gt;Restart the deployments&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#update-aura-applications-configuration-via-api&#34;&gt;Update Aura applications configuration via API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#load-original-config-and-deployments-rollback&#34;&gt;Load original config and deployments rollback&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;

&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Recommended:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kubectl&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;curl&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;jq&lt;/code&gt; installed in your local host.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;enable-configmap&#34;&gt;Enable ConfigMap&lt;/h3&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; As a prerequisite, we must count on a &lt;strong&gt;KUBECONFIG&lt;/strong&gt; with sufficient permissions and access to the environment.&lt;/p&gt;
&lt;p&gt;We have one ConfigMap for each component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;: atria-model-gw-config&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;: atria-rag-config&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;: aura-gateway-api&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;aura-services&lt;/strong&gt;&lt;/em&gt;: aura-services&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For the ConfigMap modification, use the following examples for &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;,  &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;aura-services&lt;/strong&gt;&lt;/em&gt; respectively:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kubectl edit configmap atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl edit cm aura-gateway-api -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl edit vs aura-services -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Substitute &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; with the corresponding environment)&lt;/p&gt;
&lt;p&gt;You can also use visual tools for this modification, such as &lt;a href=&#34;https://k8slens.dev/download&#34;&gt;Lens&lt;/a&gt; or &lt;a href=&#34;https://www.sublimetext.com/download&#34;&gt;Sublime&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;access-to-azure-container&#34;&gt;Access to Azure container&lt;/h3&gt;
&lt;p&gt;You must have access to Azure container &lt;code&gt;atria-resources&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;create-configmap-copy&#34;&gt;Create ConfigMap copy&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; &lt;strong&gt;Important: Before modifying anything, it is highly recommended to make a backup of the ConfigMap content, as the format is very sensitive&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To avoid possible errors, the first thing to do is to copy the current configuration. For this purpose, execute the following commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kubectl get cm atria-model-gw-config -o yaml -n &amp;lt;namespace&amp;gt; &amp;gt; &amp;lt;local_file_path&amp;gt;/model-gw-config.yaml &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl get cm atria-rag-config -o yaml -n &amp;lt;namespace&amp;gt; &amp;gt; &amp;lt;local_file_path&amp;gt;/rag-config.yaml &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl get cm aura-gateway-api  -o yaml -n &amp;lt;namespace&amp;gt; &amp;gt; &amp;lt;local_file_path&amp;gt;/gateway-config.yaml &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl get vs aura-services -o yaml -n &amp;lt;namespace&amp;gt; &amp;gt; &amp;lt;local_file_path&amp;gt;/services-config.yaml &lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Change the namespace by the specific one; change &lt;code&gt;local_file_path&lt;/code&gt; by the desired path.&lt;/p&gt;
&lt;p&gt;Now you have a copy of the current configuration on your local machine.&lt;/p&gt;
&lt;h2 id=&#34;create-a-new-preset-in-atria-model-gateway&#34;&gt;Create a new preset in &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Follow these guidelines for adding a new preset in a specific environment through the edition of the ConfigMap of the component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the ConfigMap &lt;strong&gt;atria-model-gw-config&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/li&gt;
&lt;/ul&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;&lt;strong&gt;Warning:&lt;/strong&gt; If the &lt;code&gt;presets.yml&lt;/code&gt; key is wrongly formatted as a single string, it is necessary to launch the command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl get cm atria-model-gw-config -n &amp;lt;namespace&amp;gt; -o &lt;span style=&#34;color:#000&#34;&gt;jsonpath&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{.data.presets.yml}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Afterwards, copy the output and overwrite the whole &lt;code&gt;presets.yml&lt;/code&gt; key. This way, you can see the content correctly and include the new preset.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the key &lt;strong&gt;presets&lt;/strong&gt;, add the new preset with the following structure:
&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-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;- &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;copilot-reduced-preset-rag&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;model_id&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;atria-rag&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;Copilot&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;group&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;enriched_ai&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;description&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;A RAG system built on a LangChain backend&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;session_params&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;0&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;preset_params&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;chain&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;project-copilot-reduced&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;model_params&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;max_ref&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;3&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;sticky_context&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;null&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;candidates_post_filtering&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;null&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;language&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;en&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;max_tokens&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;16384&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;adjust-model-params&#34;&gt;Adjust model params&lt;/h2&gt;
&lt;p&gt;We also have to set the model that the RAG will use to call the &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;.
This model is the &lt;strong&gt;gpt-4o&lt;/strong&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;atria-model-gw-config&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Within the key &lt;strong&gt;models&lt;/strong&gt;, search &lt;strong&gt;gpt-4o&lt;/strong&gt; and update the timeout value:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  timeout:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      timeout: 240
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      read: 240
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Within the key &lt;strong&gt;models&lt;/strong&gt;, search &lt;strong&gt;atria-rag&lt;/strong&gt; and update the timeout value:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;timeout: 485        
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;allow-preset-access&#34;&gt;Allow Preset Access&lt;/h2&gt;
&lt;p&gt;Now that we have created the new preset, we have to modify the &lt;code&gt;access&lt;/code&gt; key, to allow the application to use it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Within the &lt;code&gt;access&lt;/code&gt; key, look for the &lt;code&gt;presets&lt;/code&gt; key.&lt;/li&gt;
&lt;li&gt;In the key &lt;strong&gt;3e1cb831-d5bf-423d-8bef-4abcc53dfa97&lt;/strong&gt; (application ID), add the preset name &lt;strong&gt;copilot-reduced-preset-rag&lt;/strong&gt; to the list.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;add-a-new-project-in-atria-rag-server&#34;&gt;Add a new project in &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Follow these guidelines for adding a new project in a specific environment through the edition of the ConfigMap of the component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the ConfigMap &lt;strong&gt;atria-rag-config&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/li&gt;
&lt;/ul&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;&lt;strong&gt;Warning:&lt;/strong&gt; If the &lt;code&gt;projects.yaml.project&lt;/code&gt; key is wrongly formatted as a single string, it is necessary to launch the following command:&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl get cm atria-rag-config -n &amp;lt;namespace&amp;gt; -o &lt;span style=&#34;color:#000&#34;&gt;jsonpath&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{.data.projects\.yaml\.project}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Afterwards, copy the output and overwrite the whole &lt;code&gt;projects.yaml.project&lt;/code&gt; key. This way, you can see the content correctly and include the new project.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;In the key &lt;strong&gt;projects.yaml.project&lt;/strong&gt;, add the new project, as shown below.&lt;/p&gt;
&lt;details open&gt;
&lt;summary&gt; Project structure &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-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;    &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;project-copilot-reduced&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;Project Copilot&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;docs&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;json&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;dir&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;/opt/atria-rag/data/project-copilot-reduced/jsonl&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;extensions&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;jsonl&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;loader&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;jsonl&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;embeddings&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;test_distilbert&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;llm&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;copilot-rag-model-gw-raw-gpt-4-o&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;solve_type&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;sql&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;retrievers&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;qdrant&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;host&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;qdrant.aura-system&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;port&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;6333&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;collection_name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;project-copilot-reduced-Aura&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;prefix&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;es-pre-970&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;tfidf&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;dump_name&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;/var/atria-rag-data/tfidf/dump/project-copilot-reduced-Aura&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;serving&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;base_url&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;project-copilot-reduced/jsonl&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;parameters&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;candidate_only&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;false&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;      &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;prompts&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;        &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;generate_sql_query&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#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:#f8f8f8;text-decoration:underline&#34;&gt;          &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;DEFAULT&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;|&lt;/span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Generate a SQL query statement to answer the following question:
&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:#8f5902;font-style:italic&#34;&gt;              `{question}`
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Use the data contained in the following tables.
&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:#8f5902;font-style:italic&#34;&gt;              {sql_table_definition}
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              The following tables, containing auxiliary information, are also available. They include **dimensional tables**:
&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:#8f5902;font-style:italic&#34;&gt;              ```sql
&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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_CBD_Static_Geo_Area_v6 (GEO_AREA_ID VARCHAR, CBD_GEO_AREA_LEVEL1_ID VARCHAR, CBD_GEO_AREA_LEVEL2_ID VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_CBD_Static_Geo_Area IS &amp;#39;Geographical areas. This table contains foreign keys to the different levels of geographical areas. In particular, it contains the foreign keys to these tables: CBD_Static_Geo_Area_Level1, CBD_Static_Geo_Area_Level2, CBD_Static_Geo_Area_Level3, CBD_Static_Geo_Area_Level4. Therefore, this tables is used, via JOIN, to query the geographical information contained in the different levels of geographical areas. For instance, if you have a table T with a field GEO_AREA_ID and you need to check whether this location corresponds to the region of Asturias you will need to look for GEO_AREA_ID in this table, then extract the CBD_GEO_AREA_LEVEL4_ID and query the table CBD_Static_Geo_Area_Level4 to get the name of the region.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL1_ID IS &amp;#39;Identifier of the geographical area Level 1 (max level of detail: CP or similar). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_CBD_Static_Geo_Area_Level2_v6 (CBD_GEO_AREA_LEVEL2_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_CBD_Static_Geo_Area_Level2 IS &amp;#39;Geographical area level 2 (State)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 2. FORMAT: alphanumeric string containing the name of the city/town.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 2&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 2&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_CBD_Static_Geo_Area_Level3_v6 (CBD_GEO_AREA_LEVEL3_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, ISO_3166_2_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_CBD_Static_Geo_Area_Level3 IS &amp;#39;Geographical area level 3 (Region)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 3. FORMAT: alphanumeric string containing the name of the province.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 3&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 3&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.ISO_3166_2_CD IS &amp;#39;ISO 3166-2 associated&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_CBD_Static_Geo_Area_Level4_v6 (CBD_GEO_AREA_LEVEL4_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, HASC_1_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_CBD_Static_Geo_Area_Level4 IS &amp;#39;Geographical area level 4 (min. Detail)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 4. FORMAT: alphanumerical string containing the name of the state/region. EXAMPLE VALUES: &amp;#39;&amp;#39;Asturias&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Andaluc\u00eda&amp;#39;&amp;#39;, etc.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 4&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 4&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.HASC_1_CD IS &amp;#39;Hierarchical administrative subdivision codes &amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_CBD_Static_Station_Type_v6 (STATION_TYPE_CD VARCHAR, TECH_LEVEL_WEIGHT_QT FLOAT, STATION_TYPE_L2_DES VARCHAR, STATION_TYPE_L1_DES VARCHAR, STATION_TYPE_L2_ORDER_NUM INT, STATION_TYPE_L1_ORDER_NUM INT, STATION_TYPE_ORDER_NUM INT, CONSCIOUS_IND BOOLEAN, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_CBD_Static_Station_Type IS &amp;#39;Station types&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_CD IS &amp;#39;Description: Type of device connected to the HGU router. It used to find out which devices are connected to routers in households. Format: String. Example values: &amp;#34;A/V Equipment&amp;#34;, &amp;#34;Air Conditioning&amp;#34;, &amp;#34;Air Conditioning Control&amp;#34;, &amp;#34;Apple Handheld Device&amp;#34;, &amp;#34;Apple Home Device&amp;#34;, &amp;#34;AudioCast&amp;#34;, &amp;#34;Audiocast&amp;#34;, &amp;#34;Barcode Printer&amp;#34;, &amp;#34;Camera&amp;#34;, &amp;#34;Car Dash Cam&amp;#34;, &amp;#34;Cryptominner&amp;#34;, &amp;#34;Digital Clock&amp;#34;, &amp;#34;Dishwasher&amp;#34;, &amp;#34;Drone Equipment&amp;#34;, &amp;#34;GPS&amp;#34;, &amp;#34;Gaming Console&amp;#34;, &amp;#34;Hyper Media Player&amp;#34;, &amp;#34;IP Camera&amp;#34;, &amp;#34;IPC Hub&amp;#34;, &amp;#34;IPC Video Recorder&amp;#34;, &amp;#34;IoT Device&amp;#34;, &amp;#34;Key Cutting Machine&amp;#34;, &amp;#34;Media Center&amp;#34;, &amp;#34;Monitoring Device&amp;#34;, &amp;#34;Multimedia Player&amp;#34;, &amp;#34;Network Access Point&amp;#34;, &amp;#34;Network Equipment&amp;#34;, &amp;#34;PC&amp;#34;, &amp;#34;PDA&amp;#34;, &amp;#34;PIR Sensor&amp;#34;, &amp;#34;Print Server&amp;#34;, &amp;#34;Printer&amp;#34;, &amp;#34;Projector&amp;#34;, &amp;#34;Raspberry&amp;#34;, &amp;#34;Router&amp;#34;, &amp;#34;Security System&amp;#34;, &amp;#34;Smart AC Control&amp;#34;, &amp;#34;Smart Air Freshener&amp;#34;, &amp;#34;Smart Air Fryer&amp;#34;, &amp;#34;Smart Air Ventilator&amp;#34;, &amp;#34;Smart Animal Feeder&amp;#34;, &amp;#34;Smart Baby Monitor&amp;#34;, &amp;#34;Smart Blind&amp;#34;, &amp;#34;Smart Bulb&amp;#34;, &amp;#34;Smart Bulb Adapter&amp;#34;, &amp;#34;Smart Car&amp;#34;, &amp;#34;Smart Car e-Charger&amp;#34;, &amp;#34;Smart Display e-bike&amp;#34;, &amp;#34;Smart Energy Analyzer&amp;#34;, &amp;#34;Smart Home Controller&amp;#34;, &amp;#34;Smart Home Hub&amp;#34;, &amp;#34;Smart Humidifier&amp;#34;, &amp;#34;Smart Hydrometer Clock&amp;#34;, &amp;#34;Smart Kitchen Appliances&amp;#34;, &amp;#34;Smart Kitchen Scale&amp;#34;, &amp;#34;Smart Lamp&amp;#34;, &amp;#34;Smart Light Dimmer&amp;#34;, &amp;#34;Smart Lock Control&amp;#34;, &amp;#34;Smart Plug&amp;#34;, &amp;#34;Smart Pool&amp;#34;, &amp;#34;Smart Power Strip&amp;#34;, &amp;#34;Smart Purifier&amp;#34;, &amp;#34;Smart Scale&amp;#34;, &amp;#34;Smart Signage&amp;#34;, &amp;#34;Smart Speaker&amp;#34;, &amp;#34;Smart Switch&amp;#34;, &amp;#34;Smart TV&amp;#34;, &amp;#34;Smart Thermostat&amp;#34;, &amp;#34;Smart Toothbrush&amp;#34;, &amp;#34;Smart Vacuum&amp;#34;, &amp;#34;Smart WallSocket&amp;#34;, &amp;#34;Smart Watch&amp;#34;, &amp;#34;Smart Watch Fit&amp;#34;, &amp;#34;Smart WifiButton&amp;#34;, &amp;#34;Smartphone&amp;#34;, &amp;#34;Smartphone/Tablet&amp;#34;, &amp;#34;Smartwatch&amp;#34;, &amp;#34;Smartwatch Fit&amp;#34;, &amp;#34;Solar Panel Equipment&amp;#34;, &amp;#34;Soundbar&amp;#34;, &amp;#34;Steam Controller&amp;#34;, &amp;#34;Storage Device&amp;#34;, &amp;#34;TPV&amp;#34;, &amp;#34;TV Dongle&amp;#34;, &amp;#34;Tablet&amp;#34;, &amp;#34;Tempest Weather System&amp;#34;, &amp;#34;UPS&amp;#34;, &amp;#34;VR/AR Headset&amp;#34;, &amp;#34;Video Doorbell&amp;#34;, &amp;#34;Video Intercom&amp;#34;, &amp;#34;Video STB Equipment&amp;#34;, &amp;#34;VideointercomIP&amp;#34;, &amp;#34;Virtual Desktop&amp;#34;, &amp;#34;VoIP Phone&amp;#34;, &amp;#34;WAN Extender&amp;#34;, &amp;#34;WiFi Extender&amp;#34;, &amp;#34;Wifi Dongle&amp;#34;, &amp;#34;Wireless Blood Pressure Monitor&amp;#34;, &amp;#34;Wireless Bridge&amp;#34;, &amp;#34;Wireless Headphones&amp;#34;, &amp;#34;Wireless Router + VoIP Series&amp;#34;, &amp;#34;e-Note&amp;#34;, &amp;#34;eBook&amp;#34;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.TECH_LEVEL_WEIGHT_QT IS &amp;#39;Associated weight for the technologic level of the home&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_DES IS &amp;#39;Description: Higher level device type grouping. Example values: &amp;#34;PCs &amp;amp; Home Office&amp;#34;, &amp;#34;Smartphones / Tablets / eReaders / iWatch&amp;#34;, &amp;#34;Multimedia Entertainment&amp;#34;, &amp;#34;Gaming&amp;#34;, &amp;#34;Sport &amp;amp; Health&amp;#34;, &amp;#34;Smart Home&amp;#34;, &amp;#34;Unknown&amp;#34;, &amp;#34;Network Devices&amp;#34;, &amp;#34;Security &amp;amp; Control&amp;#34;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_DES IS &amp;#39;Description: Intermediate level device type grouping. Example values: &amp;#34;Smart Speakers &amp;amp; Audio&amp;#34;, &amp;#34;PCs &amp;amp; Home Office&amp;#34;, &amp;#34;Video Entertainment&amp;#34;, &amp;#34;Domestic Appliances&amp;#34;, &amp;#34;Smart Energy &amp;amp; Lighting&amp;#34;, &amp;#34;Apple Handheld Device&amp;#34;, &amp;#34;Smartphones / Tablets / eReaders&amp;#34;, &amp;#34;Gaming&amp;#34;, &amp;#34;Sport &amp;amp; Health&amp;#34;, &amp;#34;Network Devices&amp;#34;, &amp;#34;Security &amp;amp; Control&amp;#34;, &amp;#34;IoT&amp;#34;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_ORDER_NUM IS &amp;#39;Station type order level 2&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_ORDER_NUM IS &amp;#39;Station type order level 1&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_ORDER_NUM IS &amp;#39;Station type order&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.CONSCIOUS_IND IS &amp;#39;Indicates if the related device type has energy efficiency&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_CBD_Static_Station_Type.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_Segment_v8 (OPERATOR_ID VARCHAR, SEGMENT_ID VARCHAR, SEGMENT_DES VARCHAR, GBL_SEGMENT_ID VARCHAR, SEGMENT_GROUP_ID VARCHAR, SEGMENT_GROUP_DES VARCHAR, EXTRACTION_TM VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_Segment IS &amp;#39;Classifications of the customers, attending to different segmentation criteria, for marketing and management issues, according to OB criteria and its correspondence with the global segment classification&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.SEGMENT_ID IS &amp;#39;Description: Organisational segment of the client. Format: two letter string. Possible values: &amp;#39;&amp;#39;NT&amp;#39;&amp;#39; - NTT, &amp;#39;&amp;#39;GP&amp;#39;&amp;#39; - Residencial, &amp;#39;&amp;#39;PE&amp;#39;&amp;#39; - Pymes, &amp;#39;&amp;#39;RE&amp;#39;&amp;#39; - Residencial/SC, &amp;#39;&amp;#39;AU&amp;#39;&amp;#39; - Autonomos, &amp;#39;&amp;#39;OP&amp;#39;&amp;#39; - Operadores, &amp;#39;&amp;#39;GC&amp;#39;&amp;#39; - Grandes Clientes, &amp;#39;&amp;#39;RP&amp;#39;&amp;#39; - Residencial Prepago, &amp;#39;&amp;#39;TE&amp;#39;&amp;#39; - Telefonica, &amp;#39;&amp;#39;SC&amp;#39;&amp;#39; - Sin Clasificar, &amp;#39;&amp;#39;ME&amp;#39;&amp;#39; - Empresas&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.SEGMENT_DES IS &amp;#39;Description: Name or description of the organisational segment of the client (provides the description for each segment identifier). Format: string. Example values: &amp;#39;&amp;#39;Residencial&amp;#34;,  &amp;#39;&amp;#39;Pymes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Autonomos&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Operadores&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Grandes Clientes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Sin Clasificar&amp;#39;&amp;#39;&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.GBL_SEGMENT_ID IS &amp;#39;ID of the global segment classification&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_ID IS &amp;#39;ID code of the segmentation group&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_DES IS &amp;#39;Description of the segmentation group&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Segment.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              CREATE TABLE D_Fixed_Tariff_Plan_v8 (OPERATOR_ID VARCHAR, DAY_DT VARCHAR, TARIFF_PLAN_ID VARCHAR, TARIFF_PLAN_DES VARCHAR, VOICE_IND BOOLEAN, BBAND_IND BOOLEAN, TV_IND BOOLEAN, WORKSTATION_IND BOOLEAN, APP_IND BOOLEAN, VOICE_BUNDLE_QT FLOAT, BBAND_UP_SPEED_QT FLOAT, BBAND_DOWN_SPEED_QT FLOAT, TV_TYPE_CD VARCHAR, FIXED_SERVICE_COMMERCIAL_NAME VARCHAR, COMMERCIAL_IND BOOLEAN, TARIFF_PLAN_START_DT VARCHAR, TARIFF_PLAN_END_DT VARCHAR, CONVERGENT_IND BOOLEAN, BRAND_ID VARCHAR);
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON TABLE D_Fixed_Tariff_Plan_v8 IS &amp;#39;Every fixed Tariff to be applied, either Commercial, Convergent, Individual, or any other, for any product&amp;amp;service for the fixed client base&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.DAY_DT IS &amp;#39;Year, month and day of the data  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_ID IS &amp;#39;Unique identifier of the tariff plan&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_DES IS &amp;#39;Name/short description of the tariff plan&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_IND IS &amp;#39;Indicates whether the line has a fixed line voice service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_IND IS &amp;#39;Indicates whether the line has a Broadband service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_IND IS &amp;#39;Indicates if the line has a TV service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.WORKSTATION_IND IS &amp;#39;Indicates if the line has a workstation service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.APP_IND IS &amp;#39;Indicates if the line has the &amp;#34;Aplicateca service&amp;#34; associated.  Values: 0=No; 1=Yes.&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_BUNDLE_QT IS &amp;#39;Amount of data associated with the voice bundle&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_UP_SPEED_QT IS &amp;#39;Broadband up speed (Mbps)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_DOWN_SPEED_QT IS &amp;#39;Broadband down speed (Mbps)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_TYPE_CD IS &amp;#39;Type of TV line&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.FIXED_SERVICE_COMMERCIAL_NAME IS &amp;#39;Commercial name of the service&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.COMMERCIAL_IND IS &amp;#39;Indicates if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID.    Fill-in with 1 if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID or 0 if it doesn&amp;#39;&amp;#39;t    0 = Non commercial tariff  1 = commercial tariff&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_START_DT IS &amp;#39;Start date of the tariff plan validity (that day is the first day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_END_DT IS &amp;#39;End date of the tariff plan validity (that day is the last day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.CONVERGENT_IND IS &amp;#39;Flag indicating if the current fixed tariff plan can be configured as a &amp;#34;Convergent tariff plan&amp;#34;, i. e., a plan with special conditions due to the fact of including at least one Fixed line/service and one Mobile line.   0 = No (the plan can&amp;#39;&amp;#39;t be configured as convergent)   1 = Yes (the plan can be configured as convergent)&amp;#39;;
&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:#8f5902;font-style:italic&#34;&gt;                  COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BRAND_ID IS &amp;#39;Commercial brand identifier. In order to differentiate among different brands in the same OB (e.g. Movistar, O2, Tuenti...)&amp;#39;;
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Some of the former tables contain columns in full-qualified format. For instance, these are some examples of full-qualified columns:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              &amp;lt;record_name&amp;gt;.&amp;lt;field_name&amp;gt;: TEC_PLAT_REC.DEVICE_ID
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              &amp;lt;record_name&amp;gt;.&amp;lt;subrecord_name&amp;gt;.&amp;lt;field_name&amp;gt;: TEC_PLAT_REC.TEC_PLAT_SUBCOMP_REC.DEVICE_ID
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Always use the full-qualified format when referring to columns in the tables. For instance, if you need to use the column &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;, you should not refer to it as &amp;#39;DEVICE_ID&amp;#39;, but as &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              **Explain in detail, step by step, all your decisions**.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              # General instructions
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ## How to use dimensional tables
&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:#8f5902;font-style:italic&#34;&gt;              If you need to filter by a higher level geographical such as a region (Comunidad Autónoma) you will need to:
&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:#8f5902;font-style:italic&#34;&gt;              - join the `GEO_AREA_ID` field of the data table (such as `CBD_HGU_Detail_Daily_v10`) with the `GEO_AREA_ID` field in `D_CBD_Static_Geo_Area_v6` table
&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:#8f5902;font-style:italic&#34;&gt;                - then join the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_v6` with the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_Level4_v6` table
&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:#8f5902;font-style:italic&#34;&gt;                - then compare the `GEO_AREA_LEVEL_DES` field in the `D_CBD_Static_Geo_Area_Level4_v6` table with the name of the region (e.g., &amp;#39;Cantabria&amp;#39;), since the DESCRIPTION field does contain the actual name of the geographical area.
&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:#8f5902;font-style:italic&#34;&gt;                **Only perform these joins if explicit filtering or grouping by geographical location is necessary**.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              If you need to filter the `CBD_Summary_HGU_Stations_Daily` table by a period of time yo will need to:
&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:#8f5902;font-style:italic&#34;&gt;              - join the `DEVICE_ID` field of the data table (such as `CBD_Summary_HGU_Detail_Daily`) with the `DEVICE_ID` field in `CBD_Summary_HGU_Stations_Daily` table
&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:#8f5902;font-style:italic&#34;&gt;                - then join the `DAY_DT` field of the data table (such as `CBD_Summary_HGU_Detail_Daily`) with the `DAY_DT` field in `CBD_Summary_HGU_Stations_Daily` table
&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:#8f5902;font-style:italic&#34;&gt;                **Only perform these joins if explicit filtering or grouping by detailed information at a station &amp;amp; interface level is necessary**.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Use other dimensional tables in a similar way, if necessary.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ## SQL query generation steps
&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:#8f5902;font-style:italic&#34;&gt;              Follow these reasoning steps to generate the SQL query:
&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:#8f5902;font-style:italic&#34;&gt;              - Step 1: Identify Necessary Tables
&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:#8f5902;font-style:italic&#34;&gt;                - Step 2: Identify Useful Candidate Columns
&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:#8f5902;font-style:italic&#34;&gt;                - Step 3: Assess if Tables and Columns are Sufficient to Answer the Question
&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:#8f5902;font-style:italic&#34;&gt;                - Step 4: Plan the SQL Query
&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:#8f5902;font-style:italic&#34;&gt;                - Step 5: Write the final SQL Query and apply the rules
&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:#8f5902;font-style:italic&#34;&gt;                - Step 6: Check that the query actually can answer the question
&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:#8f5902;font-style:italic&#34;&gt;                - Step 7: Create the result as a JSON object
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              # Detailed instructions
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 1: Identify Necessary Tables for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              First, identify which tables are necessary to answer the question `{question}`. Justify why you selected each of these tables.
&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:#8f5902;font-style:italic&#34;&gt;              Use the following format:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              I need the following tables to answer the question:
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 2: Identify Useful Candidate Columns for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Identify which columns are useful to answer the question `{question}`. Justify why you selected each of these columns.
&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:#8f5902;font-style:italic&#34;&gt;              Always include any column you think may be needed to answer the question. If there are similar columns in the table, you should identify all of them always. You will later choose which them are more suitable to answer the question. But, at this stage, you should include **all the columns that may be useful**.
&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:#8f5902;font-style:italic&#34;&gt;              Write the list of candidate columns you have identified and the reasoning after each column, using the following format:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              I can use the following candidate columns to answer the question (including all the columns that may be useful):
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;table name&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;table_name&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 3: Assess if Tables and Columns are Sufficient to Answer the Question for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Tell if the tables and columns you identified are enough to answer the question `{question}`. Make sure to justify your answer and check the actual descriptions of the columns in the table definitions and the user question.
&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:#8f5902;font-style:italic&#34;&gt;              Write the answer using the following format:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Possible to answer the question using the former columns:
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;reasoning&amp;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:#8f5902;font-style:italic&#34;&gt;              - Result: &amp;lt;Yes|No&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 4: Plan the SQL Query for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Explain, step by step, how you would write the SQL query to answer the question `{question}`, using the columns you identified.
&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:#8f5902;font-style:italic&#34;&gt;              **Use the full qualified names of the columns**. **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              To finish this step, explain how you would write the SQL query to answer the question, using the columns you identified, taking into account the previous considerations for columns contained in maps, if there are any.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 5: Write the final SQL Query and apply the rules for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Finally, write the SQL query to answer the question `{question}`, using the columns you identified.
&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:#8f5902;font-style:italic&#34;&gt;              Remarks:
&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:#8f5902;font-style:italic&#34;&gt;              **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Check if you need to use any of the following **business rules** to build the query:
&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:#8f5902;font-style:italic&#34;&gt;              ```json
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;rules&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Fiction&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for tariff plans including \&amp;#34;ficción\&amp;#34; contents in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FICCION%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%SERIES%&amp;#39;, &amp;#39;%CINE%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCION%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FICCIÓN%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%SERIES%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CINE%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Disney&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for tariff plans including \&amp;#34;Disney\&amp;#34; contents in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DISNEY%&amp;#39;.  To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DISNEY%&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B3&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Football&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for tariff plans including football contents in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%FUTBOL%&amp;#39;, &amp;#39;%FÚTBOL%&amp;#39;, &amp;#39;%FUSION TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TOTAL%&amp;#39;,  &amp;#39;%FUSION TA TOTAL%&amp;#39;, &amp;#39;%FUSIÓN TA TOTAL%&amp;#39;, &amp;#39;%LIGA%&amp;#39;, &amp;#39;%CHAMPION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one:  `UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUTBOL%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FÚTBOL%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSION TOTAL%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%FUSIÓN TOTAL%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%LIGA%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%CHAMPION%&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B4&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Netflix&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for tariff plans including \&amp;#34;Netflix\&amp;#34; contents in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%NETFLIX%&amp;#39;, &amp;#39;%FICCIÓN%&amp;#39;, &amp;#39;%FICCION%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%NETFLIX%&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B5&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Promociones&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Need to look for tariff plans including \&amp;#34;promotions\&amp;#34; in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%PROMO%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%PROMO%&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B6&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Edad promedio 1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are using the field `CBD_INFO_REC.CUST_AGE_NUM` in the 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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You are not allowed to use the field `CBD_INFO_REC.CUST_AGE_NUM` in any query. You should use the field `CBD_INFO_REC.CUST_AGE_SEGMENT_CD` instead.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B7&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Edad promedio 2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Calculate the average age of customers.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the  following calculation instead of AVG(CBD_INFO_REC.CUST_AGE_SEGMENT_CD): AVG(IF(CBD_INFO_REC.CUST_AGE_SEGMENT_CD = &amp;#39;1&amp;#39;, NULL, CBD_INFO_REC.CUST_AGE_SEGMENT_CD))\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B8.1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Query by customers&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The question `{{question}}` is about customers.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the `CUSTOMER_ID` field to filter by customers.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B8.2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Query by homes&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The question `{{question}}` is about homes.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the `DEVICE_ID` field to filter by homes.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B9&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Station type&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The field `STATION_TYPE_L1` or `STATION_TYPE_L2` are used in the 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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;The field `STATION_TYPE_L2` corresponds to a higher aggregation level than `STATION_TYPE_L1`.  `STATION_TYPE_L1` corresponds to an intermediate category, used only with analytical purposes.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B10.1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Computing of homes or devices (devices are also known as homes)&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Check if the question: `{{question}}` is asking for a computation on devices or homes (devices are also known as homes).\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;If no other condition is set, Include this constraint in the query: `DEVICE_INFO_REC.INACTIVITY_DEVICE_INFO_NUM &amp;lt; 24` (The device must be idle less than 24 hours)\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B10.2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Computing of RSSI&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Check if the question: `{{question}}` is asking for a computation on RSSI\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;If no other condition is set, Include this constraint in the query: `DEVICE_INFO_REC.INACTIVITY_DEVICE_INFO_NUM &amp;lt; 24` (The device must be idle less than 24 hours)\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B10.3&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Computing of symmetrical speed&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Check if the question: `{{question}}` is asking for a computation on symmetrical speed\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;If no other condition is set, Include this constraint in the query: `DEVICE_INFO_REC.INACTIVITY_DEVICE_INFO_NUM &amp;lt; 24` (The device must be idle less than 24 hours)\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B11&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Penetración de un producto&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked for calculating \&amp;#34;la penetración de un producto\&amp;#34; in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should calculate the percentage of customers with that product.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B12&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Obsolete routers&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked for obsolete routers in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should check for those with MANUFACT_HGU_CHIPSET_DES IN (&amp;#39;Askey Broadcom&amp;#39;, &amp;#39;Askey Econet&amp;#39;,&amp;#39;MitraStar Broadcom&amp;#39;, &amp;#39;MitraStar Econet&amp;#39;).\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B13&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;High value customers&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked for high value customers in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Consider as high value customers those with a monthly revenue higher than 100 (TOTAL_CUST_RV &amp;gt; 100).\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B14.1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Technological level formula&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Check the technological level of a customer in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Use the following formula on the field `TECH_LEVEL_WEIGHT_QT` of the table `D_CBD_STATIC_STATION_TYPE_v6`: `SUM(COALESCE(D_CBD_STATIC_STATION_TYPE_v6.TECH_LEVEL_WEIGHT_QT,0) + CASE WHEN AMM.VALUE.STATION_BRAND_DES = &amp;#39;Ubiquiti&amp;#39; THEN 0.8 ELSE 0 END)/COUNT(DISTINCT DAY_DT)`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B14.2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Technological levels&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked for the technological level of a customer in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Consider as **high technological level** customers those with a value higher or equal to 2.5. Consider as **medium technological level** customers those with a value higher or equal to 1 and lower than 2.5. Consider as **low technological level** customers those with a value lower than 1.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B15&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Sport&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for tariff plans including \&amp;#34;sport\&amp;#34; contents.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You will need to look for one the following  patterns in the `TARIFF_PLAN_DES` field: &amp;#39;%DEPORTE%&amp;#39;, &amp;#39;%TOTAL PLUS%&amp;#39;, &amp;#39;%TOTAL SAT%PLUS%&amp;#39;, &amp;#39;%MOTOR%&amp;#39;, &amp;#39;%DAZN%&amp;#39;. To make the proper comparison, you should use compare with uppercase letters. For instance, use a filter like this one: `(UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DEPORTE%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL PLUS%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%TOTAL SAT%PLUS%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%MOTOR%&amp;#39; OR UPPER(${{{{TABLE}}}}.TARIFF_PLAN_DES) LIKE &amp;#39;%DAZN%&amp;#39;)`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;B16&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Residencial&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The question `{{question}}` asks for homes or residential customers (B2C users).\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Use ONLY the constraint:`CBD_INFO_REC.SEGMENT_ID = &amp;#39;GP&amp;#39;`. If you use the constraint: `SEGMENT_DES = &amp;#39;Residencial&amp;#39;,  NEVER USE the value in English (&amp;#39;Residential&amp;#39;) but the value in Spanish (&amp;#39;Residencial&amp;#39;).\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Temporary table fields&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You use in a filter a given filed from a temporary table, built using the `WITH` clause.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Make sure that the field is actually present in the SELECT statement defining the temporary table.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Temporary table field naming&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You write a temporary table like this: `WITH temp_table AS (SELECT field1_prefix.field1 FROM table)`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;then you should use refer to the field as `field1` and not as `field1_prefix.field1` in the rest of the 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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R3&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Tariff plan&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for some specific tariffs in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Use the field `TARIFF_PLAN_DES` from the dimensional table D_Fixed_Tariff_Plan instead of using `CBD_INFO_REC.COMMERCIAL_TARIFF_ID` since this last one only contains identifiers without any meaning.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R4.1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Station type 1&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Answer this question: does the value you are looking for match one of the possible values of these fields? Justify your answer. Enumerate the possible values of these fields if they are used.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R4.2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Station type 2&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses a filter with the field `D_CBD_Static_Station_Type_v6.STATION_TYPE_L1_DES` or `D_CBD_Static_Station_Type_v6.STATION_TYPE_L2_DES` and the value you are looking for does not match any of the possible values of these fields.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the field `STATION_TYPE_CD` instead. Write the result of the previous reasoning in detail.  REMEMBER TO FIX THE QUERY TO USE THE FIELD `STATION_TYPE_CD` INSTEAD.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R5&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Counting entities&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Count the number of customers, homes, devices or any other entities in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should ensure that you are actually counting distinct entities. Therefore you should use the `COUNT(DISTINCT ...)` function instead of `COUNT(...)`.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R6&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Time scope less than a month&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked to answer a question for a time scope minor than a month (daily or weekly) in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;you must not use the field `MONTH_DT` in your 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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R7&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;No UNION operator&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You use the UNION operator in your queries.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Avoid using the UNION operator in your queries.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R8&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Counting entities&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are asked to count the number of customers, homes, devices or any other entities in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should ensure that the  result is actually a count and not a list of elements. Therefore you should use the COUNT function.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R9&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;IoT devices&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for IoT (Internet of Things) devices in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should look for devices with `STATION_TYPE_L2_DES = &amp;#39;Smart Home&amp;#39;`\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R10&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Router model&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Check the model of the router in the question `{{question}}`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the field `MANUFACT_HGU_CHIPSET_DES` (do not use other fields such as `MANUFACTURER_FW_VER_DES`).\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R11&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Weekly period&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Query data from weekly period.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should start always with the specified day up to the same day of the following week. For instance, if you are  asked for the week starting on the day 2022-01-01, you should query data from 2022-01-01 to 2022-01-07.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R12&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;WiFi type&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for information on a specific WiFi type, such as 2.4 GHz or 5 GHz.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should use the specific fields corresponding to these types.  For instance, if you need to look for WiFi5 device information, you should not use the field `STATIONS_REC.WIFI_REC.ALL_TECH_REC` but the field `STATIONS_REC.WIFI_REC.TECH_5G_REC`.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R13&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Equivalent terms for WiFi technologies&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You are looking for information on WiFi technologies.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;The following terms are considered equivalent: \n- `WiFi 5G`, `WiFi Technology 5G`, `WiFi5`.\n- `WiFi 2.4G`, `WiFi Technology 2.4G`, `WiFi2.4` , `WiFi2`, `WiFi Technology 2G`, `WiFi 2G`.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R14&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Customer Satisfaction Index&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses the field `CSI_QT`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should keep in mind that the field `CSI_QT` contains the `Customer Satisfaction Index` value. It is not a quality value but a satisfaction value.  Do not confuse it with Quality Index fields.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R15&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Active HGU devices&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;Look for active HGU devices.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should keep in mind that the field `CUST_HGU_DEVICES_NUM` contains the number of active HGU devices of the customer, i.e. the number of active routers (HGUs) of the customer.  Do not confuse it with the number of active devices of the customer.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R16&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Megabytes&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses fields starting with `MB_` or containing `_MB_` in their name.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Keep in mind that fields starting with `MB_` or containing `_MB_` in their name refer to Megabytes. Take this into account during your queries.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R17&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Gigabytes&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses fields starting with `GB_` or containing `_GB_` in their name.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Keep in mind that fields starting with `GB_` or containing `_GB_` in their name refer to Gigabytes. Take this into account during your queries.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R18&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;RSSI meaning&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;The query uses the field `RSSI`.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;Keep in mind that the field `RSSI` refers to the `Received Signal Strength Indicator`. It is a measure of the power present in a received radio signal.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;id&amp;#34;: &amp;#34;R19&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;name&amp;#34;: &amp;#34;Checking absence of a device&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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;condition&amp;#34;: &amp;#34;You need to look for homes without a specific type of device.\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:#8f5902;font-style:italic&#34;&gt;                    &amp;#34;action&amp;#34;: &amp;#34;You should not forget checking at least one of the following fields: `STATION_TYPE_L1_DES`, `STATION_TYPE_L2_DES`, `STATION_TYPE_CD`. In other words, you need an explicit filter checking the absence of the device.\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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Explain whether you can apply any of the rules and explain how you would apply them in the SQL query.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Always write your result following these steps:
&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:#8f5902;font-style:italic&#34;&gt;              5.1. Question to be answered: &amp;lt;write again the question here&amp;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:#8f5902;font-style:italic&#34;&gt;              5.2. SQL query: &amp;lt;write the SQL query here&amp;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:#8f5902;font-style:italic&#34;&gt;              5.3. Reasoning: &amp;lt;explain why you wrote the query like that&amp;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:#8f5902;font-style:italic&#34;&gt;              5.4. Check of the rules, RULE BY RULE and FOR EACH RULE (one entry per rule). Write ALL the rules and tell if they are applied or not. Follow this format:
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;rule1&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;rule2&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                5.5. Result of the execution of the rules that have been identified to be applied. Follow this format:
&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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;rule1&amp;gt;: &amp;lt;result&amp;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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;rule2&amp;gt;: &amp;lt;result&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                5.6. Need to fix the query because &amp;lt;reason&amp;gt;. The following changes are needed: &amp;lt;change_1&amp;gt;, &amp;lt;change 2&amp;gt;, etc. | The query is already correct.
&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:#8f5902;font-style:italic&#34;&gt;                5.7. SQL query to answer the question `{question}` after considering the previous **rules**: &amp;lt;write the SQL query here&amp;gt;. FIX THE QUERY IF NECESSARY. Check that the fixed query includes all the rules that should apply.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 6: Check that the query actually can answer the question for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Check again if the generated query answers the question `{question}`.
&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:#8f5902;font-style:italic&#34;&gt;              Follow these steps:
&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:#8f5902;font-style:italic&#34;&gt;              6.1. Write the concepts involved in the question. Enumerate the concepts as a list. Follow this format:
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;concept1&amp;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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;concept2&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              6.2. Write all the concepts of the question that are covered by the SQL query. Enumerate them and create a match list with the concepts from the previous step. Write down the part of the SQL query covering the concept. Take into account that conditions on specific proper names, such as model names, location names, etc., need to be explicitly checked with the description of the corresponding column. Follow this format:
&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:#8f5902;font-style:italic&#34;&gt;              - &amp;lt;concept1&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.
&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:#8f5902;font-style:italic&#34;&gt;                - &amp;lt;concept2&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.
&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:#8f5902;font-style:italic&#34;&gt;              6.3. Find those concepts in the question that are not covered by the SQL query.
&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:#8f5902;font-style:italic&#34;&gt;              6.4. Conclude whether the question can actually be answered by the generated query. Follow this format:
&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:#8f5902;font-style:italic&#34;&gt;                - The question can be answered by the SQL query: &amp;lt;Yes|No&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              ### Step 7: Create the result as a JSON object for answering the question `{question}`
&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:#8f5902;font-style:italic&#34;&gt;              Return the result as a unique JSON object, with the following structure:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;result&amp;#34;: &amp;lt;Write the SQL query here. **MAKE SURE THAT THE STATEMENT `SELECT JSON_OBJECT` is not used in the query and Use the full qualified names of the columns. Generate a valid SQL sentence in a single line without new line characters.**&amp;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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;status&amp;#34;: &amp;#34;OK&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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;reason&amp;#34;: &amp;lt;a reasoning explaining the query&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              If the former table does not contain the necessary data to answer the question, return the following JSON object:
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;result&amp;#34;: null,
&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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;status&amp;#34;: &amp;#34;ERROR&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:#8f5902;font-style:italic&#34;&gt;                &amp;#34;reason&amp;#34;: &amp;lt;a reasoning explaining why it is not possible to answer the question&amp;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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              Make sure that the JSON object is correctly formatted, and can be parsed by a JSON parser.
&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:#8f5902;font-style:italic&#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:#8f5902;font-style:italic&#34;&gt;              **Please, ALWAYS follow the 7 steps presented in the instructions.** Start reasoning with ### Step 1 and finish with ### Step 7.&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;              
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&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; Some considerations to keep in mind:&lt;br&gt;
. Make sure that the LLM &lt;strong&gt;copilot-rag-model-gw-raw-gpt-4-o&lt;/strong&gt; is defined within the LLMs field.      &lt;br&gt;
. In turn, the preset defined within this LLM must be defined in the ConfigMap &lt;strong&gt;atria-model-gw-config&lt;/strong&gt;.
&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Save and close the ConfigMap&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;adjust-max_tokens-param&#34;&gt;Adjust max_tokens param&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;atria-rag-config&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;llms&lt;/code&gt; key, search &lt;strong&gt;copilot-rag-model-gw-raw-gpt-4-o&lt;/strong&gt; and update the &lt;strong&gt;max_tokens&lt;/strong&gt; field:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;max_tokens: 16384
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;adjust-timeouts-in-aura-gateway-api-and-nginx&#34;&gt;Adjust timeouts in aura-gateway-api and Nginx&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;aura-gateway-api&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit configmap aura-gateway-api  -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;config&lt;/code&gt; key, search and update the &lt;strong&gt;AURA_REQUEST_TIMEOUT&lt;/strong&gt; field:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AURA_REQUEST_TIMEOUT: 490000
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;aura-services&lt;/strong&gt;   &lt;br&gt;
&lt;code&gt;kubectl edit vs aura-services  -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;aura-gateway-api&lt;/code&gt; key, search and update &lt;strong&gt;read_timeout&lt;/strong&gt;  and &lt;strong&gt;send_timeout&lt;/strong&gt; field:&lt;/p&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;read_timeout: 495s
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;send_timeout: 495s
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;upload-documents-and-execute-generate-db-job&#34;&gt;Upload documents and execute generate-db job&lt;/h2&gt;
&lt;p&gt;Follow the guidelines for uploading new or modified documents in a specific environment through the edition of the ConfigMap of the component (included in the general guidelines &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/import-documents/#2-import-documents&#34;&gt;Import documents into ATRIA&lt;/a&gt;).&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Upload the documents in the Azure container &lt;code&gt;atria-resources&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;Remember to upload the files to the folder you defined previously in the config &lt;strong&gt;project-copilot-reduced/jsonl&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Keep in mind the allowed formats for documents, set in the project&amp;rsquo;s variable &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#:~:text=extension%3A-,loader,-%3A&#34;&gt;&lt;code&gt;loader&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Finally, execute the &lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/#launch-atria-rag-generate-db&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-generate-db&lt;/strong&gt;&lt;/em&gt; job&lt;/a&gt; to update the data into the environment.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;restart-the-deployments&#34;&gt;Restart the deployments&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-rag -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-model-gw -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment aura-gateway-api -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;
&lt;h2 id=&#34;update-aura-applications-configuration-via-api&#34;&gt;Update Aura applications configuration via API&lt;/h2&gt;
&lt;p&gt;Once the changes have been updated and saved in the ConfigMaps, the &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; must be updated to indicate the &lt;strong&gt;application&lt;/strong&gt; that will make use of this preset.&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; This document includes a specific scenario in the process of modifying API configuration, described in the document &lt;a href=&#34;../../docs/atria/technical-guidelines/hot-swapping-application/#hot-swapping-of-aura-applications-configuration&#34;&gt;&lt;strong&gt;Hot swapping of Aura applications configuration&lt;/strong&gt;&lt;/a&gt;.&lt;/p&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    curl --location --request PATCH &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://svc-&amp;lt;env&amp;gt;.auracognitive.com/aura-services/v2/configuration/applications/3e1cb831-d5bf-423d-8bef-4abcc53dfa97&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;correlator: &amp;lt;uuid&amp;gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Accept: application/json&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --header &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Authorization: APIKEY {{apikey}}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#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;&lt;/span&gt;    --data &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{
&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;id&amp;#34;: &amp;#34;3e1cb831-d5bf-423d-8bef-4abcc53dfa97&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;models&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;presets&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;copilot-preset-rag&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;copilot-reduced-preset-rag&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;raw-gpt-4o&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;openai-preset-gpt-35-turbo-copilot-generative&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;openai-preset-gpt-4o-copilot-generative&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;openai-preset-gpt-4o-mini-copilot-generative&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;            ]
&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;        }
&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;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&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; It is necessary to send all application presets in the request.&lt;/p&gt;
&lt;h2 id=&#34;load-original-config-and-deployments-rollback&#34;&gt;Load original config and deployments rollback&lt;/h2&gt;
&lt;p&gt;In case you want to return to the original configuration, the following steps must be carried out:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Load the original ConfigMap &lt;strong&gt;atria-model-gw-config&lt;/strong&gt;. &lt;br&gt;
&lt;code&gt;kubectl apply -f &amp;lt;local_file_path&amp;gt;/model-gw-config.yaml -n &amp;lt;namespace&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Load the original ConfigMap &lt;strong&gt;atria-rag-config&lt;/strong&gt;. &lt;br&gt;
&lt;code&gt;kubectl apply -f &amp;lt;local_file_path&amp;gt;/rag-config.yaml -n &amp;lt;namespace&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Load the original ConfigMap &lt;strong&gt;aura-gateway-api&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;kubectl apply -f &amp;lt;local_file_path&amp;gt;/gateway-config.yaml -n &amp;lt;namespace&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Load the original ConfigMap &lt;strong&gt;aura-services&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;kubectl apply -f &amp;lt;local_file_path&amp;gt;/services-config.yaml -n &amp;lt;namespace&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one; change &lt;code&gt;local_file_path&lt;/code&gt; by the desired path)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-model-gw -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-rag -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment aura-gateway-api -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Change &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; by the specific one)&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/update-atria-configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/update-atria-configuration/</guid>
      <description>
        
        
        &lt;h1 id=&#34;update-aura-copilot-related-atria-configuration-using-configmap&#34;&gt;Update Aura Copilot-related ATRIA configuration using ConfigMap&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&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; &lt;strong&gt;Guidelines valid for releases previous to Metallica&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This document includes a specific scenario in the process for modifying &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration, described in the document &lt;a href=&#34;https://technicaldocs.auracognitive.com/master/docs/atria/technical-guidelines/configuration/&#34;&gt;&lt;strong&gt;Modify ATRIA components configuration&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Guidelines to update certain &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; configuration parameters related to calls to &lt;em&gt;&lt;strong&gt;Aura Copilot&lt;/strong&gt;&lt;/em&gt; in Kiss release in a specific environment through the use of &lt;strong&gt;ConfigMap&lt;/strong&gt;, specifically:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To modify the timeout parameter in the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; gpt-4o model&lt;/li&gt;
&lt;li&gt;To modify the SQL prompt in the &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; project&lt;/li&gt;
&lt;li&gt;Upload files and launch the &lt;strong&gt;generate-db&lt;/strong&gt; job&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h3 id=&#34;enable-configmap&#34;&gt;Enable ConfigMap&lt;/h3&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; As a prerequisite, we must count on a &lt;strong&gt;KUBECONFIG&lt;/strong&gt; with sufficient permissions and access to the environment.&lt;/p&gt;
&lt;p&gt;We have one ConfigMap for each component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;atria-model-gateway&lt;/strong&gt;&lt;/em&gt;: atria-model-gw-config&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt;: atria-rag-config&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For the ConfigMap modification, use the following example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kubectl edit configmap atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt; (change the namespace by the specific one)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt; (change the namespace by the specific one)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Substitute &lt;code&gt;&amp;lt;namespace&amp;gt;&lt;/code&gt; with the corresponding environment: &lt;code&gt;es-pre&lt;/code&gt; or &lt;code&gt;es-pro&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You can also use visual tools for this modification, such as &lt;a href=&#34;https://k8slens.dev/download&#34;&gt;Lens&lt;/a&gt; or &lt;a href=&#34;https://www.sublimetext.com/download&#34;&gt;Sublime&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;edit-models-timeouts&#34;&gt;Edit models timeouts&lt;/h3&gt;
&lt;p&gt;Guidelines for the modification of the model timeout parameter in the &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/atria-default-configuration/#gpt-4o:~:text=context_window%3A%20300-,gpt%2D4o,-Model%20for%20using&#34;&gt;gpt-4o model&lt;/a&gt; in a specific environment through the edition of the ConfigMap of the component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;atria-model-gw-config&lt;/strong&gt; and look for the model &lt;strong&gt;gpt-4o&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-model-gw-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change the namespace by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Edit the timeout and read keys to &lt;strong&gt;240&lt;/strong&gt;
&lt;img src=&#34;../../images/atria/model-gw-example-config.png&#34; alt=&#34;Structure Folders&#34;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Save and close the ConfigMap&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the deployment for the pod to be updated with the changes.&lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-model-gw -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change the namespace by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;edit-models-prompts&#34;&gt;Edit models prompts&lt;/h3&gt;
&lt;p&gt;Guidelines for the modification of the SQL prompt in the &lt;em&gt;&lt;strong&gt;atria-rag-server&lt;/strong&gt;&lt;/em&gt; project: &lt;em&gt;Project to Copilot&lt;/em&gt; in a specific environment through the edition of the ConfigMap of the component:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the ConfigMap &lt;strong&gt;atria-rag-config&lt;/strong&gt;.&lt;br&gt;
&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change the namespace by the specific one)&lt;/li&gt;
&lt;/ul&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; &lt;strong&gt;Important: Before modifying anything, it is highly recommended to make a backup of the ConfigMap content, because the format is very delicate.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Copy the whole content of the &lt;strong&gt;projects.yaml.project&lt;/strong&gt; key and paste it into a new local file. Since it is a string, you need to transform it to YAML format, for an easier modification. You can use the &lt;a href=&#34;https://dadroit.com/yaml-to-string/&#34;&gt;YAML to string tool&lt;/a&gt; to convert a string to YAML and vice versa or &lt;a href=&#34;https://www.yamllint.com/&#34;&gt;YAML Lint&lt;/a&gt; to validate the YAML format.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When writing prompts, be very careful not to let tabulators (&amp;rsquo;\t&amp;rsquo; characters) slip in. In addition, the spacing must be correct in multi-line strings.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;projects.yaml.project&lt;/strong&gt; contains all projects. At this stage, search the project to be modified: &lt;em&gt;&lt;strong&gt;project-copilot&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Within this project, inside the &lt;strong&gt;prompts&lt;/strong&gt; key, add (or modify if it already exists) the &lt;strong&gt;generate_sql_query&lt;/strong&gt; field.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once the prompt is set, copy all the content and pass it back to string, to paste it in the ConfigMap inside the &lt;strong&gt;projects.yaml.project&lt;/strong&gt; key and save.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the deployment for the pod to be updated with the changes.  &lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-rag -n &amp;lt;namespace&amp;gt;&lt;/code&gt;&lt;br&gt;
(Change the namespace by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Generate SQL query&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    DEFAULT: | 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Generate a SQL query statement to answer the following question:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    `{question}`
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Use the data contained in the following table. You have its definition in SQL and in Avro.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {sql_table_definition}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    The following tables, containing auxiliary information, are also available:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```sql
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_CBD_Static_Geo_Area_v6 (GEO_AREA_ID VARCHAR, CBD_GEO_AREA_LEVEL1_ID VARCHAR, CBD_GEO_AREA_LEVEL2_ID VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_CBD_Static_Geo_Area IS &amp;#39;Geographical areas. This table contains foreign keys to the different levels of geographical areas. In particular, it contains the foreign keys to these tables: CBD_Static_Geo_Area_Level1, CBD_Static_Geo_Area_Level2, CBD_Static_Geo_Area_Level3, CBD_Static_Geo_Area_Level4. Therefore, this tables is used, via JOIN, to query the geographical information contained in the different levels of geographical areas. For instance, if you have a table T with a field GEO_AREA_ID and you need to check whether this location corresponds to the region of Asturias you will need to look for GEO_AREA_ID in this table, then extract the CBD_GEO_AREA_LEVEL4_ID and query the table CBD_Static_Geo_Area_Level4 to get the name of the region.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL1_ID IS &amp;#39;Identifier of the geographical area Level 1 (max level of detail: CP or similar). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code. This field does not contain location names.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_CBD_Static_Geo_Area_Level2_v6 (CBD_GEO_AREA_LEVEL2_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL3_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_CBD_Static_Geo_Area_Level2 IS &amp;#39;Geographical area level 2 (State)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL2_ID IS &amp;#39;Identifier of the geographical area Level 2 (City/Town). FORMAT: string containing a numerical code.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 2. FORMAT: alphanumeric string containing the name of the city/town.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 2&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 2&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level2.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_CBD_Static_Geo_Area_Level3_v6 (CBD_GEO_AREA_LEVEL3_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, CBD_GEO_AREA_LEVEL4_ID VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, ISO_3166_2_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_CBD_Static_Geo_Area_Level3 IS &amp;#39;Geographical area level 3 (Region)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL3_ID IS &amp;#39;Identifier of the geographical area Level 3 (Province). FORMAT: string containing a numerical code.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 3. FORMAT: alphanumeric string containing the name of the province.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 3&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 3&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.ISO_3166_2_CD IS &amp;#39;ISO 3166-2 associated&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level3.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_CBD_Static_Geo_Area_Level4_v6 (CBD_GEO_AREA_LEVEL4_ID VARCHAR, GEO_AREA_LEVEL_DES VARCHAR, LONGITUDE_LON_CO DOUBLE, LATITUDE_LAT_CO DOUBLE, HASC_1_CD VARCHAR, GEO_AREA_ID VARCHAR, GEO_STD_AREA_CD VARCHAR, OB_ALPHA_ID VARCHAR, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_CBD_Static_Geo_Area_Level4 IS &amp;#39;Geographical area level 4 (min. Detail)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.CBD_GEO_AREA_LEVEL4_ID IS &amp;#39;Identifier of the geographical area Level 4 (State/Region). FORMAT: string containing a numerical code.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_LEVEL_DES IS &amp;#39;Description associated to the identifier level 4. FORMAT: alphanumerical string containing the name of the state/region. EXAMPLE VALUES: &amp;#39;&amp;#39;Asturias&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Andaluc\u00eda&amp;#39;&amp;#39;, etc.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LONGITUDE_LON_CO IS &amp;#39;Longitude coordinates (in WGS84) associated with level 4&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.LATITUDE_LAT_CO IS &amp;#39;Latitude coordinates (in WGS84) associated with level 4&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.HASC_1_CD IS &amp;#39;Hierarchical administrative subdivision codes &amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_AREA_ID IS &amp;#39;Description: Identifier of the geographical area assigned to the customer (typically the geographical area of the customer home). This identifier is a string code which values are defined in &amp;#39;&amp;#39;D_Geographical_Area&amp;#39;&amp;#39; entity. Format: alphanumeric string. Example values: &amp;#39;&amp;#39;2800983CE&amp;#39;&amp;#39;, &amp;#39;&amp;#39;50059&amp;#39;&amp;#39;, &amp;#39;&amp;#39;3101142CE&amp;#39;&amp;#39;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.GEO_STD_AREA_CD IS &amp;#39;Standard code of the geo area&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.OB_ALPHA_ID IS &amp;#39;Alphanumeric Organizational Business ID&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Geo_Area_Level4.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_CBD_Static_Station_Type_v6 (STATION_TYPE_CD VARCHAR, TECH_LEVEL_WEIGHT_QT FLOAT, STATION_TYPE_L2_DES VARCHAR, STATION_TYPE_L1_DES VARCHAR, STATION_TYPE_L2_ORDER_NUM INT, STATION_TYPE_L1_ORDER_NUM INT, STATION_TYPE_ORDER_NUM INT, CONSCIOUS_IND BOOLEAN, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_CBD_Static_Station_Type IS &amp;#39;Station types&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_CD IS &amp;#39;Description: Type of device connected to the HGU router. It used to find out which devices are connected to routers in households. Format: String. Example values: &amp;#34;A/V Equipment&amp;#34;, &amp;#34;Air Conditioning&amp;#34;, &amp;#34;Air Conditioning Control&amp;#34;, &amp;#34;Apple Handheld Device&amp;#34;, &amp;#34;Apple Home Device&amp;#34;, &amp;#34;AudioCast&amp;#34;, &amp;#34;Audiocast&amp;#34;, &amp;#34;Barcode Printer&amp;#34;, &amp;#34;Camera&amp;#34;, &amp;#34;Car Dash Cam&amp;#34;, &amp;#34;Cryptominner&amp;#34;, &amp;#34;Digital Clock&amp;#34;, &amp;#34;Dishwasher&amp;#34;, &amp;#34;Drone Equipment&amp;#34;, &amp;#34;GPS&amp;#34;, &amp;#34;Gaming Console&amp;#34;, &amp;#34;Hyper Media Player&amp;#34;, &amp;#34;IP Camera&amp;#34;, &amp;#34;IPC Hub&amp;#34;, &amp;#34;IPC Video Recorder&amp;#34;, &amp;#34;IoT Device&amp;#34;, &amp;#34;Key Cutting Machine&amp;#34;, &amp;#34;Media Center&amp;#34;, &amp;#34;Monitoring Device&amp;#34;, &amp;#34;Multimedia Player&amp;#34;, &amp;#34;Network Access Point&amp;#34;, &amp;#34;Network Equipment&amp;#34;, &amp;#34;PC&amp;#34;, &amp;#34;PDA&amp;#34;, &amp;#34;PIR Sensor&amp;#34;, &amp;#34;Print Server&amp;#34;, &amp;#34;Printer&amp;#34;, &amp;#34;Projector&amp;#34;, &amp;#34;Raspberry&amp;#34;, &amp;#34;Router&amp;#34;, &amp;#34;Security System&amp;#34;, &amp;#34;Smart AC Control&amp;#34;, &amp;#34;Smart Air Freshener&amp;#34;, &amp;#34;Smart Air Fryer&amp;#34;, &amp;#34;Smart Air Ventilator&amp;#34;, &amp;#34;Smart Animal Feeder&amp;#34;, &amp;#34;Smart Baby Monitor&amp;#34;, &amp;#34;Smart Blind&amp;#34;, &amp;#34;Smart Bulb&amp;#34;, &amp;#34;Smart Bulb Adapter&amp;#34;, &amp;#34;Smart Car&amp;#34;, &amp;#34;Smart Car e-Charger&amp;#34;, &amp;#34;Smart Display e-bike&amp;#34;, &amp;#34;Smart Energy Analyzer&amp;#34;, &amp;#34;Smart Home Controller&amp;#34;, &amp;#34;Smart Home Hub&amp;#34;, &amp;#34;Smart Humidifier&amp;#34;, &amp;#34;Smart Hydrometer Clock&amp;#34;, &amp;#34;Smart Kitchen Appliances&amp;#34;, &amp;#34;Smart Kitchen Scale&amp;#34;, &amp;#34;Smart Lamp&amp;#34;, &amp;#34;Smart Light Dimmer&amp;#34;, &amp;#34;Smart Lock Control&amp;#34;, &amp;#34;Smart Plug&amp;#34;, &amp;#34;Smart Pool&amp;#34;, &amp;#34;Smart Power Strip&amp;#34;, &amp;#34;Smart Purifier&amp;#34;, &amp;#34;Smart Scale&amp;#34;, &amp;#34;Smart Signage&amp;#34;, &amp;#34;Smart Speaker&amp;#34;, &amp;#34;Smart Switch&amp;#34;, &amp;#34;Smart TV&amp;#34;, &amp;#34;Smart Thermostat&amp;#34;, &amp;#34;Smart Toothbrush&amp;#34;, &amp;#34;Smart Vacuum&amp;#34;, &amp;#34;Smart WallSocket&amp;#34;, &amp;#34;Smart Watch&amp;#34;, &amp;#34;Smart Watch Fit&amp;#34;, &amp;#34;Smart WifiButton&amp;#34;, &amp;#34;Smartphone&amp;#34;, &amp;#34;Smartphone/Tablet&amp;#34;, &amp;#34;Smartwatch&amp;#34;, &amp;#34;Smartwatch Fit&amp;#34;, &amp;#34;Solar Panel Equipment&amp;#34;, &amp;#34;Soundbar&amp;#34;, &amp;#34;Steam Controller&amp;#34;, &amp;#34;Storage Device&amp;#34;, &amp;#34;TPV&amp;#34;, &amp;#34;TV Dongle&amp;#34;, &amp;#34;Tablet&amp;#34;, &amp;#34;Tempest Weather System&amp;#34;, &amp;#34;UPS&amp;#34;, &amp;#34;VR/AR Headset&amp;#34;, &amp;#34;Video Doorbell&amp;#34;, &amp;#34;Video Intercom&amp;#34;, &amp;#34;Video STB Equipment&amp;#34;, &amp;#34;VideointercomIP&amp;#34;, &amp;#34;Virtual Desktop&amp;#34;, &amp;#34;VoIP Phone&amp;#34;, &amp;#34;WAN Extender&amp;#34;, &amp;#34;WiFi Extender&amp;#34;, &amp;#34;Wifi Dongle&amp;#34;, &amp;#34;Wireless Blood Pressure Monitor&amp;#34;, &amp;#34;Wireless Bridge&amp;#34;, &amp;#34;Wireless Headphones&amp;#34;, &amp;#34;Wireless Router + VoIP Series&amp;#34;, &amp;#34;e-Note&amp;#34;, &amp;#34;eBook&amp;#34;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.TECH_LEVEL_WEIGHT_QT IS &amp;#39;Associated weight for the technologic level of the home&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_DES IS &amp;#39;Description: Higher level device type grouping. Example values: &amp;#34;PCs &amp;amp; Home Office&amp;#34;, &amp;#34;Smartphones / Tablets / eReaders / iWatch&amp;#34;, &amp;#34;Multimedia Entertainment&amp;#34;, &amp;#34;Gaming&amp;#34;, &amp;#34;Sport &amp;amp; Health&amp;#34;, &amp;#34;Smart Home&amp;#34;, &amp;#34;Unknown&amp;#34;, &amp;#34;Network Devices&amp;#34;, &amp;#34;Security &amp;amp; Control&amp;#34;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_DES IS &amp;#39;Description: Intermediate level device type grouping. Example values: &amp;#34;Smart Speakers &amp;amp; Audio&amp;#34;, &amp;#34;PCs &amp;amp; Home Office&amp;#34;, &amp;#34;Video Entertainment&amp;#34;, &amp;#34;Domestic Appliances&amp;#34;, &amp;#34;Smart Energy &amp;amp; Lighting&amp;#34;, &amp;#34;Apple Handheld Device&amp;#34;, &amp;#34;Smartphones / Tablets / eReaders&amp;#34;, &amp;#34;Gaming&amp;#34;, &amp;#34;Sport &amp;amp; Health&amp;#34;, &amp;#34;Network Devices&amp;#34;, &amp;#34;Security &amp;amp; Control&amp;#34;, &amp;#34;IoT&amp;#34;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L2_ORDER_NUM IS &amp;#39;Station type order level 2&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_L1_ORDER_NUM IS &amp;#39;Station type order level 1&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.STATION_TYPE_ORDER_NUM IS &amp;#39;Station type order&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.CONSCIOUS_IND IS &amp;#39;Indicates if the related device type has energy efficiency&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_CBD_Static_Station_Type.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_Segment_v8 (OPERATOR_ID VARCHAR, SEGMENT_ID VARCHAR, SEGMENT_DES VARCHAR, GBL_SEGMENT_ID VARCHAR, SEGMENT_GROUP_ID VARCHAR, SEGMENT_GROUP_DES VARCHAR, EXTRACTION_TM VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_Segment IS &amp;#39;Classifications of the customers, attending to different segmentation criteria, for marketing and management issues, according to OB criteria and its correspondence with the global segment classification&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.SEGMENT_ID IS &amp;#39;Description: Organisational segment of the client. Format: two letter string. Possible values: &amp;#39;&amp;#39;NT&amp;#39;&amp;#39; - NTT, &amp;#39;&amp;#39;GP&amp;#39;&amp;#39; - Residencial, &amp;#39;&amp;#39;PE&amp;#39;&amp;#39; - Pymes, &amp;#39;&amp;#39;RE&amp;#39;&amp;#39; - Residencial/SC, &amp;#39;&amp;#39;AU&amp;#39;&amp;#39; - Autonomos, &amp;#39;&amp;#39;OP&amp;#39;&amp;#39; - Operadores, &amp;#39;&amp;#39;GC&amp;#39;&amp;#39; - Grandes Clientes, &amp;#39;&amp;#39;RP&amp;#39;&amp;#39; - Residencial Prepago, &amp;#39;&amp;#39;TE&amp;#39;&amp;#39; - Telefonica, &amp;#39;&amp;#39;SC&amp;#39;&amp;#39; - Sin Clasificar, &amp;#39;&amp;#39;ME&amp;#39;&amp;#39; - Empresas&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.SEGMENT_DES IS &amp;#39;Description: Name or description of the organisational segment of the client (provides the description for each segment identifier). Format: string. Example values: &amp;#39;&amp;#39;Residencial&amp;#34;,  &amp;#39;&amp;#39;Pymes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Autonomos&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Operadores&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Grandes Clientes&amp;#39;&amp;#39;, &amp;#39;&amp;#39;Sin Clasificar&amp;#39;&amp;#39;&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.GBL_SEGMENT_ID IS &amp;#39;ID of the global segment classification&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_ID IS &amp;#39;ID code of the segmentation group&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.SEGMENT_GROUP_DES IS &amp;#39;Description of the segmentation group&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Segment.EXTRACTION_TM IS &amp;#39;Date-time of the record&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    CREATE TABLE D_Fixed_Tariff_Plan_v8 (OPERATOR_ID VARCHAR, DAY_DT VARCHAR, TARIFF_PLAN_ID VARCHAR, TARIFF_PLAN_DES VARCHAR, VOICE_IND BOOLEAN, BBAND_IND BOOLEAN, TV_IND BOOLEAN, WORKSTATION_IND BOOLEAN, APP_IND BOOLEAN, VOICE_BUNDLE_QT FLOAT, BBAND_UP_SPEED_QT FLOAT, BBAND_DOWN_SPEED_QT FLOAT, TV_TYPE_CD VARCHAR, FIXED_SERVICE_COMMERCIAL_NAME VARCHAR, COMMERCIAL_IND BOOLEAN, TARIFF_PLAN_START_DT VARCHAR, TARIFF_PLAN_END_DT VARCHAR, CONVERGENT_IND BOOLEAN, BRAND_ID VARCHAR);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON TABLE D_Fixed_Tariff_Plan_v8 IS &amp;#39;Every fixed Tariff to be applied, either Commercial, Convergent, Individual, or any other, for any product&amp;amp;service for the fixed client base&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.OPERATOR_ID IS &amp;#39;Global Operator Identifier (Operator acting as owner of the information present in the current entity)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.DAY_DT IS &amp;#39;Year, month and day of the data  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_ID IS &amp;#39;Unique identifier of the tariff plan&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_DES IS &amp;#39;Name/short description of the tariff plan&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_IND IS &amp;#39;Indicates whether the line has a fixed line voice service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_IND IS &amp;#39;Indicates whether the line has a Broadband service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_IND IS &amp;#39;Indicates if the line has a TV service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.WORKSTATION_IND IS &amp;#39;Indicates if the line has a workstation service associated.  Values: 0=No; 1=Yes.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.APP_IND IS &amp;#39;Indicates if the line has the &amp;#34;Aplicateca service&amp;#34; associated.  Values: 0=No; 1=Yes.&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.VOICE_BUNDLE_QT IS &amp;#39;Amount of data associated with the voice bundle&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_UP_SPEED_QT IS &amp;#39;Broadband up speed (Mbps)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BBAND_DOWN_SPEED_QT IS &amp;#39;Broadband down speed (Mbps)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TV_TYPE_CD IS &amp;#39;Type of TV line&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.FIXED_SERVICE_COMMERCIAL_NAME IS &amp;#39;Commercial name of the service&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.COMMERCIAL_IND IS &amp;#39;Indicates if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID.    Fill-in with 1 if TARIFF_PLAN_ID refers to the COMMERCIAL_TARIFF_ID or 0 if it doesn&amp;#39;&amp;#39;t    0 = Non commercial tariff  1 = commercial tariff&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_START_DT IS &amp;#39;Start date of the tariff plan validity (that day is the first day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.TARIFF_PLAN_END_DT IS &amp;#39;End date of the tariff plan validity (that day is the last day when the tariff plan is applicable)  ### Additional Information  Format: YYYYMMDD (4 digits for year, months from 01 to 12, days from 01 to 31).&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.CONVERGENT_IND IS &amp;#39;Flag indicating if the current fixed tariff plan can be configured as a &amp;#34;Convergent tariff plan&amp;#34;, i. e., a plan with special conditions due to the fact of including at least one Fixed line/service and one Mobile line.   0 = No (the plan can&amp;#39;&amp;#39;t be configured as convergent)   1 = Yes (the plan can be configured as convergent)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        COMMENT ON COLUMN D_Fixed_Tariff_Plan_v8.BRAND_ID IS &amp;#39;Commercial brand identifier. In order to differentiate among different brands in the same OB (e.g. Movistar, O2, Tuenti...)&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Some of the former tables contain columns in full-qualified format. For instance, these are some examples of full-qualified columns:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    record_name.field_name
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    TEC_PLAT_REC.DEVICE_ID
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    record_name.subrecord_name.field_name
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    TEC_PLAT_REC.TEC_PLAT_SUBCOMP_REC.DEVICE_ID
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Always use the full-qualified format when referring to columns in the tables. For instance, if you need to use the column &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;, you should not refer to it as &amp;#39;DEVICE_ID&amp;#39;, but as &amp;#39;TEC_PLAT_REC.DEVICE_ID&amp;#39;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    **Explain in detail, step by step, all your decisions**.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    # General instructions
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Follow these reasoning steps to generate the SQL query:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - Step 1: Identify Necessary Tables
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 2: Identify Useful Candidate Columns
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 3: Assess if Tables and Columns are Sufficient to Answer the Question
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 4: Identify Columns Contained in Maps
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 5: Plan the SQL Query
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 6: Write the final SQL Query and apply the rules
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 7: Check that the query actually can answer the question
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - Step 8: Create the result as a JSON object
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    If you need to filter by a higher level geographical such as a region (Comunidad Autónoma) you will need to:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - join the `GEO_AREA_ID` field of the data table (such as `CBD_HGU_Detail_Daily_v10`) with the `GEO_AREA_ID` field in `D_CBD_Static_Geo_Area_v6` table
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - then join the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_v6` with the `CBD_GEO_AREA_LEVEL4_ID` field in the `D_CBD_Static_Geo_Area_Level4_v6` table   
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - then compare the `GEO_AREA_LEVEL_DES` field in the `D_CBD_Static_Geo_Area_Level4_v6` table with the name of the region (e.g., &amp;#39;Cantabria&amp;#39;), since the DESCRIPTION field does contain the actual name of the geographical area.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      **Only perform these joins if explicit filtering or grouping by geographical location is necessary**.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    # Detailed instructions
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 1: Identify Necessary Tables
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    First, identify which tables are necessary to answer the question `{question}`. Justify why you selected each of these tables. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Use the following format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    I need the following tables to answer the question:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &amp;lt;table_name&amp;gt;: &amp;lt;reasoning&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 2: Identify Useful Candidate Columns
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Identify which columns are useful to answer the question `{question}`. Justify why you selected each of these columns.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Always include any column you think may be needed to answer the question. If there are similar columns in the table, you should identify all of them always. You will later choose which them are more suitable to answer the question. But, at this stage, you should include **all the columns that may be useful**.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Write the list of candidate columns you identified, and the reasoning after each column, using the following format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    I can use the following candidate columns to answer the question (including all the columns that may be useful):
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &amp;lt;table name&amp;gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &amp;lt;table_name&amp;gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &amp;lt;column_name&amp;gt;: &amp;lt;copy here the full column description from schema&amp;gt;, including possible values if present&amp;gt;: &amp;lt;reasoning&amp;gt;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 3: Assess if Tables and Columns are Sufficient to Answer the Question
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Tell if the tables and columns you identified are enough to answer the question `{question}`. Make sure to justify your answer and check the actual descriptions of the columns in the table definitions and the user question.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Write the answer using the following format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Possible to answer the question using the former columns: 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &amp;lt;reasoning&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        - Result: &amp;lt;Yes|No&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 4: Identify Columns Contained in Maps
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Some columns are actually contained in a map structure. Since these columns need to be queried differently, you need to identify them.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Columns with a name like &amp;#39;&amp;lt;some_name&amp;gt;.map.&amp;lt;other_name&amp;gt;&amp;#39; are contained in maps. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    For instance, the column `STATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD` is contained in a map structure called `STATIONS_DETAIL_REC.UNQ_STATION_MAP`.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    This map structure is like this:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    STATIONS_DETAIL_REC.UNQ_STATION_MAP.map.STATION_TYPE_CD: {{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &amp;lt;key1&amp;gt;: {{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &amp;lt;some_field&amp;gt;; &amp;lt;some_value&amp;gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &amp;#34;STATION_TYPE_CD&amp;#34;: &amp;lt;station_type_value1&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }},
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &amp;lt;key2&amp;gt;: {{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &amp;lt;some_other_field&amp;gt;; &amp;lt;some_other_value&amp;gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &amp;#34;STATION_TYPE_CD&amp;#34;: &amp;lt;station_type_value2&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }},
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Therefore, in this step, identify which columns are contained in maps since you will later need to use LATERAL VIEW EXPLODE to access the values of these maps.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 5: Plan the SQL Query  
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Explain, step by step, how you would write the SQL query to answer the question `{question}`, using the columns you identified. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    **Use the full qualified names of the columns**. **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Some columns are contained in map structures. You can access the fields of the map using LATERAL VIEW EXPLODE. Do not use UNNEST to access the fields of the map.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    In particular, you can create a temporary table with the exploded map and then query it. For instance, if you need to get the value of the `ABC.CDE.map.field` column, you should use the following SQL code to create a temporary table with the exploded map data and get the value of the field:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```sql
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    WITH exploded_map AS (
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      SELECT key, value.field_1, value,field_2, value.field_3  -- Select here all the columns/fields you will use later. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      FROM &amp;lt;table_name&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      LATERAL VIEW EXPLODE(ABC.CDE) AS key, value
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    SELECT exploded_map.field_1
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    FROM exploded_map
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ``` 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    This is another example:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```sql
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      WITH exploded_map AS (
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      SELECT DATE, ID, RECORD.GROUP, value.CODE  -- Select here all the columns/fields you will use later.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        FROM CBD_HGU_Detail_Daily_Aura_v10 LATERAL VIEW EXPLODE(STATIONS_DETAIL_REC.UNQ_STATION_MAP) AS key, value) 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      SELECT COUNT(DISTINCT ID) AS num_homes 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      FROM exploded_map JOIN D_Segment_v8 ON exploded_map.CLASS_ID = D_Segment_v8.CLASS_ID 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        WHERE DATE BETWEEN &amp;#39;2024-01-01&amp;#39; AND &amp;#39;2024-02-01&amp;#39; 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          AND D_Segment_v8.DESCRIPTION = &amp;#39;DESCRIPTION value&amp;#39; 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          AND exploded_map.CODE = &amp;#39;CODE value&amp;#39;	
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Here is another example. If you need to count the number of elements in a map column named &amp;#39;ABC.map&amp;#39; you should use a code like this:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```sql
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    WITH exploded_map AS (
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      SELECT key_from_exploded_map
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      FROM &amp;lt;table_name&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      LATERAL VIEW EXPLODE(ABC) AS key_from_exploded_map, value_from_exploded_map
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    SELECT COUNT(key_from_exploded_map)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    FROM exploded_map
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Take into account that all map fields are named with the suffix `_MAP`. Take into account that you can only use the operation EXPLODE to fields that are maps. Therefore, you should use the EXPLODE operation only on fields that end with `_MAP`. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    To finish this step, explain how you would write the SQL query to answer the question, using the columns you identified, taking into account the previous considerations for columns contained in maps, if there are any.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 6: Write the final SQL Query and apply the rules
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Finally, write the SQL query to answer the question `{question}`, using the columns you identified. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Remarks:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    **DO NOT USE THE `JSON_OBJECT` FUNCTION IN THE QUERY**.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    **IMPORTANT: The keys in the exploded maps should not be used in JOIN operations, since they are just internal keys to the map structure.**
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Check if you need to use any of the following **business rules** to build the query:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```json
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {rules}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ```
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Explain whether you can apply any of the rules and explain how you would apply them in the SQL query.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Always write your result following these steps:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    1. SQL query to answer the question `{question}`: &amp;lt;write the SQL query here&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       2. Reasoning: &amp;lt;explain why you wrote the query like that&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       3. Check of the rules, RULE BY RULE and FOR EACH RULE (one entry per rule)2. &amp;lt;write ALL the rules and tell if they are applied or not&amp;gt;. Follow this format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       - &amp;lt;rule1&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       - &amp;lt;rule2&amp;gt;: Should be applied, because &amp;lt;reason&amp;gt; | Should not be applied, because &amp;lt;reason&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       4. Result of the execution of the rules that have been identified to be applied. Follow this format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       - &amp;lt;rule1&amp;gt;: &amp;lt;result&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       - &amp;lt;rule2&amp;gt;: &amp;lt;result&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       5. Need to fix the query because &amp;lt;reason&amp;gt;. The following changes are needed: &amp;lt;change_1&amp;gt;, &amp;lt;change 2&amp;gt;, etc. | The query is already correct.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       6. SQL query to answer the question `{question}` after considering the previous **rules**: &amp;lt;write the SQL query here&amp;gt;. FIX THE QUERY IF NECESSARY.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 7: Check that the query actually can answer the question
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Check again if the generated query answers the question `{question}`.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Follow these steps:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    1. Write the concepts involved in the question. Enumerate the concepts as a list. Follow this format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     - &amp;lt;concept1&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     - &amp;lt;concept2&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     ...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       2. Write all the concepts of the question that are covered by the SQL query. Enumerate them and create a match list with the concepts from the previous step. Write down the part of the SQL query covering the concept. Take into account that conditions on specific proper names, such as model names, location names, etc, need to be explicitly checked. Follow this format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          - &amp;lt;concept1&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          - &amp;lt;concept2&amp;gt;: covered in &amp;lt;sql query section&amp;gt; or not covered.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          3. Find those concepts in the question that are not covered by the SQL query.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          4. Conclude whether the question can actually be answered by the generated query. Follow this format:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          - The question can be answered by the SQL query: &amp;lt;Yes|No&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ### Step 8: Create the result as a JSON object
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Return the result as a unique JSON object, with the following structure:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;result&amp;#34;: &amp;lt;Write the SQL query here. **MAKE SURE THAT THE STATEMENT `SELECT JSON_OBJECT` is not used in the query and Use the full qualified names of the columns. Generate a valid SQL sentence in a single line without new line characters.**&amp;gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;status&amp;#34;: &amp;#34;OK&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;reason&amp;#34;: &amp;lt;a reasoning explaining the query&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    If the former table does not contain the necessary data to answer the question, return the following JSON object:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;result&amp;#34;: null,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;status&amp;#34;: &amp;#34;ERROR&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &amp;#34;reason&amp;#34;: &amp;lt;a reasoning explaining why it is not possible to answer the question&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Make sure that the JSON object is correctly formatted, and can be parsed by a JSON parser.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    **Please, ALWAYS follow the 8 steps presented in the instructions.** Start reasoning with ### Step 1 and finish with ### Step 8. 
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;upload-documents-and-execute-generate-db-job&#34;&gt;Upload documents and execute generate-db job&lt;/h3&gt;
&lt;p&gt;Guidelines for &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/import-documents/&#34;&gt;uploading new or modified documents&lt;/a&gt; in a specific environment through the edition of the ConfigMap of the component:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Upload the documents in the Azure container &lt;code&gt;atria-resources&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;To make it easier to understand which project the documents belong to, insert these documents in a folder with the name of the project.&lt;/li&gt;
&lt;li&gt;Keep in mind the allowed formats for documents, set in the project&amp;rsquo;s variable &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#:~:text=extension%3A-,loader,-%3A&#34;&gt;&lt;code&gt;loader&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;An example of folder structure is shown below.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../images/atria/structure-folders.png&#34; alt=&#34;Structure Folders&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;If you want to update any parameter in the documents, you need to modify the ConfigMap. For example, if there is a change in the documents&amp;rsquo; path, the field &lt;code&gt;dir&lt;/code&gt; must be updated with the new path where the documents are stored.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open the ConfigMap &lt;strong&gt;atria-rag-config&lt;/strong&gt;.
&lt;code&gt;kubectl edit configmap atria-rag-config -n &amp;lt;namespace&amp;gt;&lt;/code&gt;
(Change the namespace by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the whole content of the &lt;strong&gt;projects.yaml.project&lt;/strong&gt; key and paste it into a new local file. Since it is a string, you need to transform it to YAML format, for an easier modification. You can use the &lt;a href=&#34;https://dadroit.com/yaml-to-string/&#34;&gt;YAML to string tool&lt;/a&gt; to convert a string to YAML and vice versa.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Modify the &lt;a href=&#34;../../docs/atria/technical-guidelines/configuration/modify-atria-configuration/#:~:text=is%20associated%20with.-,docs,-%3A&#34;&gt;&lt;code&gt;docs&lt;/code&gt;&lt;/a&gt; key of the project.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once changes in &lt;code&gt;docs&lt;/code&gt; are set, copy all the content and pass it back to string, to paste it in the ConfigMap inside the &lt;strong&gt;projects.yaml.project&lt;/strong&gt; key and save.&lt;br&gt;
&lt;code&gt;kubectl rollout restart deployment atria-rag -n &amp;lt;namespace&amp;gt;&lt;/code&gt;
(Change the namespace by the specific one)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is an example of documents configuration. In this example, it has been separated into two folders within the project, as we are going to load two different types of data into this project.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;```yaml
project-copilot:
  docs:
    pdf:
      dir: /opt/atria-rag/data/project-copilot/pdfs
      extensions: pdf
      loader: unstructured
      loader_options:
          mode: single
    url:
      dir: /opt/atria-rag/data/project-copilot/urls
      extensions: txt
      loader: url_list
```
&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;
&lt;p&gt;If you use URLs, upload a file with the list of URLs in the project folder. Separate each URL with a line break. The file must have the extension &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&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-txt&#34; data-lang=&#34;txt&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;http://www.url1.com
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;http://www.url2.com
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you use jsonl files, you need to upload the file content in the same folder with the extension &lt;code&gt;.jsonl&lt;/code&gt;.
To do so, each desired document content must be provided in the &lt;code&gt;page_content&lt;/code&gt; key.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-jsonl&#34; data-lang=&#34;jsonl&#34;&gt; {&amp;#34;page_content&amp;#34;: &amp;#34;test content 1&amp;#34;, &amp;#34;metadata&amp;#34;: {&amp;#34;source&amp;#34;: &amp;#34;https://www.dummy1.es/&amp;#34;}, &amp;#34;type&amp;#34;: &amp;#34;Document&amp;#34;}
 {&amp;#34;page_content&amp;#34;: &amp;#34;test content 2&amp;#34;, &amp;#34;metadata&amp;#34;: {&amp;#34;source&amp;#34;: &amp;#34;https://www.dummy2.es/&amp;#34;}, &amp;#34;type&amp;#34;: &amp;#34;Document&amp;#34;}
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Finally, execute the &lt;a href=&#34;../../docs/atria/technical-components/atria-rag-generate-db/#launch-atria-rag-generate-db&#34;&gt;&lt;em&gt;&lt;strong&gt;atria-rag-generate-db&lt;/strong&gt;&lt;/em&gt; job&lt;/a&gt; to update the data into the environment.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

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