Contents

Cancel

Recommended Articles

  1. unify-apps

    Indexing

    Unify AI

    Transform raw content into searchable knowledge through AI-powered indexing and vector embeddings

  2. unify-apps

    IMAP

    Unify Integrations

    Integrate your app with IMAP to enable seamless email synchronization, real-time access, and enhanced communication workflows.

  3. unify-apps

    Preview Your Work

    Unify Automations

    Effortlessly review & monitor your automation’s performance

  4. unify-apps

    QuickBooks

    Unify Integrations

    Integrate your app with QuickBooks to streamline accounting, automate invoicing, and manage finances effortlessly

  5. unify-apps

    FTP/FTPS

    Unify Integrations

    Connect your app with FTP/FTPS to automate secure file transfers and streamline data exchange across systems.

  6. unify-apps

    Facebook Ads

    Unify Integrations

    Connect your app with Facebook Ads to automate campaign management, optimize ad performance, and track marketing success.

  7. unify-apps

    Snowflake

    Unify Automations

    Connect to Snowflake for fast, scalable cloud data warehousing and analytics

  8. unify-apps

    Button

    Unify Applications

    Create interactive elements with ease using buttons

  9. unify-apps

    BambooHR

    Unify Automations

    Integrate your app with BambooHR to streamline HR management, automate employee data processing, and enhance onboarding workflows

  10. unify-apps

    Build your first automation

    Unify Automations

    Learn how to build your automation step by step

  11. unify-apps

    User Management

    Unify Applications

    Efficiently manage user roles and permissions

  12. unify-apps

    Microsoft Teams

    Unify Automations

    Connect your app with Microsoft Teams to enhance communication, automate workflows, and foster collaboration across your organization

  13. unify-apps

    Jira

    Unify Automations

    Use Jira to plan, track, and manage your agile and software development projects

  14. unify-apps

    Pre Processing

    Unify AI

    Optimize query processing through intelligent rephrasing, retrieval, and ranking to deliver accurate AI responses

  15. unify-apps

    Google Calendar

    Unify Integrations

    Integrate your app with Google Calendar to streamline scheduling, automate event management, and improve team coordination

#
Unify AI
Logo
Sessions and Tracing

Sessions and Tracing

Logo

4 mins READ

Overview

The Session History and Trace Timeline feature provides complete visibility into AI agent interactions, allowing users to monitor, analyze, and understand how the agent processes requests and arrives at responses. This transparency tool helps users track performance metrics and verify the agent's decision-making process.

Key Metrics at a Glance

  1. Total Sessions:  Sessions are distinct conversations between a user and an AI agent. They represent a continuous sequence of exchanges within a single context or conversation. In the context of "Avg Session Duration," this metric indicates the average length of time users spend interacting with the AI agent in a single conversation.

  2. Avg Session Time: How long, on average, each AI interaction lasts.

  3. Avg Tokens Consumed: The average number of tokens used per session.

  4. User Feedback : Helpful/Not Helpful: The feedback given by users on the agent responses.

    Image
    Image

Trace Timeline

Traceability via sessions in UnifyApps AI Agents provides a comprehensive debugging and monitoring capability that allows users to understand exactly how their AI agent processes and responds to queries.

  1. Input Guardrails Functions to ensure query safety and compliance:

    • Validates incoming query format and content

    • Scans for and redacts sensitive information

    • Checks against list of denied or restricted topics

    • Filters custom words or phrases specified by organization

    • Content safety validation (hate speech, insults, inappropriate content)

      Image
      Image

  2. Rephrasing Optimizes query for processing through:

    • Reformats query for better understanding

    • Standardizes language and terminology

    • Enhances query clarity and intent

    • Maintains original context while improving structure

    • Prepares query for knowledge retrieval

      Image
      Image

  3. Knowledge Pipeline

    • Chunk Retrieval

      • Fetches relevant document segments from knowledge base

      • Extracts information from source documents

      • Assigns unique IDs to document chunks

      • Maps chunks to their source documents

      • Tracks document source and origin

    • Chunk Reranking

      • Assigns relevance scores to retrieved chunks

      • Orders chunks based on relevance to query

      • Evaluates content importance

      • Prioritizes most relevant information

      • Prepares ranked content for response generation

    • Response Generation

      • Compiles information from ranked chunks

      • Structures response based on query intent

      • Formats content appropriately

      • Ensures coherent and complete answers

      • Prepares response for final validation

        Image
        Image
  4. AI Agent Task Functions to process and execute specific actions:

    • Interprets user intent and required actions

    • Executes predefined workflows based on query

    • Manages task-specific operations

    • Handles specialized processing requirements

    • Coordinates between different system components

  5. Output Guardrails Functions to ensure response quality and safety:

    • Validates response content and structure

    • Performs final sensitive information check

    • Checks against list of denied or restricted topics

    • Applies custom word filters

    • Evaluates response quality metrics (groundedness, relevance)

    • Ensures compliance with organizational policies

      Image
      Image

Key Components of Traceability 

  1. Input Processing and Guardrails

    • Monitors initial query processing through input guardrails

    • Checks for sensitive information redaction

    • Validates queries against denied topics

    • Applies custom word filters

    • Ensures content compliance through multiple filtering layers

  2. Knowledge Pipeline Processing

    • Shows chunk retrieval from relevant documents

    • Displays source documents being accessed

    • Lists document IDs and their sources

    • Indicates processing time for each step

    • Demonstrates how information is gathered from the knowledge base

  3. Chunk Reranking

    • Presents relevance scores for retrieved chunks

    • Shows prioritization of information

    • Indicates how different pieces of information are weighted

    • Demonstrates the ranking methodology

    • Helps understand why certain information was selected

  4. Response Generation

    • Displays the final response creation process

    • Shows how information is compiled and formatted

    • Indicates processing time for response generation

    • Demonstrates final output filtering

    • Ensures response quality and accuracy

  5. Groundedness and Relevance Scoring

    • Provides metrics for response quality

    • Shows relevance scores

    • Indicates groundedness of responses

    • Helps validate response accuracy

    • Ensures response alignment with source material