Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ReadTimeout
Message:      The read operation timed out
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
                  yield
                File "/usr/local/lib/python3.14/site-packages/httpx/_transports/default.py", line 127, in __iter__
                  for part in self._httpcore_stream:
                              ^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 407, in __iter__
                  raise exc from None
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 403, in __iter__
                  for part in self._stream:
                              ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/http11.py", line 342, in __iter__
                  raise exc
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/http11.py", line 334, in __iter__
                  for chunk in self._connection._receive_response_body(**kwargs):
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/http11.py", line 203, in _receive_response_body
                  event = self._receive_event(timeout=timeout)
                File "/usr/local/lib/python3.14/site-packages/httpcore/_sync/http11.py", line 217, in _receive_event
                  data = self._network_stream.read(
                      self.READ_NUM_BYTES, timeout=timeout
                  )
                File "/usr/local/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 126, in read
                  with map_exceptions(exc_map):
                       ~~~~~~~~~~~~~~^^^^^^^^^
                File "/usr/local/lib/python3.14/contextlib.py", line 162, in __exit__
                  self.gen.throw(value)
                  ~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
                  raise to_exc(exc) from exc
              httpcore.ReadTimeout: The read operation timed out
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 489, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 179, in _generate_tables
                  training_examples = convert_traces_to_training_data(trace_file)
                File "/usr/local/lib/python3.14/site-packages/teich/converter.py", line 3635, in convert_traces_to_training_data
                  rows.extend(_convert_jsonl_file_to_training_rows(path))
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/teich/converter.py", line 3596, in _convert_jsonl_file_to_training_rows
                  rows = load_trace_file(jsonl_file)
                File "/usr/local/lib/python3.14/site-packages/teich/converter.py", line 3025, in load_trace_file
                  for raw_line in handle:
                                  ^^^^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_file_system.py", line 1238, in read
                  return super().read(length)
                         ~~~~~~~~~~~~^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/fsspec/spec.py", line 1897, in read
                  out = self.cache._fetch(self.loc, self.loc + length)
                File "/usr/local/lib/python3.14/site-packages/fsspec/caching.py", line 234, in _fetch
                  self.cache = self.fetcher(start, end)  # new block replaces old
                               ~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/hf_file_system.py", line 1194, in _fetch_range
                  r = http_backoff("GET", url, headers=headers, timeout=constants.HF_HUB_DOWNLOAD_TIMEOUT)
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/utils/_http.py", line 559, in http_backoff
                  return next(
                      _http_backoff_base(
                  ...<9 lines>...
                      )
                  )
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/utils/_http.py", line 479, in _http_backoff_base
                  raise err
                File "/usr/local/lib/python3.14/site-packages/huggingface_hub/utils/_http.py", line 467, in _http_backoff_base
                  response = client.request(method=method, url=url, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/httpx/_client.py", line 825, in request
                  return self.send(request, auth=auth, follow_redirects=follow_redirects)
                         ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_client.py", line 928, in send
                  raise exc
                File "/usr/local/lib/python3.14/site-packages/httpx/_client.py", line 922, in send
                  response.read()
                  ~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_models.py", line 881, in read
                  self._content = b"".join(self.iter_bytes())
                                  ~~~~~~~~^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_models.py", line 897, in iter_bytes
                  for raw_bytes in self.iter_raw():
                                   ~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_models.py", line 951, in iter_raw
                  for raw_stream_bytes in self.stream:
                                          ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_client.py", line 153, in __iter__
                  for chunk in self._stream:
                               ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_transports/default.py", line 126, in __iter__
                  with map_httpcore_exceptions():
                       ~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/contextlib.py", line 162, in __exit__
                  self.gen.throw(value)
                  ~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
                  raise mapped_exc(message) from exc
              httpx.ReadTimeout: The read operation timed out

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

OptiQ Lab Traces

Research and tool-calling sessions produced by OptiQ Lab, the local web UI that ships with mlx-optiq. Each session is a complete run: a deep-research report built from live web sources, or a multi-turn agent loop driving the Lab's own sandboxed tools.

The dataset is 866 sessions in HuggingFace Session-Traces format (the agent-traces viewer). Each .jsonl file is one session: a header line carrying the run's metadata, then one message per turn.

The two halves

sessions what a trace contains
Deep research 605 plan → first draft → rounds of draft-driven search → cited report
Chat 261 a tool-calling agent loop over web_search, python and terminal

Deep research runs the TTD-DR loop: the model plans, writes a noisy first draft, and then each round searches against the draft's own gaps and folds the retrieved sources back in. Every model call in that loop appears as the prompt sent and the completion returned.

Chat is a genuine agent loop. The model chooses a tool, the Lab executes it in a sandboxed container, the result returns, and the model decides again. These traces carry real toolCalls and toolCallId records.

Session header

Every session line carries mode (deep_research or chat), model, domain, ok, and elapsed_s.

Research sessions add:

field meaning
sources pages actually retrieved and read
citations distinct source markers used in the report body
report_chars length of the final report
model_calls model calls the loop made

Chat sessions add:

field meaning
turns_used assistant turns
tool_calls tool calls issued
tools_used which of the three tools appeared

citations counts markers in the prose, not the appended reference list, so a run that retrieved five sources and cited none reads as sources: 5, citations: 0.

Loading

from datasets import load_dataset

ds = load_dataset("mlx-community/optiq-lab-traces", split="train")

# one session = one file; the header line carries the metadata
sessions = [r for r in ds if r["type"] == "session"]
research = [s for s in sessions if s["mode"] == "deep_research"]

Generation

Research traces were generated against a local OpenAI-compatible endpoint served by optiq serve; chat traces against deepseek/deepseek-v4-flash-0731. The model field records which, per session. Questions and tasks span 43 domains for research and 25 for chat, from ML systems and cryptography through epidemiology and public policy.

The chat tools ran in the Lab's own sandbox: a container with no network and the Python standard library, which is why those traces use math, statistics, json, csv and itertools rather than numpy or pandas.

Related

  • OptiQ Code Traces — agentic software-engineering trajectories in the same format
  • mlx-optiq — the toolkit that produced these
  • OptiQ Lab — quantize, fine-tune, research and chat, locally
Downloads last month
-