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


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Aura entities definition version 6.0.0 (entities using &lt;strong&gt;Avro format&lt;/strong&gt;), URM-compliant.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;Aura entities definition&lt;/strong&gt; includes the different entities currently written in Aura in Avro format, URM-compliant.&lt;/p&gt;
&lt;p&gt;For further information regarding &lt;strong&gt;Kernel&lt;/strong&gt; Avro datasets access the following links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://developers.baikalplatform.com/tech-doc/release/latest/data-ai/datasets-mgmt/&#34;&gt;How to handle datasets in Kernel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://developers.baikalplatform.com/datasets/&#34;&gt;Kernel datasets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;entities-generated-in-avro-urm-compliant-format&#34;&gt;Entities generated in Avro URM-compliant format&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Entities types&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Generation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/aura-atria-message/&#34;&gt;Aura_Atria_Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Summary of Aura’s interactions handled by &lt;em&gt;&lt;strong&gt;aura-rag-server&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Generated by &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/audit/&#34;&gt;Aura_Audit&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Entity used to store information about the interactions handled by Aura components. It will be used to generate Aura&amp;rsquo;s invoices.&lt;/td&gt;
&lt;td&gt;Created by  &lt;em&gt;&lt;strong&gt;aura-kpis-uploader&lt;/strong&gt;&lt;/em&gt; based on the information received in &lt;strong&gt;Groot Message&lt;/strong&gt; and &lt;strong&gt;Gateway Message&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/gateway-message/&#34;&gt;Aura_Gateway_Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Entity used to store information about the messages handled by &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;td&gt;Created by &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/message/&#34;&gt;Aura_Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Entity that contains the summary of Aura’s interactions handled by &lt;em&gt;&lt;strong&gt;aura-bridge&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Created directly by &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/dimensions/&#34;&gt;D_Aura_Dimensionals&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;They are Aura&amp;rsquo;s configuration settings that are needed to understand Aura&amp;rsquo;s entities&lt;/td&gt;
&lt;td&gt;Generated directly by &lt;em&gt;&lt;strong&gt;aura-kpis-uploader&lt;/strong&gt;&lt;/em&gt; from the content of the &lt;em&gt;&lt;strong&gt;aura-configuration-api&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;entities-generation&#34;&gt;Entities generation&lt;/h2&gt;
&lt;h2 id=&#34;avro-entities-tables-nomenclature&#34;&gt;Avro Entities tables nomenclature&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Position&lt;/code&gt;: Field order in the Avro schema definition.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Field&lt;/code&gt;: Name of the field being defined. Usually, capitalized, although more aliases will be available in the schema definition.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;PK&lt;/code&gt;: Parameter that indicates if the field is a Primary Key or not, that is, a value that uniquely identifies this field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Referenced Entity&lt;/code&gt;: When the field references a value from another dataset, indicating that a join must be defined in the schema, this parameter contains the name of the dataset.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Referenced Entity Field&lt;/code&gt;: When the field references a value from another dataset, indicating that a join must be defined in the schema, this parameter contains the name of the field of the other dataset.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Type&lt;/code&gt;: Type of the field. It can be one of &lt;a href=&#34;https://developers.baikalplatform.com/tech-doc/release/latest/data-ai/kernel-spark-sdk/avro-kernel-logical-types.html&#34;&gt;Avro logical types defined in Kernel&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Doc&lt;/code&gt;: Brief description of the field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Nullable doc&lt;/code&gt;: If the field can be null, it should contain the cases when a null value is valid.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/components/kpi-entities/aura-entities-definition/entities-csv-format/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/components/kpi-entities/aura-entities-definition/entities-csv-format/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-entities-definition-in-csv-format&#34;&gt;Aura entities definition in CSV format&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Aura entities definition in CSV format version 5.0.0.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;Aura entities definition&lt;/strong&gt; includes the different entities currently written in Aura in CSV and required to calculate Aura KPIs or by any other team in their data processes.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Entities types&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Generation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-csv-format/message/&#34;&gt;Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Message entity is used to store information about the messages handled by &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; and the actions performed on them.&lt;/td&gt;
&lt;td&gt;They are created in &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-csv-format/recognizer/&#34;&gt;Recognizer&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Recognizer entity is used to store the request to any of the recognizers during the utterance recognition phase of the messages.&lt;/td&gt;
&lt;td&gt;They are created by &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt;, &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; and &lt;em&gt;&lt;strong&gt;aura-nlp&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-csv-format/extended-message/&#34;&gt;Extended Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Extended Message entity is used to store extra information of a Message.&lt;/td&gt;
&lt;td&gt;They are created in &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-csv-format/groot-message/&#34;&gt;Groot Message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Groot Message entity is used to store information about the messages handled by &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;td&gt;They are created in &lt;em&gt;&lt;strong&gt;aura-groot&lt;/strong&gt;&lt;/em&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;entities-generation&#34;&gt;Entities generation&lt;/h2&gt;
&lt;p&gt;Until release 9.3.0 (Gwen Stefani), all entities in Aura were generated in CSV format. They were also uploaded into &lt;strong&gt;Kernel&lt;/strong&gt; storage in CSV format. Although using a script provided by and running in &lt;strong&gt;Kernel&lt;/strong&gt;, some of them are converted to Avro entities (in a deprecated Avro format, not URM compliant).&lt;/p&gt;
&lt;p&gt;In  particular, the following conversions are provided:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-csv-format/recognizer/&#34;&gt;Recognizer&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://developers.baikalplatform.com/datasets/Aura_Recognizer/&#34;&gt;Aura Authenticated Users&amp;rsquo; Recognizer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://developers.baikalplatform.com/datasets/Aura_Recognizer_Anonymous_Users/&#34;&gt;Aura Anonymous Users&amp;rsquo; Recognizer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As can be seen, the entities in Avro are duplicated to hold authenticated and anonymous users interactions separately, because the field USER_4P_ID cannot be null if it exists in a dataset definition.&lt;/p&gt;
&lt;h3 id=&#34;csv-files-format&#34;&gt;CSV files format&lt;/h3&gt;
&lt;p&gt;All entities&amp;rsquo; files must be created following these rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;File format: UNIX. UTF8 without BOM&lt;/li&gt;
&lt;li&gt;Date format: ISO8601
&lt;ul&gt;
&lt;li&gt;Date: 2018-05-02&lt;/li&gt;
&lt;li&gt;Datetime: 2018-05-02T15:18:11Z =&amp;gt; Always UTC&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Usually, these kinds of files are stored in &lt;code&gt;.txt&lt;/code&gt; and zipped, before uploading.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Entities used for the calculation of KPIs are stored in a &lt;strong&gt;Kernel&lt;/strong&gt; bucket. Each entity must be included in a different folder, with files distributed by months, in the path:&lt;br&gt;
&lt;em&gt;[OB]/[ENTITY]/YYYYMM&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Files generated in &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; can be stored as needed.&lt;br&gt;
Filename: &lt;code&gt;BOT_[HOST_ID]_[OB]_[ENTITY]_YYYYMMDDTHH0000Z.txt&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Files generated in &lt;em&gt;&lt;strong&gt;aura-services&lt;/strong&gt;&lt;/em&gt; (&lt;em&gt;&lt;strong&gt;authentication&lt;/strong&gt;&lt;/em&gt;) can be stored as needed.&lt;br&gt;
Filename: &lt;code&gt;SERVICES_[HOST_ID]_[OB]_[ENTITY]_YYYYMMDDTHH0000Z.txt&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Files generated in &lt;em&gt;&lt;strong&gt;Aura NLP&lt;/strong&gt;&lt;/em&gt; components can be stored as needed:&lt;br&gt;
Filename: &lt;code&gt;NLP_&amp;lt;HOST_ID&amp;gt;_&amp;lt;OB&amp;gt;_&amp;lt;ENTITY&amp;gt;_YYYYMMDDTHH0000Z.txt&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Dimensions entities:&lt;br&gt;
Path: &lt;em&gt;[OB]/DIMENSIONS/YYYYMM&lt;/em&gt;&lt;br&gt;
Filename: &lt;code&gt;[OB]_DIM_[DIM_NAME]_YYYYMMDDTHH0000Z.txt&lt;/code&gt;&lt;br&gt;
For example: &lt;code&gt;ES_DIM_CHANNEL_20180612T160000Z.txt&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All the files are refreshed every day.&lt;/p&gt;
&lt;h4 id=&#34;csv-entities-tables-nomenclature&#34;&gt;CSV Entities tables nomenclature&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;#: Field ID&lt;/li&gt;
&lt;li&gt;FIELD: Specific field of the entity type&lt;/li&gt;
&lt;li&gt;PK: Parameter that indicates if the field is a Primary Key or not, that is, a value that uniquely identifies this field.&lt;/li&gt;
&lt;li&gt;NULLABLE: Parameter that indicates if a field is allowed to have a null value or not.&lt;/li&gt;
&lt;li&gt;TYPE: Type of the field. It can be one of: text, date, number, boolean&lt;/li&gt;
&lt;li&gt;DESCRIPTION: Brief description of the field&lt;/li&gt;
&lt;li&gt;FORMAT: Field mandatory format, if applicable&lt;/li&gt;
&lt;li&gt;ALLOWED VALUES: Prefixed values permitted for this field&lt;/li&gt;
&lt;li&gt;EXAMPLE: Example of application&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following considerations must be taken into account:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Numeric values are rounded to two decimal positions&lt;/li&gt;
&lt;li&gt;The amount of money must be included in local currency&lt;/li&gt;
&lt;/ul&gt;

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