Support Bot: production trace archive
Open the table viewer. Each subset appears when it has data. The conversation view is built after its supporting raw history has been collected.
Manually gated operational data for approved analysis. Includes real customer messages and identifiers. Access to dataset files requires the owner's approval. The dataset page and documentation are public when the repository is public. Do not redistribute or train on this archive without separate authorization.
The initial backfill covers every record still retained in the Langfuse project's ClickHouse trace and observation tables. Available traces begin at 2026-08-19 20:18:26.111 UTC; available nested observations begin at 2026-10-18 08:15:28.014 UTC. Older observations are not present in the current table. Trace-level inputs/outputs may still exist for those older dates. See baseline.json for initial source counts and precise timestamps. Baseline physical counts can exceed FINAL live-row counts because ClickHouse merges row versions.
Runs every night at 03:00 Asia/Karachi (22:00 UTC the previous day) directly on the monitoring host. The first invocation backfills history. Source reads use only HTTP GET SELECTs with FINAL and is_deleted=0, one query at a time, one ClickHouse thread, a 512 MiB query memory cap, a 180-second query time cap, a 20 MiB/s source-read cap, small blocks, and pauses between windows. The exporter waits when host load is high and stops if free disk falls below 10 GiB. It writes only to its own protected directory and this access-controlled dataset. It never changes production services, ingestion, prompts or database rows.
All tables live directly in one data folder. Dates are dataset columns, not directory partitions. date is a date type and timestamp is a UTC timestamp. schema.json defines the fixed schemas. Select conversations, traces, or observations in the Dataset Viewer, with the archive split.
The conversations table groups traces by the recorded session ID, orders the turns, and includes every retained observation, including tool inputs/results, model calls, errors, status, and timings. Its typed turns[].observations[] column supports inspection in table tools. conversation_json contains the full nested execution trees with children, retaining every original observation field. Missing parents, parent cycles, and synthetic headers are explicitly marked. Traces without a recorded session ID remain in separate trace-based groups; they are never guessed to belong to another chat. Conversations spanning many turns are split into numbered parts without truncating the recorded events.
Conversation snapshots are append-only. snapshot_at identifies the archive cutoff, conversation_id identifies the chat, and part_index orders its parts. Nightly exports add new snapshots only for chats with new records. To analyze the latest state, use the greatest snapshot_at per conversation_id and keep every part at that cutoff. Earlier snapshots remain useful for historical comparisons. grouping_basis records whether the session ID was available. observation_coverage marks turns older than the retained tool-call history. tool_observation_count counts only observations explicitly typed TOOL; other function-call payloads remain available in the observation and full JSON fields.
record_json preserves all native ClickHouse columns. Decode with json.loads(row['record_json']). Native fields use snake_case. Raw input, output, model parameters and map values may themselves be JSON-encoded strings; viewer input/output columns decode one JSON-string layer for readability. Join observations.trace_id to traces.id; reconstruct execution trees with parent_observation_id. Model, usage, cost, tool calls, timestamps, statuses, and metadata remain available in record_json. API-derived fields such as UI URLs and trace-level computed aggregates are not synthesized. Latency is in seconds; absent metrics are null. Datetimes in native rows use UTC.
Raw tables add previously unseen IDs. A persistent host-side SQLite index prevents duplicate raw IDs across runs. Records are staged locally, uploaded in batches, and SHA-256 verified before the publication checkpoint advances. Failed batches retain their files and retry; staged source checkpoints allow recovery without repeatedly reading production. A filesystem lock prevents overlap. Nightly runs scan a one-hour overlap and end 15 minutes behind wall-clock time for ingestion settling. Late arrivals outside that overlap and changes to already archived IDs are not guaranteed to appear. This is an append-only analysis archive, not a live mirror; later source deletions do not remove archived records. The protected local cache supports building nested views without rereading production.
Detected credential fields, known export credentials, Bearer tokens and recognizable API token formats are redacted. This is not personal-data anonymization. Configuration credentials, logs, ID indexes and SSH details are never uploaded. Before and after every commit, the exporter requires either private visibility or public visibility with manual access approval. Ungated public repositories and automatic approval are rejected. Per-window manifests include source counts, new-record counts and data-file SHA-256 hashes. Each uploaded file is downloaded and hash-checked before checkpointing. Historical backfill and the nightly job share this checkpoint.
import json
from datasets import load_dataset
traces = load_dataset("theusamaaslam/support-bot-trace-archive", "traces", split="archive", token=True, streaming=True)
observations = load_dataset("theusamaaslam/support-bot-trace-archive", "observations", split="archive", token=True, streaming=True)
conversations = load_dataset("theusamaaslam/support-bot-trace-archive", "conversations", split="archive", token=True, streaming=True)
trace = json.loads(next(iter(traces))["record_json"])
conversation = json.loads(next(iter(conversations))["conversation_json"])
- Downloads last month
- 19,382