<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aura – guidelines</title>
    <link>/categories/guidelines/</link>
    <description>Recent content in guidelines on Aura</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="/categories/guidelines/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <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/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/technical-guidelines/agents-server/agents-technical-development/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/agents-server/agents-technical-development/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-technical-developers&#34;&gt;Guidelines for technical developers&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(54, 26, 197);&#34;&gt;&lt;/i&gt; &lt;strong&gt;Scope&lt;/strong&gt;: Comprehensive guidelines for the development of an agent and its integration into &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(15, 122, 58);&#34;&gt;&lt;/i&gt; Technical developers&lt;/span&gt;&lt;br&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; offers a framework for the development of agents to be used for the creation of experiences.&lt;/p&gt;
&lt;p&gt;Agents can be developed both using their own tools or taking advantage of the libraries and tools that &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; provides. The current document will focus on the second option.&lt;/p&gt;
&lt;h2 id=&#34;agents-development-workflow&#34;&gt;Agents development workflow&lt;/h2&gt;
&lt;h3 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;Two main prerequisites are required prior to the development of an agent:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Python version: 3.13. or higher&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;ATRIA agents-server&lt;/strong&gt;&lt;/em&gt; dependencies must be installed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;workflow&#34;&gt;Workflow&lt;/h3&gt;
&lt;p&gt;The orderly steps for the creation and subsequent deployment of an agent are included below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-technical-development/base-class/&#34;&gt;Define and configure an agent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-technical-development/docker-image/&#34;&gt;Create Docker image&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-technical-development/deployment/&#34;&gt;Deploy agent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-technical-development/errors/&#34;&gt;Errors management&lt;/a&gt;&lt;/li&gt;
&lt;/ol&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/technical-guidelines/kernel-api-publication/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/kernel-api-publication/</guid>
      <description>
        
        
        &lt;h1 id=&#34;publish-an-api-in-kernel&#34;&gt;Publish an API in Kernel&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines for the publication of an API in Kernel&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;guidelines&#34;&gt;Guidelines&lt;/h2&gt;
