Agent Quick Start

A quick start guide to enable and using Etiq's Data Science Agents

🚨Please note that currently our Agent functionality is only compatible with VSCode⚠️

Setting up Etiq with an agent

In order to use Etiq's Agent functionality you need to have an API key for one of the following LLM providers:

  • OpenAI

  • Anthropic

  • Google

With Etiq installed click on the Etiq logo on the left of the primary sidebar in VSCode.

This will open up the Etiq LLM Copilot Selector. Choose from the drop down your LLM provider of choice, and then enter a valid API key for that provider in the box below.

If this has been successful you'll see the RCA tab in the Etiq Panel on the right had side change to DSA (Data Science Agent).

Using the Data Science Agent

The Data Science Agent replaces the Root Cause Analysis (RCA) functionality of the core Etiq Data Science Copilot.

Clone our demo scripts repo

https://github.com/ETIQ-AI/etiq-demo-scripts.git

Within the duplicates-example directory you'll find duplicates_example.py

Using this script first you scan the current file

Move to the testing recommendations tab and select a relevant test to run, here we're going to choose:

Line 24: df_with_duplicates = df_with_duplicates.sample(frac=1, random_state=42).reset_index(drop=True)

And we will run the etiq.scan_duplicate_rows test

You'll see that the test has now failed

Click on the run DSA tab, this will change to Waiting... This will start the Data Science Agent which will now analyse both the data and teh code to understand what is the root of the issue, here the duplicate rows, and provide a fix. Once the agent is finished the Waiting... will change to Re-Run DSA

Scroll to the top and now click on the DSA tab. This will bring up the specific lineage for the affected data and code

If you scroll down the DSA result section will suggest a fix, if you click Open Full Diff it will show that change to be made on your script. Underneath that will be an expandable Code Fix Explanation

If you now make the suggested change to the script, save the script rerun the code scan, and rerun the etiq.scan_duplicate_rows test you'll see that it has now passed.

Last updated

Was this helpful?