Skip to main content

Documentation Index

Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

You’ve built a customer-service chatbot. It retrieves policy documents, sends them to an LLM, and generates answers. It works… most of the time. But when a customer gets a wrong answer — like being told they can get a refund when they can’t — you have no way to figure out why. Was the wrong document retrieved? Did the LLM ignore the context? Did the prompt not give clear enough instructions? Without visibility into what’s happening inside your app, every bug is a guessing game. Tracing solves this by capturing every step of every request — retrieval, LLM calls, inputs, outputs, latency, token counts — so you can see exactly what happened and where things went wrong. In this guide, you’ll instrument a simple RAG chatbot and send traces to Arize AX. By the end, you’ll have full visibility into every request your app handles.
This is Part 1 of the Arize AX Get Started series. Each guide builds on the previous one.

Before you start

You’ll need: We’ve prepared a companion notebook that builds the example chatbot used throughout this series. You can download it here or open it in Colab and follow along, or adapt the steps to your own application. The example app is SkyServe, an airline customer-service chatbot that answers questions about refund policies, baggage rules, rebooking procedures, and a loyalty program. It uses ChromaDB for retrieval and OpenAI for generation — a straightforward RAG setup. Get your Arize credentials. Once you’re logged in, navigate to Settings in the left sidebar, then open the API Keys page. Copy your Space ID from the Current SpaceID field, and create an API Key — give it a Key Name and click Create Key, then save the key somewhere safe. You’ll plug both into whichever path you choose below.
Settings page showing Space ID and API Keys

Choose how you want to work

You can start right from the Arize AX UI: create a New Tracing Project and the setup wizard walks you through Choose From 30+ Integrations, then hands you a code snippet — pre-filled with your Space ID — to copy into your app.
New Tracing Project setup wizard in Arize AX
Or pick a path below: use Arize Skills to have your coding agent instrument your app from your editor, or Code to wire up the SDK yourself. Every path sends the same traces to your skyserve-chatbot project.
Use Arize Skills with your coding agent to add tracing without writing the instrumentation yourself. Install the skills plugin and follow Set up Arize with AI coding agents for authentication and CLI setup. Then, follow the flow below.

Step 1: Instrument your app

arize-instrumentationInstall the skill and set your credentials so it can wire them in:
npx skills add Arize-ai/arize-skills --skill "arize-instrumentation" --yes
export ARIZE_API_KEY="YOUR_API_KEY"
export ARIZE_SPACE_ID="YOUR_SPACE_ID"   # the Space ID from Settings > API Keys
Then open your coding agent from your project’s root directory — the skill reads and edits the code in that folder, so it has to be pointed at the app you want to instrument. Ask it to set up tracing. For example, you might say:
Set up Arize tracing in my skyserve-chatbot application
The skill analyzes your stack, picks the right OpenInference package, wires it in (plus manual CHAIN and RETRIEVER/TOOL spans where your app does retrieval or calls tools), and tells you exactly how to verify traces are flowing. Works with Cursor, Claude Code, Codex, and more.
Claude Code loading the arize-instrumentation skill and its Phase 1 analysis of the skyserve-chatbot app: detects Python, OpenAI, and ChromaDB, then proposes arize-otel plus openinference-instrumentation-openai

Step 2: Generate some traces

arize-instrumentationAs part of its verification phase, the skill runs your app and triggers a request to confirm spans are flowing. To send a representative batch — straightforward questions plus tricky edge cases — ask your agent to run it again. For example, you might say:
Run the app and send a few sample customer questions so we get traces in skyserve-chatbot

Step 3: See your traces in Arize AX

arize-traceExport recent spans from your project to inspect what each request did — what was retrieved, the LLM call, inputs and outputs — right in your editor, without leaving your agent. For example, you might say:
Export the latest traces from skyserve-chatbot and summarize what each request retrieved and answered
arize-trace skill output summarizing the latest skyserve-chatbot traces: a table of each question, the policy documents retrieved from ChromaDB, and the answer, plus a retrieval-quality note
The same traces also appear under your skyserve-chatbot project in Arize AX, where you can expand any span tree to see the model, prompt, response, latency, and token counts.

Congratulations!

You now have full visibility into every step of your chatbot’s reasoning — what documents it retrieved, what prompt was constructed, what the LLM returned, and how long each step took. You can spot problems instantly instead of guessing. But you’ve been manually clicking through traces to find problems. That works for 15 test questions, but your chatbot will handle hundreds or thousands of requests per day. You can’t review them all by hand. Next up: We’ll set up automated evaluations so Arize AX flags quality problems for you — no manual review required.

Next: Evaluate Your Agent

Learn more about Tracing