&lt;p&gt;As a prerequisite for building an experience in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, the &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; API must be published in &lt;strong&gt;Kernel&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;For this purpose, follow the instructions below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Request &lt;strong&gt;Kernel&lt;/strong&gt; team to configure in the corresponding &lt;strong&gt;Kernel&lt;/strong&gt; environment the scopes needed to call this API:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;aura-ai-services:messaging:write&lt;/code&gt;: Permission to send &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/generative-ai/&#34;&gt;Generative&lt;/a&gt; / &lt;a href=&#34;../../docs/atria/capabilities/llm-experiences-builder/rag/&#34;&gt;RAG&lt;/a&gt; and feedback messages to Aura.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;aura-ai-services:nlp-messaging:write&lt;/code&gt;: Permission to send &lt;a href=&#34;../../docs/atria/capabilities/nlp-aas/&#34;&gt;NLP as a Service&lt;/a&gt; messages to Aura.
&lt;br&gt;&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Access from &lt;strong&gt;Kernel&lt;/strong&gt; to &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt; will be done by APIKey. It is necessary to create this APIKey in each environment following these instructions &lt;a href=&#34;../../docs/developers-workspace/general-operation-system/generate-apikey/&#34;&gt;Generate an APIKey&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Request &lt;strong&gt;Kernel&lt;/strong&gt; team to configure in the corresponding &lt;strong&gt;Kernel&lt;/strong&gt; environment this API &lt;a href=&#34;https://developers.baikalplatform.com/apis/aura-aiservices&#34;&gt;Aura AI Services&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;For that, the following settings are needed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;URL: https://{{aura-services-environment}}.auracognitive.com/aura-services/v2/aiservices/&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Authorization header: &lt;code&gt;APIKEY {{api-key}}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;{{aura-services-environment}}&lt;/code&gt; should look like &lt;code&gt;svc-[country]-[environment]&lt;/code&gt;, for instance &lt;code&gt;svc-es-pre&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;{{api-key}}&lt;/code&gt; is a specific APIKey created for &lt;strong&gt;Kernel&lt;/strong&gt; to access this endpoint. This APIKey must be requested to the team in charge of operating the corresponding Aura environment:
&lt;ul&gt;
&lt;li&gt;Aura Global team for development and staging environments&lt;/li&gt;
&lt;li&gt;GES for certifications, pre-production and production environments
&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;This process must be executed in each &lt;strong&gt;Kernel&lt;/strong&gt; deployment.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/atria/technical-guidelines/building-experiences/general-rag-journey/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/building-experiences/general-rag-journey/</guid>
      <description>
        
        
        &lt;h1 id=&#34;build-experiences-that-use-general-rag&#34;&gt;Build experiences that use General RAG&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 the General RAG 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/general-rag/&#34;&gt;General RAG&lt;/a&gt; capability enables the implementation of RAG (Retrieval Augmented Generation) techniques to surpass the capabilities of LLMs in the development of generic questions use cases (based on 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. 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-rag-components&#34;&gt;Enable RAG 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-atria-rag-server&#34;&gt;Enable &lt;i&gt;atria-rag&lt;/i&gt; server&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/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/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/technical-guidelines/agents-server/agents-constructors-guidelines/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/</guid>
      <description>
        
        
        &lt;h1 id=&#34;guidelines-for-use-cases-constructors&#34;&gt;Guidelines for 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(54, 26, 197);&#34;&gt;&lt;/i&gt; &lt;strong&gt;Scope&lt;/strong&gt;: Comprehensive guidelines for the use of agents in an &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; experience&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(15, 122, 58);&#34;&gt;&lt;/i&gt; Use cases constructors&lt;/span&gt;&lt;br&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index-of-contents&#34;&gt;Index of contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent-base/&#34;&gt;Create and configure an agent base&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/configure-agent/&#34;&gt;Create and configure an agent&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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/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/technical-guidelines/hot-swapping-application/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/hot-swapping-application/</guid>
      <description>
        
        
        &lt;h1 id=&#34;hot-swapping-of-aura-applications-configuration&#34;&gt;Hot swapping of Aura applications configuration&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines to execute modifications in Aura applications configuration through a hot swapping process&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The URL of &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; must have the following format:
