Using RagaAI Catalyst to Evaluate LLM Applications

Gaurav Agarwal

Aug 20, 2024


Wondering what RagaAI Catalyst is and how it can elevate your AI development? Dive into this comprehensive beginner's guide to Catalyst, where we’ll explore what it offers, how it functions, and how you can get started with its cutting-edge features to prototype and test language models with ease.

The world of LLMs is rapidly evolving, with chatbots, virtual assistants, content generators, and language understanding systems transforming the way we interact with technology. RagaAI’s Catalyst equips you with the tools to navigate this dynamic landscape, ensuring your models are not just functional, but truly exceptional. From stress-testing for robustness to pinpointing areas for improvement, we've got you covered every step of the way.

What is RagaAI Catalyst?

RagaAI Catalyst offers an automated Test and Fix platform for LLM applications - ranging from LLMs and RAGs to Agentic Applications. With its state of the art automated metrics, it helps identify hallucinations, safety and security vulnerabilities as well as cost concerns with GenAI applications. It empowers data science and developer teams with the tools and recommendations to identify issues in real-time and address them seamlessly.

Key Features -

  1. Comprehensive and Actionable Metrics: RagaAI Catalyst excels in providing an unparalleled set of comprehensive and actionable metrics for LLM evaluation from applications like Chatbots, Code Generation to Marketing Content Generation.

  2. SOTA Evaluation: RagaAI Catalyst offers users state-of-the-art LLM evaluation methods, with an industry leading 93% alignment with human evaluation out of the box. This involves detecting issues with all parts of an application, be it prompt quality, context precision, context recall, hallucinations, response completeness and others.

  3. Safety and Security: Ensuring GenAI safety and security in production environments is a constant challenge. RagaAI offers proprietary guardrails to identify safety issues like PII (Personally Identifiable Information) leakage, toxicity, biased outputs as well as adversarial attacks like prompt injection optimised for real time inference.

How Does it Work?

RagaAI Catalyst integrates right into your LLMOps workflow, allowing for both - offline and online testing capabilities. The former allows users to upload existing data (CSV, Pandas dataframe, etc.) easily from their personal systems, while the latter allows for real-time logging of inferences by enabling Catalyst’s Tracer function from the users’ Python environments.

In doing so, Catalyst enables all levels of users and enterprises to gain confidence by seeing results on their own data, and get to deployment faster by eliminating the need to worry about real-time security and reliability issues.


Get Started with RagaAI Catalyst: A Quick Tutorial

This guide will help you get started with RagaAI Catalyst using any sample dataset, straight from your Python environment.

Steps to Use RagaAI Catalyst's Public Sandbox

The above video demonstrates all the steps required to perform your first evaluation on the Catalyst software. All commands shown in the video have been documented below.

1. Sign Up and Authentication

1.1 Sign Up

1.2 Install Python Package

pip install ragaai_catalyst -U

1.3 Authenticate Using Keys

  • Authenticate using your access key and secret key:

import os
from ragaai_catalyst import RagaAICatalyst, Experiment, Tracer, Dataset

catalyst = RagaAICatalyst(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://catalyst.raga.ai/api"
)
  • You can find Catalyst Access & Secret Keys in the UI by navigating to Settings -> Authenticate and use the "Generate New Key" button to create a fresh pair:

  • A valid API key will be required to run evaluations on the public sandbox. You can enter your API key on the Catalyst platform as follows:

2. Create New Project

  • Create a new project for testing your LLM Application:

new_project = catalyst.create_project(
    project_name="your_project_name",
    description="Your project description"
)

User can also create the project via UI by clicking the "Create New Project" button on the platform homepage:

  • List your projects:

projects = catalyst.list_projects(num_projects=2)
print(f"Projects: {projects}")
  • Note: 'num_projects' is optional and is used to list the latest 'n' projects (here, 2). Passing list_projects() without any arguments will list all the projects available.

3. Upload Dataset

RagaAI Catalyst enables users to ingest data in two broad ways: real-time tracing and static uploads of data (CSV, Pandas, etc.).

3.1 Upload Dataset via CSV

Once your project is created, you can upload datasets to it. Here's how you can upload a dataset via a CSV file:

Create New Dataset in a Project
  1. Select your newly created project from the project list.

  2. Navigate to the Dataset tab within the project.

  3. Click on the Create New Dataset button.

  4. In the upload window, select the Upload CSV tab.

  5. Click on the upload area and browse/drag and drop your local CSV file. Ensure the file size does not exceed 1GB.

  6. Enter a suitable name for your dataset.

  7. Click Next to proceed.

Next, you will be directed to map your dataset schema with Catalyst's inbuilt schema, so that your column headings don't require editing:

Set Dataset Schema

Here is a list of Catalyst's inbuilt schema elements (definitions are for reference purposes and may vary slightly based on your use case):

4. Create Experiments and Run Metrics

  • Set up an experiment and add metrics for evaluation:

from ragaai_catalyst import Experiment

