Skip to main content

AI pipeline observability and debugging toolkit for Databricks

Project description

Tracixx — AI Pipeline Observability and Debugging Toolkit

Tracixx is an open-source Python package that gives developers complete observability and debugging capabilities for AI/RAG pipelines built on Databricks.

The Problem

Building RAG (Retrieval-Augmented Generation) pipelines is complex. When they fail, it's hard to know whether the issue came from:

  • Data ingestion or chunking
  • Embedding quality
  • Retrieval scoring
  • LLM reasoning

There's no structured way to trace issues across the entire pipeline. Debugging becomes trial-and-error.

The Solution

Tracixx captures every stage of your pipeline:

  • Chunks — text, size, source metadata, chunking strategy
  • Retrievals — which chunks matched, similarity scores, embedding model
  • LLM responses — answer, prompt, context used, token counts

All stored in Delta tables for analysis and debugging. Plus:

  • Query replay — re-run a stored query with different configs and compare
  • Retrieval eval metrics — Hit Rate, MRR, NDCG@k for labeled test sets
  • Pipeline analysis — redundancy detection, orphaned chunks, grounding checks

Quick Start

from tracixx import RAGDebugger

debugger = RAGDebugger(
    catalog="main",
    schema="tracixx_debug",
    experiment_name="my-rag-v1"  # optional MLflow integration
)

# Wrap your RAG pipeline
with debugger.trace(query="What is Delta Lake?") as trace:
    # Log chunks from your document processor
    trace.log_chunks(chunks, strategy="recursive", chunk_size=512)

    # Log retrieved chunks with scores
    retrieved = vectorstore.similarity_search_with_score(query, k=5)
    trace.log_retrieval(chunks=retrieved, scores=scores, model="bge-large")

    # Log LLM response
    answer = llm.invoke(prompt)
    trace.log_response(answer=answer, prompt=prompt, tokens=usage)

LangChain Integration

Drop-in callback for LangChain chains:

from tracixx.integrations.langchain import RAGDebuggerCallback

chain = RetrievalQA.from_chain_type(
    llm=llm,
    retriever=vectorstore.as_retriever(),
    callbacks=[RAGDebuggerCallback(debugger)]
)

Installation

pip install tracixx

Optional dependencies:

pip install tracixx[langchain]  # LangChain integration
pip install tracixx[mlflow]     # MLflow experiment tracking
pip install tracixx[spark]      # PySpark storage backend
pip install tracixx[all]        # All optional dependencies

Architecture

Storage: Delta tables in Unity Catalog (Databricks native)

Tables:

  • traces — one row per query
  • chunks — chunk metadata and text
  • retrievals — retrieved chunks with scores
  • llm_responses — generated answers and token usage

Analysis: Python-native diagnostics with no extra dependencies

Roadmap

  • v0.1.0 (current): Core instrumentation + MLflow integration
  • v0.2.0: Query replay, evaluation metrics, analysis modules
  • Phase 2: Production monitoring, Genie Space integration, LLM-as-judge scoring

Development

For developers contributing to Tracixx:

git clone https://github.com/codezard/tracixx.git
cd tracixx
pip install -e ".[dev]"
pytest

License

MIT

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracixx-0.1.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tracixx-0.1.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file tracixx-0.1.0.tar.gz.

File metadata

  • Download URL: tracixx-0.1.0.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tracixx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 afa6807671bf063258d2fb98f7e01c9c2cc6800c7f3b53ec024ccd4a7e4f4eb6
MD5 b678150fe5e262577d6e1c5c7f0778b5
BLAKE2b-256 55f6b213bae58c2e5f20bbf298d38fca7ad684ff5e09ee043b8dcaafc5a355f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracixx-0.1.0.tar.gz:

Publisher: publish.yml on codezard/tracixx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tracixx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tracixx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tracixx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04da3c13847a8540b521b5d4a3393f0f912559a15e8941101175704b4dabfb27
MD5 da313ea7adf34e8fc83a31fd7c456605
BLAKE2b-256 e067a9bd87b45acb6f64ea27eddb0237a7b5a9899b8982dcbbda98403c8c6ce4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tracixx-0.1.0-py3-none-any.whl:

Publisher: publish.yml on codezard/tracixx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page