Generative feedback functional description

Discover the feedback functionality that can be used for Generative AI and RAG capabilities

If you are interested in the detailed technical operational flow of this capability, that includes the sequence diagram of interactions between components, access here

Introduction

Within the use of the ATRIA AI-driven Generative AI or RAG capabilities, we have developed a feedback functionality.

This feedback functionality allows the estimation of the user’s satisfaction regarding the obtained response.

The user can provide feedback by clicking on a thumbs-up icon if the quality and appropriateness of the answer is correct or selecting the thumbs-down icon if the response misses the point, contains hallucinations, or is unclear.

Functional operation

The underlying process is summarized in the following lines and schematically shown in the figure below:

  1. An application sends a request to aura-gateway-api generative with a correlator.
  2. Firstly, it passes through Kernel (Telefónica Digital Ecosystem) for authentication and security purposes.
  3. aura-gateway-api processes the received request and sends the request to the auto-generative content generator atria-model-gateway to obtain an appropriate response.
  4. atria-model-gateway generates the most appropriate response and sends it back to aura-gateway-api.
  5. aura-gateway-api sends the response back to the service that initiated the request with the same correlator and a session identifier.
  6. An application sends a request to aura-gateway-api feedback with:
    • A new header correlator
    • The sessionId received in the path
    • The field msg_corrid, in the body, that indicates the correlator of the message the feedback is about.
  7. aura-gateway-api processes the received request and communicates with atria-model-gateway to send this request.
  8. atria-model-gateway stores the feedback.
  9. aura-gateway-api communicates a 204 to the application.