experiment_manager = Experiment(
    project_name="your_project_name",
    experiment_name="Your Experiment Name",
    experiment_description="Experiment description",
    dataset_name="your_dataset_name"
)

response = experiment_manager.add_metrics(
    metrics=[
        {"name": "Hallucination", "config": {"model": "gpt-4o-mini", "reason": True, "provider": "OpenAI"}},
        {"name": "Faithfulness", "config": {"model": "azure/azure-gpt-4o-mini", "reason": True, "provider": "Azure"}}
    ]
)

print("Metric Response:", response)
  • Check out the list of supported metrics [Learn More].

  • You can view the experiment on the platform.

View Experiments

Users can view completed experiments by navigating to the Catalyst project screen and clicking on the name of the project they created. Users can click on “View Result” against the experiment they wish to analyse further. This will reveal project and inference level analyses as shown below:

Users can drill down into individual prompts to see more granular information like reasoning for each metric calculated, documents fetched for context, etc.:

Conclusion

As you embark on your journey with our LLM testing software, remember that success in AI development often hinges on experimentation and iteration. Every experiment, every test case, every insight you uncover helps push the boundaries of what's possible.

Our platform is here to support you every step of the way, offering powerful tools to analyse and refine your models. By leveraging our intuitive interface and real-time feedback capabilities, you'll be well-equipped to tackle complex challenges and push the boundaries of what your models can achieve. We encourage you to explore, test, and innovate—your next breakthrough is just a few clicks away. Welcome aboard, and happy testing!


Wondering what RagaAI Catalyst is and how it can elevate your AI development? Dive into this comprehensive beginner's guide to Catalyst, where we’ll explore what it offers, how it functions, and how you can get started with its cutting-edge features to prototype and test language models with ease.

The world of LLMs is rapidly evolving, with chatbots, virtual assistants, content generators, and language understanding systems transforming the way we interact with technology. RagaAI’s Catalyst equips you with the tools to navigate this dynamic landscape, ensuring your models are not just functional, but truly exceptional. From stress-testing for robustness to pinpointing areas for improvement, we've got you covered every step of the way.

What is RagaAI Catalyst?

RagaAI Catalyst offers an automated Test and Fix platform for LLM applications - ranging from LLMs and RAGs to Agentic Applications. With its state of the art automated metrics, it helps identify hallucinations, safety and security vulnerabilities as well as cost concerns with GenAI applications. It empowers data science and developer teams with the tools and recommendations to identify issues in real-time and address them seamlessly.

Key Features -

  1. Comprehensive and Actionable Metrics: RagaAI Catalyst excels in providing an unparalleled set of comprehensive and actionable metrics for LLM evaluation from applications like Chatbots, Code Generation to Marketing Content Generation.

  2. SOTA Evaluation: RagaAI Catalyst offers users state-of-the-art LLM evaluation methods, with an industry leading 93% alignment with human evaluation out of the box. This involves detecting issues with all parts of an application, be it prompt quality, context precision, context recall, hallucinations, response completeness and others.

  3. Safety and Security: Ensuring GenAI safety and security in production environments is a constant challenge. RagaAI offers proprietary guardrails to identify safety issues like PII (Personally Identifiable Information) leakage, toxicity, biased outputs as well as adversarial attacks like prompt injection optimised for real time inference.

How Does it Work?

RagaAI Catalyst integrates right into your LLMOps workflow, allowing for both - offline and online testing capabilities. The former allows users to upload existing data (CSV, Pandas dataframe, etc.) easily from their personal systems, while the latter allows for real-time logging of inferences by enabling Catalyst’s Tracer function from the users’ Python environments.

In doing so, Catalyst enables all levels of users and enterprises to gain confidence by seeing results on their own data, and get to deployment faster by eliminating the need to worry about real-time security and reliability issues.


Get Started with RagaAI Catalyst: A Quick Tutorial

This guide will help you get started with RagaAI Catalyst using any sample dataset, straight from your Python environment.

Steps to Use RagaAI Catalyst's Public Sandbox

The above video demonstrates all the steps required to perform your first evaluation on the Catalyst software. All commands shown in the video have been documented below.

1. Sign Up and Authentication

1.1 Sign Up

1.2 Install Python Package

pip install ragaai_catalyst -U

1.3 Authenticate Using Keys

  • Authenticate using your access key and secret key:

import os
from ragaai_catalyst import RagaAICatalyst, Experiment, Tracer, Dataset

catalyst = RagaAICatalyst(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://catalyst.raga.ai/api"
)
  • You can find Catalyst Access & Secret Keys in the UI by navigating to Settings -> Authenticate and use the "Generate New Key" button to create a fresh pair:

  • A valid API key will be required to run evaluations on the public sandbox. You can enter your API key on the Catalyst platform as follows:

2. Create New Project

  • Create a new project for testing your LLM Application:

new_project = catalyst.create_project(
    project_name="your_project_name",
    description="Your project description"
)

User can also create the project via UI by clicking the "Create New Project" button on the platform homepage:

  • List your projects:

