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 querychunks— chunk metadata and textretrievals— retrieved chunks with scoresllm_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
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afa6807671bf063258d2fb98f7e01c9c2cc6800c7f3b53ec024ccd4a7e4f4eb6
|
|
| MD5 |
b678150fe5e262577d6e1c5c7f0778b5
|
|
| BLAKE2b-256 |
55f6b213bae58c2e5f20bbf298d38fca7ad684ff5e09ee043b8dcaafc5a355f7
|
Provenance
The following attestation bundles were made for tracixx-0.1.0.tar.gz:
Publisher:
publish.yml on codezard/tracixx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tracixx-0.1.0.tar.gz -
Subject digest:
afa6807671bf063258d2fb98f7e01c9c2cc6800c7f3b53ec024ccd4a7e4f4eb6 - Sigstore transparency entry: 1258030208
- Sigstore integration time:
-
Permalink:
codezard/tracixx@794ffc14c806092f17bb8120d0c51dc0b91acf02 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/codezard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@794ffc14c806092f17bb8120d0c51dc0b91acf02 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04da3c13847a8540b521b5d4a3393f0f912559a15e8941101175704b4dabfb27
|
|
| MD5 |
da313ea7adf34e8fc83a31fd7c456605
|
|
| BLAKE2b-256 |
e067a9bd87b45acb6f64ea27eddb0237a7b5a9899b8982dcbbda98403c8c6ce4
|
Provenance
The following attestation bundles were made for tracixx-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on codezard/tracixx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tracixx-0.1.0-py3-none-any.whl -
Subject digest:
04da3c13847a8540b521b5d4a3393f0f912559a15e8941101175704b4dabfb27 - Sigstore transparency entry: 1258030421
- Sigstore integration time:
-
Permalink:
codezard/tracixx@794ffc14c806092f17bb8120d0c51dc0b91acf02 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/codezard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@794ffc14c806092f17bb8120d0c51dc0b91acf02 -
Trigger Event:
push
-
Statement type: