Generative Interfaces for Language Models
Paper • 2508.19227 • Published
Error code: DatasetGenerationError
Exception: ValueError
Message: Expected object or value
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 281, in _generate_tables
examples = [ujson_loads(line) for line in batch.splitlines()]
~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
ValueError: Expected object or value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
questionnaireId string | questions list |
|---|---|
b4f957fd-5ead-410f-9b60-e988c3b4dea5 | [
"{\"id\":\"25e58af9-66fd-42cd-abc6-042ae799d760\",\"taskGroupId\":\"9550c6de-52ac-40aa-963f-abeb543c3922\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/006.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
b808b677-be77-4152-8b50-3e4ab1dfebbb | [
"{\"id\":\"d8cbf3e8-4c0c-49ae-96c3-f882a7fc9abc\",\"taskGroupId\":\"trap-attention-check-002\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Control Check Page A<\\/h1><p>This page should be rated as inferior. For this attention check qu... |
66b60537-ad0a-48c7-8708-91f7fdfc8580 | [
"{\"id\":\"384a8fc2-bce7-420e-a77c-3114f26604c4\",\"taskGroupId\":\"b59951b1-639f-45cd-91a1-d604bb820da4\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/003.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
aa58386a-0cca-4e19-9252-9e4609681333 | [
"{\"id\":\"fe06742a-c920-4131-bc79-a98342ec4e75\",\"taskGroupId\":\"9550c6de-52ac-40aa-963f-abeb543c3922\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/006.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
6eacaf1a-7cc6-44d7-9c0a-8e2f3edf0469 | [
"{\"id\":\"dee7fd9f-43a6-4bbc-b2b6-7c187d574103\",\"taskGroupId\":\"b59951b1-639f-45cd-91a1-d604bb820da4\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/003.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
95c83f7d-a814-4356-b719-4e81c93bba7c | [
"{\"id\":\"be4bcd85-56be-4b43-b1df-1487b51d3ab9\",\"taskGroupId\":\"27cffb6d-c7b3-45b2-934d-60038e922f7e\",\"linkA\":{\"id\":\"A\",\"url\":\"instructed_ui_claude3.7\\/005.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d butt... |
e9fc224b-3f8e-4044-ae72-8e2b07596cee | [
"{\"id\":\"0be9d351-fa24-4378-953f-2165c0903f98\",\"taskGroupId\":\"b99d62ca-8584-45ad-9b53-b8dd66bfb8ea\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/007.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
ede64c40-9cb1-4f2d-8cb7-7a40f950fe00 | [
"{\"id\":\"4fe52d02-8dfd-49cb-90eb-6a223ab8f301\",\"taskGroupId\":\"763b7cc5-d7c4-4de3-a616-1b5120c54ada\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/011.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
2872cfd8-8d6f-48cf-912c-5b718919a9fb | [
"{\"id\":\"9c6d56a4-036b-4dc8-b8a1-143a0a3ca96b\",\"taskGroupId\":\"763b7cc5-d7c4-4de3-a616-1b5120c54ada\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/011.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
6d2456b7-5a9f-4b6a-af6c-0c4e046564e8 | [
"{\"id\":\"225eefdf-cdaa-4d4d-8b17-47f439ff30c7\",\"taskGroupId\":\"59daf37f-f5ef-49f5-970e-6264ce8ef8f8\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_without_adaptive_reward_claude_3.7\\/009.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \... |
f6f7ce84-2a92-40e0-b777-aa8b06b46cf7 | [
"{\"id\":\"9480121d-d646-4ad4-a32a-adba9bceaa50\",\"taskGroupId\":\"trap-time-check-001\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Time Check Interface A<\\/h1><p>Please take your time to carefully review this interface. Spend at le... |
2291bc6a-8c59-4782-91db-bedc208f102a | [
"{\"id\":\"7d15bd43-fc74-4548-ad37-ae8847687a18\",\"taskGroupId\":\"59daf37f-f5ef-49f5-970e-6264ce8ef8f8\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/009.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
8e027fc7-d8c7-4125-9c1f-cf16a1cf57ee | [
"{\"id\":\"812c29fa-1d06-4afa-8617-109e39769992\",\"taskGroupId\":\"f60e2d08-6be8-4095-bc7d-0e885ffb7483\",\"linkA\":{\"id\":\"A\",\"url\":\"conversational_ui_gpt_4o\\/013.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
e873a7ef-4eae-4a7d-8d49-93795b1b3740 | [
"{\"id\":\"79141849-9051-46e7-ad5d-0a752ab84e6f\",\"taskGroupId\":\"trap-reading-check-001\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Interface Comparison A<\\/h1><p>This page has a red border design.<\\/p><div style='background:#ff... |
a72424bf-6750-4de2-9b37-723eb78438fd | [
"{\"id\":\"f581271c-9291-4039-b3f6-93672c331c99\",\"taskGroupId\":\"314427c5-e789-470a-bc57-2cd7ce4cb316\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_without_adaptive_reward_and_structured_representation_and_iterative_refinement_claude_3.7\\/015.html\",\"title\":\"Example A\",\"description\":\"Please open or p... |
b144d52e-9029-49cd-a33c-c07c34d30f34 | [
"{\"id\":\"c6c54d15-79ae-4c95-b1a7-dc6b8189a264\",\"taskGroupId\":\"trap-attention-check-002\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Attention Verification A<\\/h1><p>Do not select this option as the winner. This is an attention ... |
88f7bde1-6ae5-4bf0-b6ac-d4e0b73e233b | [
"{\"id\":\"ce02a42b-1dbd-4e7c-aa34-7c0d09d8fca8\",\"taskGroupId\":\"f68d4a7f-c6fa-4587-9eb0-0e70bbc57ad5\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/016.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
4105d662-f6f4-4706-84e5-41670c24bf0f | [
"{\"id\":\"9480121d-d646-4ad4-a32a-adba9bceaa50\",\"taskGroupId\":\"trap-time-check-001\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Time Check Interface A<\\/h1><p>Please take your time to carefully review this interface. Spend at le... |
f372a0d3-bce7-41bc-bba4-9dc25e90b01a | [
"{\"id\":\"05dc4525-151f-4102-a31a-389f196dfe3f\",\"taskGroupId\":\"16f3e9df-780a-41f8-883b-6cb3837d0f67\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_claude_3.7\\/021.html\",\"title\":\"Example A\",\"description\":\"Please open or preview the page to view its content. Click either the \\u201cPreview\\u201d but... |
4728877b-50b4-4f73-bc2d-cb9559fb9993 | [
"{\"id\":\"d368363c-5320-494a-83d9-14c4c8a8f189\",\"taskGroupId\":\"trap-attention-check-003\",\"linkA\":{\"id\":\"A\",\"url\":\"data:text\\/html,<html><body style='font-family:Arial;padding:20px;text-align:center;'><h1>Identical Content A<\\/h1><p>This page has intentionally identical content to Option B. For this... |
4c394906-4ecb-4e21-ba2f-fda02d94a089 | [
"{\"id\":\"45c6ad3e-383d-4416-9a14-48660a1223ea\",\"taskGroupId\":\"a21a0b2d-7aae-414e-bb28-8fe23cdc063f\",\"linkA\":{\"id\":\"A\",\"url\":\"generative_ui_without_adaptive_reward_and_structured_representation_and_iterative_refinement_claude_3.7\\/019.html\",\"title\":\"Example A\",\"description\":\"Please open or p... |
Jiaqi Chen*, Yanzhe Zhang*, Yutong Zhang, Yijia Shao, Diyi Yang
Stanford University
This repository contains the following main directories:
generated_uis/ - Generated user interfaces from different models and configurationsconversational_ui_claude_3.7/ - Conversational UIs generated by Claude 3.7conversational_ui_gpt_4o/ - Conversational UIs generated by GPT-4ogenerative_ui_claude_3.7/ - Generative UIs with full framework featuresgenerative_ui_without_adaptive_reward_claude_3.7/ - Ablation study without adaptive rewardgenerative_ui_without_adaptive_reward_and_structured_representation_claude_3.7/ - Ablation without adaptive reward and structured representationgenerative_ui_without_adaptive_reward_and_structured_representation_and_iterative_refinement_claude_3.7/ - Ablation without key framework componentsinstructed_ui_claude3.7/ - Instructed UIs generated by Claude 3.7uix_benchmark/ - Benchmark prompts and evaluation suiteraw_evaluation_results/ - Raw human and LLM evaluation datareal_user_queries/ - Results for real user queries human studyscripts/ - Analysis and data processing scriptsdataviewer/ - Interactive data viewer for exploring resultsRun the following command to reproduce the results:
python scripts/analysis.py
Open the data viewer in the browser.