projects = catalyst.list_projects(num_projects=2)
print(f"Projects: {projects}")
  • Note: 'num_projects' is optional and is used to list the latest 'n' projects (here, 2). Passing list_projects() without any arguments will list all the projects available.

3. Upload Dataset

RagaAI Catalyst enables users to ingest data in two broad ways: real-time tracing and static uploads of data (CSV, Pandas, etc.).

3.1 Upload Dataset via CSV

Once your project is created, you can upload datasets to it. Here's how you can upload a dataset via a CSV file:

Create New Dataset in a Project
  1. Select your newly created project from the project list.

  2. Navigate to the Dataset tab within the project.

  3. Click on the Create New Dataset button.

  4. In the upload window, select the Upload CSV tab.

  5. Click on the upload area and browse/drag and drop your local CSV file. Ensure the file size does not exceed 1GB.

  6. Enter a suitable name for your dataset.

  7. Click Next to proceed.

Next, you will be directed to map your dataset schema with Catalyst's inbuilt schema, so that your column headings don't require editing:

Set Dataset Schema

Here is a list of Catalyst's inbuilt schema elements (definitions are for reference purposes and may vary slightly based on your use case):

4. Create Experiments and Run Metrics

  • Set up an experiment and add metrics for evaluation:

from ragaai_catalyst import Experiment

experiment_manager = Experiment(
    project_name="your_project_name",
    experiment_name="Your Experiment Name",
    experiment_description="Experiment description",
    dataset_name="your_dataset_name"
)

response = experiment_manager.add_metrics(
    metrics=[
        {"name": "Hallucination", "config": {"model": "gpt-4o-mini", "reason": True, "provider": "OpenAI"}},
        {"name": "Faithfulness", "config": {"model": "azure/azure-gpt-4o-mini", "reason": True, "provider": "Azure"}}
    ]
)

print("Metric Response:", response)
  • Check out the list of supported metrics [Learn More].

  • You can view the experiment on the platform.

View Experiments

Users can view completed experiments by navigating to the Catalyst project screen and clicking on the name of the project they created. Users can click on “View Result” against the experiment they wish to analyse further. This will reveal project and inference level analyses as shown below:

Users can drill down into individual prompts to see more granular information like reasoning for each metric calculated, documents fetched for context, etc.:

Conclusion

As you embark on your journey with our LLM testing software, remember that success in AI development often hinges on experimentation and iteration. Every experiment, every test case, every insight you uncover helps push the boundaries of what's possible.

Our platform is here to support you every step of the way, offering powerful tools to analyse and refine your models. By leveraging our intuitive interface and real-time feedback capabilities, you'll be well-equipped to tackle complex challenges and push the boundaries of what your models can achieve. We encourage you to explore, test, and innovate—your next breakthrough is just a few clicks away. Welcome aboard, and happy testing!


Wondering what RagaAI Catalyst is and how it can elevate your AI development? Dive into this comprehensive beginner's guide to Catalyst, where we’ll explore what it offers, how it functions, and how you can get started with its cutting-edge features to prototype and test language models with ease.

The world of LLMs is rapidly evolving, with chatbots, virtual assistants, content generators, and language understanding systems transforming the way we interact with technology. RagaAI’s Catalyst equips you with the tools to navigate this dynamic landscape, ensuring your models are not just functional, but truly exceptional. From stress-testing for robustness to pinpointing areas for improvement, we've got you covered every step of the way.

What is RagaAI Catalyst?

RagaAI Catalyst offers an automated Test and Fix platform for LLM applications - ranging from LLMs and RAGs to Agentic Applications. With its state of the art automated metrics, it helps identify hallucinations, safety and security vulnerabilities as well as cost concerns with GenAI applications. It empowers data science and developer teams with the tools and recommendations to identify issues in real-time and address them seamlessly.

Key Features -

  1. Comprehensive and Actionable Metrics: RagaAI Catalyst excels in providing an unparalleled set of comprehensive and actionable metrics for LLM evaluation from applications like Chatbots, Code Generation to Marketing Content Generation.

  2. SOTA Evaluation: RagaAI Catalyst offers users state-of-the-art LLM evaluation methods, with an industry leading 93% alignment with human evaluation out of the box. This involves detecting issues with all parts of an application, be it prompt quality, context precision, context recall, hallucinations, response completeness and others.

  3. Safety and Security: Ensuring GenAI safety and security in production environments is a constant challenge. RagaAI offers proprietary guardrails to identify safety issues like PII (Personally Identifiable Information) leakage, toxicity, biased outputs as well as adversarial attacks like prompt injection optimised for real time inference.

How Does it Work?

RagaAI Catalyst integrates right into your LLMOps workflow, allowing for both - offline and online testing capabilities. The former allows users to upload existing data (CSV, Pandas dataframe, etc.) easily from their personal systems, while the latter allows for real-time logging of inferences by enabling Catalyst’s Tracer function from the users’ Python environments.