&lt;code&gt;https://{{aura-services-domain}}.auracognitive.com/aura-services/v2/configuration&lt;/code&gt;
where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;{{aura-services-domain}}&lt;/code&gt; should be &lt;code&gt;svc-[country]-[environment]&lt;/code&gt;, for instance &lt;code&gt;svc-es-pre&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recommended:&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;/ul&gt;
&lt;h2 id=&#34;access-aura-configuration-api&#34;&gt;Access Aura Configuration API&lt;/h2&gt;
&lt;h3 id=&#34;get-the-apikey&#34;&gt;Get the APIKey&lt;/h3&gt;
&lt;p&gt;First, we must get the APIKey, &lt;code&gt;AURA_AUTHORIZATION_HEADER&lt;/code&gt;, of &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;. For this purpose, follow these steps:&lt;/p&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-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{aura-environment}} with the environment you&amp;#39;re configuring&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;AURA_ENVIRONMENT&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;={{&lt;/span&gt;aura-environment&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&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ kubectl -n &lt;span style=&#34;color:#000&#34;&gt;$AURA_ENVIRONMENT&lt;/span&gt; get secret aura-configuration-api -o json &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;|&lt;/span&gt; jq -r &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;.data.AURA_AUTHORIZATION_HEADER|@base64d
&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;Copy the value of APIKey.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;update-the-application-configuration&#34;&gt;Update the application configuration&lt;/h2&gt;
&lt;p&gt;To update the configuration of an application, we must make a patch to the &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt; indicating the application that we want to modify and the new value:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Execute the next curl to update configuration:&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-sh&#34; data-lang=&#34;sh&#34;&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 valid UUID as correlator&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{correlator}} with the generated UUID&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute aura-services-domain with the specific information for environment, svc-[country]-[environment].&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{applicationId}} with the value of application to change&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{apikey}} with the value of APIKey get in the previous step&lt;/span&gt;
&lt;/span&gt;&lt;/span&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://{{aura-services-domain}}.auracognitive.com/aura-services/v2/configuration/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;correlator: {{correlator}}&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}}&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;{
&lt;/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;{{applicationId}}&amp;#34;,
&lt;/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;     // Send the object to update
&lt;/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;Check the change through the following request:&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-sh&#34; data-lang=&#34;sh&#34;&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 valid UUID as correlator&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{correlator}} with the generated UUID&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute aura-services-domain with the specific information for environment svc-[country]-[environment].&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{applicationId}} with the value of application to change&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{apikey}} with the value of APIKey get in the previous step&lt;/span&gt;
&lt;/span&gt;&lt;/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 response will be the application configuration.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ curl --location --request GET &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://{{aura-services-domain}}.auracognitive.com/aura-services/v2/configuration/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;correlator: {{correlator}}&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}}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&amp;#x2139;&amp;#xfe0f; &lt;strong&gt;NOTE:&lt;/strong&gt; The &lt;a href=&#34;../../docs/developers-workspace/general-operation-system/config-watcher&#34;&gt;&lt;em&gt;&lt;strong&gt;config-watcher&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; runs periodically (every 5 minutes) and when it detects that the application configuration has been modified, it will &lt;strong&gt;restart&lt;/strong&gt; the pods.&lt;/p&gt;

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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;These documents include comprehensive guidelines for the management of agents in &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt;, intended for two profiles:&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(15, 122, 58);&#34;&gt;&lt;/i&gt; Technical developers in charge of creating agents&lt;/p&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-user&#34; style=&#34;color:rgb(15, 122, 58);&#34;&gt;&lt;/i&gt; Use cases constructors responsible for the generation and configuration of an agent for their experience&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index-of-contents&#34;&gt;Index of contents&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-technical-development/&#34;&gt;Guidelines for technical developers&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../docs/atria/technical-guidelines/agents-server/agents-constructors-guidelines/&#34;&gt;Guidelines for use cases constructors&lt;/a&gt;&lt;/p&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-guidelines/get-accesstoken/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/atria/technical-guidelines/get-accesstoken/</guid>
      <description>
        
        
        &lt;h1 id=&#34;get-kernel-access-token-for-aura-gateway-api&#34;&gt;Get Kernel access token for Aura Gateway API&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines to get a &lt;strong&gt;Kernel&lt;/strong&gt; access token for working 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;steps-in-the-process&#34;&gt;Steps in the process&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To use the &lt;strong&gt;Kernel&lt;/strong&gt; &lt;em&gt;&lt;strong&gt;aura-aiservice API&lt;/strong&gt;&lt;/em&gt;, first authenticate with the client credentials specifying the required scopes, that depend on the &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; to be used:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NLP as a Service: &lt;code&gt;aura-ai-services:nlp-messaging:write&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Generative AI and RAG: &lt;code&gt;aura-ai-services:messaging:write&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Afterwards, refresh the token following &lt;strong&gt;Kernel&lt;/strong&gt; instructions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To obtain the real secret of your app, just run the following command, as an example of using the app &amp;ldquo;aura-bot&amp;rdquo; in &lt;strong&gt;Kernel&lt;/strong&gt; &amp;ldquo;global-int-current&amp;rdquo; with a fake password.&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;$ kubectl -n &lt;span style=&#34;color:#000&#34;&gt;$AURA_ENVIRONMENT&lt;/span&gt; get secret aura-bot -o json &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;|&lt;/span&gt; jq -r &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;.data.AURA_FP_CLIENT_SECRET|@base64d&amp;#34;&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;Now you can request the &lt;code&gt;access_token&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-sh&#34; data-lang=&#34;sh&#34;&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 valid UUID as correlator&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;# substitute {{correlator}} with the generated UUID&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;CORRELATOR&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;={{&lt;/span&gt;correlator&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:#8f5902;font-style:italic&#34;&gt;# substitute aura-bot:secret with the specific information for your Kernel client.&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;$ curl -i -X POST -u aura-bot:secret -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/x-www-form-urlencoded&amp;#39;&lt;/span&gt; -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Cache-Control: no-cache&amp;#39;&lt;/span&gt; -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;x-correlator: $CORRELATOR&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;https://auth.global-int-current.baikalplatform.com/token&amp;#39;&lt;/span&gt; -d &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;scope=aura-ai-services:messaging:write&amp;amp;grant_type=client_credentials&amp;#39;&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;HTTP/2 &lt;span style=&#34;color:#0000cf;font-weight:bold&#34;&gt;200&lt;/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 style=&#34;color:#4e9a06&#34;&gt;&amp;#34;access_token&amp;#34;&lt;/span&gt;:&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;&amp;lt;token&amp;gt;&amp;#34;&lt;/span&gt;,&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;token_type&amp;#34;&lt;/span&gt;:&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;Bearer&amp;#34;&lt;/span&gt;,&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;expires_in&amp;#34;&lt;/span&gt;:3599,&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;scope&amp;#34;&lt;/span&gt;:&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;aura-ai-services:messaging:write&amp;#34;&lt;/span&gt;,&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;purpose&amp;#34;&lt;/span&gt;:&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;&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;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This token expires after a certain time, so it is required to repeat the steps above to obtain a new one.&lt;/p&gt;
