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


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

&lt;/div&gt;

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

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


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

&lt;/div&gt;

&lt;h2 id=&#34;introduction-to-rag-technology&#34;&gt;Introduction to RAG technology&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;RAG (Retrieval Augmented Generation)&lt;/strong&gt; is a technique for augmenting LLM knowledge with additional data. It provides a way to optimize the output of an LLM with &lt;strong&gt;targeted and updated information&lt;/strong&gt; without retraining it; thus, providing more appropriate answers based on specific and latest data.&lt;/p&gt;
&lt;p&gt;The process includes three differentiated parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Retrieval&lt;/strong&gt;: it searches and extracts relevant information from a KB database using information retrieval techniques, such vector representations (embeddings) to find text blocks that contain the appropriate information to resolve the input request.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Augmented&lt;/strong&gt;: the RAG model augments the user input (or prompts) by adding the relevant retrieved data. This step uses prompt engineering techniques to communicate effectively with the LLM.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Generation&lt;/strong&gt;: the enriched prompt is sent to an LLM, that generates the most accurate response for the user.&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/rag-technology.png&#34;&gt;&lt;br&gt;
  &lt;i&gt;Figure 12. RAG technology&lt;/i&gt;
&lt;/p&gt;
&lt;h2 id=&#34;application-of-rag-in-atria&#34;&gt;Application of RAG in ATRIA&lt;/h2&gt;
&lt;p&gt;As explained before, the &lt;a href=&#34;../../../../docs/atria/capabilities/llm-experiences-builder/&#34;&gt;LLM/LMM Experiences Builder&lt;/a&gt; enables the generation of LLM chains that integrate different AI technologies.&lt;/p&gt;
&lt;p&gt;Within this capability, complex flows based on the RAG technology can be integrated.&lt;/p&gt;
&lt;p style=&#34;background: #f8f3e2; color: #0a0800; font-weight: normal; padding: 15px;&#34;&gt;
&lt;i class=&#34;fa-solid fa-utensils fa-xl&#34; style=&#34;color: #0a0800;&#34;&gt;&lt;/i&gt; &lt;b&gt;Example case&lt;/b&gt;&lt;br&gt;&lt;br&gt;
Imagine that our platform, &lt;b&gt;&lt;i&gt;ATRIA&lt;/b&gt;&lt;/i&gt;, operates like a &lt;u&gt;restaurant with different chefs&lt;/u&gt;, each specialized in a unique approach to meeting customers&#39; needs.&lt;br&gt;&lt;br&gt;
A &lt;b&gt;RAG model&lt;/b&gt; can be compared to Chef Sara, a chef who combines &lt;u&gt;her traditional culinary experience with the real-time consultation of resources to enhance her recipes with the latest culinary trends worldwide, as she likes to be continuously up-to-date.&lt;/u&gt;&lt;br&gt;&lt;br&gt;
When a customer requests a nutritious and hearty meal, Sara &lt;u&gt;goes beyond her own knowledge&lt;/u&gt;, based on already learnt techniques and recipes. Instead, she &lt;u&gt;consults innovative cuisine resources&lt;/u&gt;: Indian cookbooks and her recent notes on advanced molecular cooking techniques. These external sources allow her to &lt;u&gt;innovate and propose a unique dish&lt;/u&gt;: a curry foam, light and airy, with an intense spice flavor and a touch of coconut milk.&lt;br&gt;&lt;br&gt;
In technical terms, &lt;b&gt;the RAG approach&lt;/b&gt; combines:&lt;br&gt;
a. &lt;b&gt;Generation based on prior knowledge&lt;/b&gt; (the internal model): equivalent to Sara&#39;s knowledge of cooking.&lt;br&gt;
b. &lt;b&gt;Real-time retrieval of external information&lt;/b&gt;: consulting cookbooks and notes represents how a RAG system looks up information in databases or dynamic sources during the response process.&lt;br&gt;&lt;br&gt;
This integration allows the model to provide &lt;b&gt;more contextualized responses, tailored to specific needs, especially when the stored knowledge is limited or insufficient.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Currently, &lt;em&gt;&lt;strong&gt;ATRIA&lt;/strong&gt;&lt;/em&gt; incorporates the following RAG chains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../docs/atria/capabilities/llm-experiences-builder/rag/general-rag&#34;&gt;&lt;em&gt;&lt;strong&gt;General RAG&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: Complex AI-driven flow for resolving generic questions experiences based on FAQs&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../docs/atria/capabilities/llm-experiences-builder/rag/sql-rag&#34;&gt;&lt;em&gt;&lt;strong&gt;SQL RAG&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;: RAG-based pipeline for resolving SQL queries&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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; In upcoming versions, constructors will be able to design their own LLMs chains based on RAG.&lt;/p&gt;
&lt;h2 id=&#34;benefits-from-the-use-of-rag-technologies&#34;&gt;Benefits from the use of RAG technologies&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Updated and targeted information&lt;/strong&gt;: RAG allows developers to provide the latest data to the generative models, targeted to the specific use case.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Cost-effective implementation&lt;/strong&gt;: Data in the knowledge repository can be continually updated without incurring significant costs.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Enhanced user trust&lt;/strong&gt;: The data sources contributing to the RAG&amp;rsquo;s vector database are identifiable. This transparency allows for the correction or removal of any inaccuracies present in RAG and clearly improves users&amp;rsquo; confidence.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Improved developers control&lt;/strong&gt;: With RAG, developers can test and improve their applications more efficiently, control and change the LLM&amp;rsquo;s information sources to adapt to changing requirements, restrict sensitive information retrieval to different authorization levels and ensure the LLM generates appropriate responses.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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