In doing so, Catalyst enables all levels of users and enterprises to gain confidence by seeing results on their own data, and get to deployment faster by eliminating the need to worry about real-time security and reliability issues.


Get Started with RagaAI Catalyst: A Quick Tutorial

This guide will help you get started with RagaAI Catalyst using any sample dataset, straight from your Python environment.

Steps to Use RagaAI Catalyst's Public Sandbox

The above video demonstrates all the steps required to perform your first evaluation on the Catalyst software. All commands shown in the video have been documented below.

1. Sign Up and Authentication

1.1 Sign Up

1.2 Install Python Package

pip install ragaai_catalyst -U

1.3 Authenticate Using Keys

  • Authenticate using your access key and secret key:

import os
from ragaai_catalyst import RagaAICatalyst, Experiment, Tracer, Dataset

catalyst = RagaAICatalyst(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://catalyst.raga.ai/api"
)
  • You can find Catalyst Access & Secret Keys in the UI by navigating to Settings -> Authenticate and use the "Generate New Key" button to create a fresh pair:

  • A valid API key will be required to run evaluations on the public sandbox. You can enter your API key on the Catalyst platform as follows:

2. Create New Project

  • Create a new project for testing your LLM Application:

new_project = catalyst.create_project(
    project_name="your_project_name",
    description="Your project description"
)

User can also create the project via UI by clicking the "Create New Project" button on the platform homepage:

  • List your projects:

projects = catalyst.list_projects(num_projects=2)
print(f"Projects: {projects}")
  • Note: 'num_projects' is optional and is used to list the latest 'n' projects (here, 2). Passing list_projects() without any arguments will list all the projects available.

3. Upload Dataset

RagaAI Catalyst enables users to ingest data in two broad ways: real-time tracing and static uploads of data (CSV, Pandas, etc.).

3.1 Upload Dataset via CSV

Once your project is created, you can upload datasets to it. Here's how you can upload a dataset via a CSV file:

Create New Dataset in a Project
  1. Select your newly created project from the project list.

  2. Navigate to the Dataset tab within the project.

  3. Click on the Create New Dataset button.

  4. In the upload window, select the Upload CSV tab.

  5. Click on the upload area and browse/drag and drop your local CSV file. Ensure the file size does not exceed 1GB.

  6. Enter a suitable name for your dataset.

  7. Click Next to proceed.

Next, you will be directed to map your dataset schema with Catalyst's inbuilt schema, so that your column headings don't require editing:

Set Dataset Schema

Here is a list of Catalyst's inbuilt schema elements (definitions are for reference purposes and may vary slightly based on your use case):

4. Create Experiments and Run Metrics

  • Set up an experiment and add metrics for evaluation:

from ragaai_catalyst import Experiment

experiment_manager = Experiment(
    project_name="your_project_name",
    experiment_name="Your Experiment Name",
    experiment_description="Experiment description",
    dataset_name="your_dataset_name"
)

response = experiment_manager.add_metrics(
    metrics=[
        {"name": "Hallucination", "config": {"model": "gpt-4o-mini", "reason": True, "provider": "OpenAI"}},
        {"name": "Faithfulness", "config": {"model": "azure/azure-gpt-4o-mini", "reason": True, "provider": "Azure"}}
    ]
)

print("Metric Response:", response)
  • Check out the list of supported metrics [Learn More].

  • You can view the experiment on the platform.

View Experiments

Users can view completed experiments by navigating to the Catalyst project screen and clicking on the name of the project they created. Users can click on “View Result” against the experiment they wish to analyse further. This will reveal project and inference level analyses as shown below:

Users can drill down into individual prompts to see more granular information like reasoning for each metric calculated, documents fetched for context, etc.:

Conclusion

As you embark on your journey with our LLM testing software, remember that success in AI development often hinges on experimentation and iteration. Every experiment, every test case, every insight you uncover helps push the boundaries of what's possible.

Our platform is here to support you every step of the way, offering powerful tools to analyse and refine your models. By leveraging our intuitive interface and real-time feedback capabilities, you'll be well-equipped to tackle complex challenges and push the boundaries of what your models can achieve. We encourage you to explore, test, and innovate—your next breakthrough is just a few clicks away. Welcome aboard, and happy testing!


Wondering what RagaAI Catalyst is and how it can elevate your AI development? Dive into this comprehensive beginner's guide to Catalyst, where we’ll explore what it offers, how it functions, and how you can get started with its cutting-edge features to prototype and test language models with ease.

The world of LLMs is rapidly evolving, with chatbots, virtual assistants, content generators, and language understanding systems transforming the way we interact with technology. RagaAI’s Catalyst equips you with the tools to navigate this dynamic landscape, ensuring your models are not just functional, but truly exceptional. From stress-testing for robustness to pinpointing areas for improvement, we've got you covered every step of the way.

What is RagaAI Catalyst?