&lt;p&gt;Access here to more information about &lt;a href=&#34;https://developers.baikalplatform.com/tech-doc/release/latest/apis/introducing-kernel-apis/security-tokens.html&#34;&gt;&lt;strong&gt;Kernel authentication&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/aura-assistant/technical-guidelines/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/aura-assistant/technical-guidelines/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-virtual-assistant-technical-guidelines&#34;&gt;Aura Virtual Assistant 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 work with &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p align=&#34;left&#34;&gt;
  &lt;img width=&#34;200&#34; height=&#34;200&#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;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;Deploy Aura Virtual Assistant&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; style=&#34;color:rgb(232, 99, 4);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:#f1340b&#34;&gt;Engineering teams, DevOps teams &lt;/span&gt;  &lt;br&gt;  
&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Key documents and guidelines for the deployment of Aura Virtual Assistant (Common for ATRIA deployment) &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/deployment/&#34;&gt; Deployment Task Center &lt;/a&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;Develop and operate Aura Virtual Assistant&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; style=&#34;color:rgb(232, 99, 4);&#34;&gt;&lt;/i&gt; &lt;span style=&#34;color:#f1340b&#34;&gt;Engineering teams, Operation teams, Aura Developers &lt;/span&gt;  &lt;br&gt;  
&lt;i class=&#34;fa-regular fa-bullseye&#34; style=&#34;color:rgb(63, 60, 78);&#34;&gt;&lt;/i&gt; Guidelines for development, operation, testing and monitoring &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/developers-workspace/&#34;&gt; Developers Workspace&lt;/a&gt;

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;


&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/aura-assistant/experiences-builder/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/aura-assistant/experiences-builder/</guid>
      <description>
        
        
        &lt;h1 id=&#34;experiences-builder&#34;&gt;Experiences Builder&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Guidelines and resources for the development of use case in &lt;em&gt;&lt;strong&gt;Aura Virtual Assistant&lt;/strong&gt;&lt;/em&gt;, using our conversational bot&lt;/p&gt;
&lt;p&gt;Certain guidelines are also suitable for building experiences 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;200&#34; height=&#34;200&#34; src=&#34;../../images/technical-complex-3.png&#34;&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;index&#34;&gt;Index&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/intro/&#34;&gt;Introduction to Aura use cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/global-use-cases/&#34;&gt;Aura Global use cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/development-use-cases/&#34;&gt;Local experiences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/generic-dialog/&#34;&gt;Experiences based on the generic dialog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/tools/&#34;&gt;Development tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/api-clients/&#34;&gt;Aura API clients&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../docs/experiences-builder/troubleshooting/&#34;&gt;Development troubleshooting&lt;/a&gt;&lt;/li&gt;
&lt;/ul&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-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/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>
    
  </channel>
</rss>