RagaAI Catalyst offers an automated Test and Fix platform for LLM applications - ranging from LLMs and RAGs to Agentic Applications. With its state of the art automated metrics, it helps identify hallucinations, safety and security vulnerabilities as well as cost concerns with GenAI applications. It empowers data science and developer teams with the tools and recommendations to identify issues in real-time and address them seamlessly.

Key Features -

  1. Comprehensive and Actionable Metrics: RagaAI Catalyst excels in providing an unparalleled set of comprehensive and actionable metrics for LLM evaluation from applications like Chatbots, Code Generation to Marketing Content Generation.

  2. SOTA Evaluation: RagaAI Catalyst offers users state-of-the-art LLM evaluation methods, with an industry leading 93% alignment with human evaluation out of the box. This involves detecting issues with all parts of an application, be it prompt quality, context precision, context recall, hallucinations, response completeness and others.

  3. Safety and Security: Ensuring GenAI safety and security in production environments is a constant challenge. RagaAI offers proprietary guardrails to identify safety issues like PII (Personally Identifiable Information) leakage, toxicity, biased outputs as well as adversarial attacks like prompt injection optimised for real time inference.

How Does it Work?

RagaAI Catalyst integrates right into your LLMOps workflow, allowing for both - offline and online testing capabilities. The former allows users to upload existing data (CSV, Pandas dataframe, etc.) easily from their personal systems, while the latter allows for real-time logging of inferences by enabling Catalyst’s Tracer function from the users’ Python environments.

In doing so, Catalyst enables all levels of users and enterprises to gain confidence by seeing results on their own data, and get to deployment faster by eliminating the need to worry about real-time security and reliability issues.


Get Started with RagaAI Catalyst: A Quick Tutorial

This guide will help you get started with RagaAI Catalyst using any sample dataset, straight from your Python environment.

Steps to Use RagaAI Catalyst's Public Sandbox

The above video demonstrates all the steps required to perform your first evaluation on the Catalyst software. All commands shown in the video have been documented below.

1. Sign Up and Authentication

1.1 Sign Up

1.2 Install Python Package

pip install ragaai_catalyst -U

1.3 Authenticate Using Keys

  • Authenticate using your access key and secret key:

import os
from ragaai_catalyst import RagaAICatalyst, Experiment, Tracer, Dataset

catalyst = RagaAICatalyst(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://catalyst.raga.ai/api"
)
  • You can find Catalyst Access & Secret Keys in the UI by navigating to Settings -> Authenticate and use the "Generate New Key" button to create a fresh pair:

  • A valid API key will be required to run evaluations on the public sandbox. You can enter your API key on the Catalyst platform as follows:

2. Create New Project

  • Create a new project for testing your LLM Application:

new_project = catalyst.create_project(
    project_name="your_project_name",
    description="Your project description"
)

User can also create the project via UI by clicking the "Create New Project" button on the platform homepage:

  • List your projects:

projects = catalyst.list_projects(num_projects=2)
print(f"Projects: {projects}")
  • Note: 'num_projects' is optional and is used to list the latest 'n' projects (here, 2). Passing list_projects() without any arguments will list all the projects available.

3. Upload Dataset

RagaAI Catalyst enables users to ingest data in two broad ways: real-time tracing and static uploads of data (CSV, Pandas, etc.).

3.1 Upload Dataset via CSV

Once your project is created, you can upload datasets to it. Here's how you can upload a dataset via a CSV file:

Create New Dataset in a Project
  1. Select your newly created project from the project list.

  2. Navigate to the Dataset tab within the project.

  3. Click on the Create New Dataset button.

  4. In the upload window, select the Upload CSV tab.

  5. Click on the upload area and browse/drag and drop your local CSV file. Ensure the file size does not exceed 1GB.

  6. Enter a suitable name for your dataset.

  7. Click Next to proceed.

Next, you will be directed to map your dataset schema with Catalyst's inbuilt schema, so that your column headings don't require editing:

Set Dataset Schema

Here is a list of Catalyst's inbuilt schema elements (definitions are for reference purposes and may vary slightly based on your use case):

4. Create Experiments and Run Metrics

  • Set up an experiment and add metrics for evaluation:

from ragaai_catalyst import Experiment

experiment_manager = Experiment(
    project_name="your_project_name",
    experiment_name="Your Experiment Name",
    experiment_description="Experiment description",
    dataset_name="your_dataset_name"
)

response = experiment_manager.add_metrics(
    metrics=[
        {"name": "Hallucination", "config": {"model": "gpt-4o-mini", "reason": True, "provider": "OpenAI"}},
        {"name": "Faithfulness", "config": {"model": "azure/azure-gpt-4o-mini", "reason": True, "provider": "Azure"}}
    ]
)

print("Metric Response:", response)
  • Check out the list of supported metrics [Learn More].

  • You can view the experiment on the platform.

View Experiments

Users can view completed experiments by navigating to the Catalyst project screen and clicking on the name of the project they created. Users can click on “View Result” against the experiment they wish to analyse further. This will reveal project and inference level analyses as shown below:

Users can drill down into individual prompts to see more granular information like reasoning for each metric calculated, documents fetched for context, etc.:

Conclusion

As you embark on your journey with our LLM testing software, remember that success in AI development often hinges on experimentation and iteration. Every experiment, every test case, every insight you uncover helps push the boundaries of what's possible.

Our platform is here to support you every step of the way, offering powerful tools to analyse and refine your models. By leveraging our intuitive interface and real-time feedback capabilities, you'll be well-equipped to tackle complex challenges and push the boundaries of what your models can achieve. We encourage you to explore, test, and innovate—your next breakthrough is just a few clicks away. Welcome aboard, and happy testing!


Wondering what RagaAI Catalyst is and how it can elevate your AI development? Dive into this comprehensive beginner's guide to Catalyst, where we’ll explore what it offers, how it functions, and how you can get started with its cutting-edge features to prototype and test language models with ease.

The world of LLMs is rapidly evolving, with chatbots, virtual assistants, content generators, and language understanding systems transforming the way we interact with technology. RagaAI’s Catalyst equips you with the tools to navigate this dynamic landscape, ensuring your models are not just functional, but truly exceptional. From stress-testing for robustness to pinpointing areas for improvement, we've got you covered every step of the way.

What is RagaAI Catalyst?

RagaAI Catalyst offers an automated Test and Fix platform for LLM applications - ranging from LLMs and RAGs to Agentic Applications. With its state of the art automated metrics, it helps identify hallucinations, safety and security vulnerabilities as well as cost concerns with GenAI applications. It empowers data science and developer teams with the tools and recommendations to identify issues in real-time and address them seamlessly.

Key Features -

  1. Comprehensive and Actionable Metrics: RagaAI Catalyst excels in providing an unparalleled set of comprehensive and actionable metrics for LLM evaluation from applications like Chatbots, Code Generation to Marketing Content Generation.

  2. SOTA Evaluation: RagaAI Catalyst offers users state-of-the-art LLM evaluation methods, with an industry leading 93% alignment with human evaluation out of the box. This involves detecting issues with all parts of an application, be it prompt quality, context precision, context recall, hallucinations, response completeness and others.

  3. Safety and Security: Ensuring GenAI safety and security in production environments is a constant challenge. RagaAI offers proprietary guardrails to identify safety issues like PII (Personally Identifiable Information) leakage, toxicity, biased outputs as well as adversarial attacks like prompt injection optimised for real time inference.

How Does it Work?

RagaAI Catalyst integrates right into your LLMOps workflow, allowing for both - offline and online testing capabilities. The former allows users to upload existing data (CSV, Pandas dataframe, etc.) easily from their personal systems, while the latter allows for real-time logging of inferences by enabling Catalyst’s Tracer function from the users’ Python environments.

In doing so, Catalyst enables all levels of users and enterprises to gain confidence by seeing results on their own data, and get to deployment faster by eliminating the need to worry about real-time security and reliability issues.


Get Started with RagaAI Catalyst: A Quick Tutorial

This guide will help you get started with RagaAI Catalyst using any sample dataset, straight from your Python environment.

Steps to Use RagaAI Catalyst's Public Sandbox

The above video demonstrates all the steps required to perform your first evaluation on the Catalyst software. All commands shown in the video have been documented below.

1. Sign Up and Authentication

1.1 Sign Up

1.2 Install Python Package

pip install ragaai_catalyst -U

1.3 Authenticate Using Keys

  • Authenticate using your access key and secret key:

import os
from ragaai_catalyst import RagaAICatalyst, Experiment, Tracer, Dataset

catalyst = RagaAICatalyst(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://catalyst.raga.ai/api"
)
  • You can find Catalyst Access & Secret Keys in the UI by navigating to Settings -> Authenticate and use the "Generate New Key" button to create a fresh pair:

  • A valid API key will be required to run evaluations on the public sandbox. You can enter your API key on the Catalyst platform as follows:

2. Create New Project

  • Create a new project for testing your LLM Application:

new_project = catalyst.create_project(
    project_name="your_project_name",
    description="Your project description"
)

User can also create the project via UI by clicking the "Create New Project" button on the platform homepage:

  • List your projects:

projects = catalyst.list_projects(num_projects=2)
print(f"Projects: {projects}")
  • Note: 'num_projects' is optional and is used to list the latest 'n' projects (here, 2). Passing list_projects() without any arguments will list all the projects available.

3. Upload Dataset

RagaAI Catalyst enables users to ingest data in two broad ways: real-time tracing and static uploads of data (CSV, Pandas, etc.).

3.1 Upload Dataset via CSV

Once your project is created, you can upload datasets to it. Here's how you can upload a dataset via a CSV file:

Create New Dataset in a Project
  1. Select your newly created project from the project list.

  2. Navigate to the Dataset tab within the project.

  3. Click on the Create New Dataset button.

  4. In the upload window, select the Upload CSV tab.

  5. Click on the upload area and browse/drag and drop your local CSV file. Ensure the file size does not exceed 1GB.

  6. Enter a suitable name for your dataset.

  7. Click Next to proceed.

Next, you will be directed to map your dataset schema with Catalyst's inbuilt schema, so that your column headings don't require editing:

Set Dataset Schema

Here is a list of Catalyst's inbuilt schema elements (definitions are for reference purposes and may vary slightly based on your use case):

4. Create Experiments and Run Metrics

  • Set up an experiment and add metrics for evaluation:

from ragaai_catalyst import Experiment

experiment_manager = Experiment(
    project_name="your_project_name",
    experiment_name="Your Experiment Name",
    experiment_description="Experiment description",
    dataset_name="your_dataset_name"
)

response = experiment_manager.add_metrics(
    metrics=[
        {"name": "Hallucination", "config": {"model": "gpt-4o-mini", "reason": True, "provider": "OpenAI"}},
        {"name": "Faithfulness", "config": {"model": "azure/azure-gpt-4o-mini", "reason": True, "provider": "Azure"}}
    ]
)

print("Metric Response:", response)
  • Check out the list of supported metrics [Learn More].

  • You can view the experiment on the platform.

View Experiments

Users can view completed experiments by navigating to the Catalyst project screen and clicking on the name of the project they created. Users can click on “View Result” against the experiment they wish to analyse further. This will reveal project and inference level analyses as shown below:

Users can drill down into individual prompts to see more granular information like reasoning for each metric calculated, documents fetched for context, etc.:

Conclusion

As you embark on your journey with our LLM testing software, remember that success in AI development often hinges on experimentation and iteration. Every experiment, every test case, every insight you uncover helps push the boundaries of what's possible.

Our platform is here to support you every step of the way, offering powerful tools to analyse and refine your models. By leveraging our intuitive interface and real-time feedback capabilities, you'll be well-equipped to tackle complex challenges and push the boundaries of what your models can achieve. We encourage you to explore, test, and innovate—your next breakthrough is just a few clicks away. Welcome aboard, and happy testing!

Subscribe to our newsletter to never miss an update

Subscribe to our newsletter to never miss an update

Other articles

Exploring Intelligent Agents in AI

Jigar Gupta

Sep 6, 2024

Read the article

Understanding What AI Red Teaming Means for Generative Models

Jigar Gupta

Sep 4, 2024

Read the article

RAG vs Fine-Tuning: Choosing the Best AI Learning Technique

Jigar Gupta

Sep 4, 2024

Read the article

Understanding NeMo Guardrails: A Toolkit for LLM Security

Rehan Asif

Sep 4, 2024

Read the article

Understanding Differences in Large vs Small Language Models (LLM vs SLM)

Rehan Asif

Sep 4, 2024

Read the article

Understanding What an AI Agent is: Key Applications and Examples

Jigar Gupta

Sep 4, 2024

Read the article

Prompt Engineering and Retrieval Augmented Generation (RAG)

Jigar Gupta

Sep 4, 2024

Read the article

Exploring How Multimodal Large Language Models Work

Rehan Asif

Sep 3, 2024

Read the article

Evaluating and Enhancing LLM-as-a-Judge with Automated Tools

Rehan Asif

Sep 3, 2024

Read the article

Optimizing Performance and Cost by Caching LLM Queries

Rehan Asif

Sep 3, 3034

Read the article

LoRA vs RAG: Full Model Fine-Tuning in Large Language Models

Jigar Gupta

Sep 3, 2024

Read the article

Steps to Train LLM on Personal Data

Rehan Asif

Sep 3, 2024

Read the article

Step by Step Guide to Building RAG-based LLM Applications with Examples

Rehan Asif

Sep 2, 2024

Read the article

Building AI Agentic Workflows with Multi-Agent Collaboration

Jigar Gupta

Sep 2, 2024

Read the article

Top Large Language Models (LLMs) in 2024

Rehan Asif

Sep 2, 2024

Read the article

Creating Apps with Large Language Models

Rehan Asif

Sep 2, 2024

Read the article

Best Practices In Data Governance For AI

Jigar Gupta

Sep 22, 2024

Read the article

Transforming Conversational AI with Large Language Models

Rehan Asif

Aug 30, 2024

Read the article

Deploying Generative AI Agents with Local LLMs

Rehan Asif

Aug 30, 2024

Read the article

Exploring Different Types of AI Agents with Key Examples

Jigar Gupta

Aug 30, 2024

Read the article

Creating Your Own Personal LLM Agents: Introduction to Implementation

Rehan Asif

Aug 30, 2024

Read the article

Exploring Agentic AI Architecture and Design Patterns

Jigar Gupta

Aug 30, 2024

Read the article

Building Your First LLM Agent Framework Application

Rehan Asif

Aug 29, 2024

Read the article

Multi-Agent Design and Collaboration Patterns

Rehan Asif

Aug 29, 2024

Read the article

Creating Your Own LLM Agent Application from Scratch

Rehan Asif

Aug 29, 2024

Read the article

Solving LLM Token Limit Issues: Understanding and Approaches

Rehan Asif

Aug 29, 2024

Read the article

Understanding the Impact of Inference Cost on Generative AI Adoption

Jigar Gupta

Aug 28, 2024

Read the article

Data Security: Risks, Solutions, Types and Best Practices

Jigar Gupta

Aug 28, 2024

Read the article

Getting Contextual Understanding Right for RAG Applications

Jigar Gupta

Aug 28, 2024

Read the article

Understanding Data Fragmentation and Strategies to Overcome It

Jigar Gupta

Aug 28, 2024

Read the article

Understanding Techniques and Applications for Grounding LLMs in Data

Rehan Asif

Aug 28, 2024

Read the article

Advantages Of Using LLMs For Rapid Application Development

Rehan Asif

Aug 28, 2024

Read the article

Understanding React Agent in LangChain Engineering

Rehan Asif

Aug 28, 2024

Read the article

Using RagaAI Catalyst to Evaluate LLM Applications

Gaurav Agarwal

Aug 20, 2024

Read the article

Step-by-Step Guide on Training Large Language Models

Rehan Asif

Aug 19, 2024

Read the article

Understanding LLM Agent Architecture

Rehan Asif

Aug 19, 2024

Read the article

Understanding the Need and Possibilities of AI Guardrails Today

Jigar Gupta

Aug 19, 2024

Read the article

How to Prepare Quality Dataset for LLM Training

Rehan Asif

Aug 14, 2024

Read the article

Understanding Multi-Agent LLM Framework and Its Performance Scaling

Rehan Asif

Aug 15, 2024

Read the article

Understanding and Tackling Data Drift: Causes, Impact, and Automation Strategies

Jigar Gupta

Aug 14, 2024

Read the article

RagaAI Dashboard
RagaAI Dashboard
RagaAI Dashboard
RagaAI Dashboard
Introducing RagaAI Catalyst: Best in class automated LLM evaluation with 93% Human Alignment

Gaurav Agarwal

Jul 15, 2024

Read the article

Key Pillars and Techniques for LLM Observability and Monitoring

Rehan Asif

Jul 24, 2024

Read the article

Introduction to What is LLM Agents and How They Work?

Rehan Asif

Jul 24, 2024

Read the article

Analysis of the Large Language Model Landscape Evolution

Rehan Asif

Jul 24, 2024

Read the article

Marketing Success With Retrieval Augmented Generation (RAG) Platforms

Jigar Gupta

Jul 24, 2024

Read the article

Developing AI Agent Strategies Using GPT

Jigar Gupta

Jul 24, 2024

Read the article

Identifying Triggers for Retraining AI Models to Maintain Performance

Jigar Gupta

Jul 16, 2024

Read the article

Agentic Design Patterns In LLM-Based Applications

Rehan Asif

Jul 16, 2024

Read the article

Generative AI And Document Question Answering With LLMs

Jigar Gupta

Jul 15, 2024

Read the article

How to Fine-Tune ChatGPT for Your Use Case - Step by Step Guide

Jigar Gupta

Jul 15, 2024

Read the article

Security and LLM Firewall Controls

Rehan Asif

Jul 15, 2024

Read the article

Understanding the Use of Guardrail Metrics in Ensuring LLM Safety

Rehan Asif

Jul 13, 2024

Read the article

Exploring the Future of LLM and Generative AI Infrastructure

Rehan Asif

Jul 13, 2024

Read the article

Comprehensive Guide to RLHF and Fine Tuning LLMs from Scratch

Rehan Asif

Jul 13, 2024

Read the article

Using Synthetic Data To Enrich RAG Applications

Jigar Gupta

Jul 13, 2024

Read the article

Comparing Different Large Language Model (LLM) Frameworks

Rehan Asif

Jul 12, 2024

Read the article

Integrating AI Models with Continuous Integration Systems

Jigar Gupta

Jul 12, 2024

Read the article

Understanding Retrieval Augmented Generation for Large Language Models: A Survey

Jigar Gupta

Jul 12, 2024

Read the article

Leveraging AI For Enhanced Retail Customer Experiences

Jigar Gupta

Jul 1, 2024

Read the article

Enhancing Enterprise Search Using RAG and LLMs

Rehan Asif

Jul 1, 2024

Read the article

Importance of Accuracy and Reliability in Tabular Data Models

Jigar Gupta

Jul 1, 2024

Read the article

Information Retrieval And LLMs: RAG Explained

Rehan Asif

Jul 1, 2024

Read the article

Introduction to LLM Powered Autonomous Agents

Rehan Asif

Jul 1, 2024

Read the article

Guide on Unified Multi-Dimensional LLM Evaluation and Benchmark Metrics

Rehan Asif

Jul 1, 2024

Read the article

Innovations In AI For Healthcare

Jigar Gupta

Jun 24, 2024

Read the article

Implementing AI-Driven Inventory Management For The Retail Industry

Jigar Gupta

Jun 24, 2024

Read the article