x-datasets / simple-harmony-convos.jsonl
xiaohk's picture
Add simple harmony convos
2304448 verified
{"id":"ex-01","messages":[{"role":"user","content":[{"type":"text","text":"What's this?"}]},{"role":"assistant","content":[{"type":"text","text":"Hi! This is Euphony, a web-based interactive tool for visualizing Harmony chat data. It lets you browse, explore, and share conversation data."}]},{"role":"user","content":[{"type":"text","text":"So it's basically like a chat viewer?"}]},{"role":"assistant","content":[{"type":"text","text":"Yes, but it does more than that. You can inspect metadata, filter conversations, render markdown, translate text, view Codex sessions, and inspect Harmony token rendering."}]},{"role":"user","content":[{"type":"text","text":"Nice. How do I actually load data into it?"}]},{"role":"assistant","content":[{"type":"text","text":"You can load data in three ways: paste JSON or JSONL from the clipboard, choose a local file, or provide a public HTTP(S) URL that serves JSON or JSONL."}]},{"role":"user","content":[{"type":"text","text":"And once I load it, I can share these conversations?"}]},{"role":"assistant","content":[{"type":"text","text":"Exactly. After loading, you can share a link to a conversation, and you can also share links to individual messages."}]},{"role":"user","content":[{"type":"text","text":"What if something does not load the way I expect?"}]},{"role":"assistant","content":[{"type":"text","text":"The easiest next steps are to inspect the metadata, check whether the file is valid JSON or JSONL, and compare against the example files bundled with the app."}]}],"metadata":{"title":"Introduction","language":"en"}}
{"id":"ex-02","messages":[{"role":"user","create_time":1773604200,"content":[{"type":"text","text":"Cool, I loaded some data. How do I see metadata and render markdown?"}]},{"role":"assistant","create_time":1773604235,"content":[{"type":"text","text":"Use the conversation metadata button for conversation-level metadata, and hover over a message role icon for message-level metadata. You can also enable markdown rendering to display rich formatting and formulas inline."}]},{"role":"tool","name":"euphony","create_time":1773604270,"content":[{"type":"text","text":"# Euphony 示例对话笔记\n\nEuphony 支持复杂标注与 Markdown 渲染。你不仅能看到文字,还能查看结构化元数据,而且所有公式、Markdown 渲染都能直接在对话气泡中展示。\n\n---\n\n## 示例公式:损失融合\n\n\\[\n\\sum_{m \\in \\{\\text{文本}\\}}\n\\underbrace{ \\alpha_m \\cdot \\mathrm{Score}^T(m) }_{\\text{语义层的相关性}}\n\\;+\\;\n\\underbrace{ \\beta_m \\cdot \\mathrm{Score}^S(m) }_{\\substack{\\text{信号层的结构}\\\\\\text{完整性度量}}}\n\\]\n\n- **文本模态**:\\(\\mathrm{Score}^T\\) 表示 BLEU/ROUGE,\\(\\mathrm{Score}^S\\) 表示句法完整性。\n\n---\n\n## 功能展示\n- **数学公式支持**:如上例,复杂的下标、上标和分块说明都能正常渲染。\n- **翻译**:支持将非英文消息直接翻译并内联显示。"}]},{"role":"assistant","create_time":1773604315,"content":[{"type":"text","text":"Markdown rendering also works well with metadata inspection and inline formulas."}]}],"metadata":{"title":"Metadata, Markdown, and Translation","language":"en"}}
{"id":"ex-03","messages":[{"role":"user","content":[{"type":"text","text":"My conversations have more than just plain user and assistant text. What else can Euphony load?"}]},{"role":"assistant","content":[{"type":"text","text":"In this viewer, Euphony supports text, code, system content, and developer content. System and developer messages are rendered as first-class parts of the conversation, which is useful when you want to inspect the full prompt stack."}]},{"role":"system","content":[{"type":"system_content","model_identity":"You are ChatGPT, a large language model trained by OpenAI.","reasoning_effort":"medium","conversation_start_date":"2026-04-06","knowledge_cutoff":"2024-06","channel_config":{"valid_channels":["analysis","commentary","final"],"channel_required":true}}]},{"role":"developer","content":[{"instructions":"Keep answers concise, prefer exact file names, and give concrete next steps."}]},{"role":"assistant","content":[{"content_type":"code","text":"{\n \"role\": \"assistant\",\n \"channel\": \"final\",\n \"content\": [\n {\"type\": \"text\", \"text\": \"Rendered code blocks are supported too.\"}\n ]\n}","language":"json"}]},{"role":"assistant","content":[{"content_type":"code","text":"diff --git a/src/components/conversation/conversation.ts b/src/components/conversation/conversation.ts\nindex 1a2b3c4..5d6e7f8 100644\n--- a/src/components/conversation/conversation.ts\n+++ b/src/components/conversation/conversation.ts\n@@ -210,7 +210,7 @@ const renderHeader = () => {\n- const label = 'Conversation';\n+ const label = 'Euphony';\n return html`<h2>${label}</h2>`;\n }\n","language":"diff"}]}],"metadata":{"title":"Supported Harmony Content","language":"en"}}
{"id":"ex-04","messages":[{"role":"user","content":[{"type":"text","text":"Does Euphony handle anything else?"}]},{"role":"assistant","content":[{"type":"text","text":"It also supports rendering HTML elements in markdown text when markdown rendering is enabled. Here is the same HTML demo used in the main tutorial flow."}]},{"role":"tool","name":"euphony","content":[{"type":"text","text":"```html\n<div class=\"flip-wrap\" style=\"font-family:system-ui\">\n <div class=\"flip-card\" aria-label=\"Euphony flip card\">\n <div class=\"flip-inner\">\n <div class=\"face front\"><div class=\"title\">Euphony</div><div class=\"sub\">hover to flip</div></div>\n <div class=\"face back\"><div class=\"title\">Euphony</div><div class=\"sub\">HTML Rendering</div></div>\n </div>\n </div>\n\n <style>\n .flip-wrap{width:calc(100vw - 50px);height:calc(100vh - 50px);display:flex;justify-content:center;align-items:center}\n .flip-card{width:250px;height:110px;border-radius:18px;perspective:900px;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}\n .flip-inner{width:100%;height:100%;position:relative;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.9,.2,1);will-change:transform}\n .flip-card:hover .flip-inner{transform:rotateY(180deg)}\n .face{position:absolute;inset:0;border-radius:18px;display:grid;place-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(.1px);border:1px solid rgba(255,255,255,.10);box-shadow:0 16px 45px rgba(0,0,0,.35);overflow:hidden}\n .front{background:radial-gradient(120% 120% at 0% 0%,rgba(255,92,244,.28),transparent 55%),radial-gradient(120% 120% at 100% 100%,rgba(92,255,241,.22),transparent 55%),linear-gradient(135deg,#0b1220,#111827);color:#e5e7eb}\n .back{transform:rotateY(180deg) translateZ(.1px);-webkit-transform:rotateY(180deg) translateZ(.1px);background:radial-gradient(120% 120% at 100% 0%,rgba(92,255,241,.26),transparent 55%),radial-gradient(120% 120% at 0% 100%,rgba(255,92,244,.22),transparent 55%),linear-gradient(135deg,#111827,#0b1220);color:#e5e7eb}\n .title{font-weight:950;font-size:34px;letter-spacing:.06em;text-shadow:0 10px 30px rgba(0,0,0,.45);position:relative}\n .sub{margin-top:6px;font-size:12px;color:#94a3b8;letter-spacing:.14em;text-transform:uppercase}\n .front::before,.back::before{content:\"\";position:absolute;inset:-60px;background:conic-gradient(from 0deg,rgba(255,92,244,0),rgba(255,92,244,.55),rgba(92,255,241,.55),rgba(255,92,244,0));filter:blur(16px);opacity:.45;animation:spin 3.2s linear infinite;backface-visibility:hidden;-webkit-backface-visibility:hidden}\n .front>*,.back>*{position:relative;z-index:1;text-align:center}\n @keyframes spin{to{transform:rotate(360deg)}}\n </style>\n</div>\n```"}]},{"role":"assistant","content":[{"type":"text","text":"That gives you a richer embedded demo without needing a separate content type."}]}],"metadata":{"title":"HTML Rendering","language":"en"}}
{"id":"ex-05","messages":[{"role":"user","content":[{"type":"text","text":"I've loaded a big dataset, but I only want to view a subset of it and skim a lot of conversations at once. How do I do that?"}]},{"role":"assistant","content":[{"type":"text","text":"Use Filter data to apply a JMESPath query across the loaded conversations. Any metadata key in your JSONL can be used, for example `metadata.language == 'en'`. If you want to scan many samples quickly after filtering, switch the layout to Grid in Preferences."}]},{"role":"user","content":[{"type":"text","text":"Some of my rollouts have a lot of tool call messages, but I want to focus on the user messages."}]},{"role":"assistant","content":[{"type":"text","text":"Use focus mode to filter messages by role, recipient, or content type. That lets you hide noisy messages while keeping the surrounding conversations visible."}]}],"metadata":{"title":"Filtering, Focus Mode, and Grid","language":"en"}}
{"id":"ex-06","messages":[{"role":"user","content":[{"type":"text","text":"Can I edit the loaded JSONL directly in the app?"}]},{"role":"assistant","content":[{"type":"text","text":"Yes. Switch to editor mode. It lets you view and edit the underlying JSONL content directly, which is useful for fixing message text, adjusting metadata, and iterating on examples without leaving the viewer."}]},{"role":"assistant","content":[{"content_type":"code","text":"{\"messages\":[{\"role\":\"user\",\"content\":[{\"type\":\"text\",\"text\":\"Original prompt\"}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Edited answer\"}]}]}","language":"json"}]}],"metadata":{"title":"Editing Mode","language":"en"}}
{"id":"ex-07","messages":[{"role":"user","content":[{"type":"text","text":"Is there a way to highlight some metadata or messages in Euphony?"}]},{"role":"assistant","content":[{"type":"text","text":"Yes. Euphony supports conversation and message labels through magic metadata fields such as `euphony_custom_labels` and `euphony_custom_message_labels`."}]},{"role":"assistant","content":[{"content_type":"code","text":"{\n \"metadata\": {\n \"euphony_custom_labels\": [\n [\"score\", \"8\", \"Likert score of this conversation\", \"orangered\"],\n [\"is_correct\", \"true\", \"Whether the final answer is correct\", \"#2e7d32\"]\n ],\n \"euphony_custom_message_labels\": [\n [0, \"Important first user turn\", \"#006bb2\", \"important\"]\n ]\n }\n}","language":"json"}]},{"role":"assistant","content":[{"type":"text","text":"That is useful for evaluation annotations, correctness tags, or any workflow-specific markers you want visible during review."}]}],"metadata":{"title":"Custom Labels","language":"en","euphony_custom_labels":[["score","8","Likert score of this conversation","orangered"],["is_correct","true","Whether the final answer is correct","#2e7d32"]],"euphony_custom_message_labels":[[0,"Important first user turn","#006bb2","important"]]}}
{"id":"ex-08","messages":[{"role":"user","content":[{"type":"text","text":"While skimming, is there a way to understand how the model tokenizes a conversation?"}]},{"role":"assistant","content":[{"type":"text","text":"Yes. Euphony supports token visualization with Harmony renderers. Open the token render window for a conversation, choose a renderer, and inspect the rendered text, token IDs, and decoded tokens."}]},{"role":"assistant","channel":"final","content":[{"content_type":"code","text":"<|start|>user<|message|>Explain quicksort.<|end|><|start|>assistant<|channel|>final<|message|>Quicksort is a divide-and-conquer sorting algorithm...<|end|>","language":"text"}]},{"role":"assistant","content":[{"type":"text","text":"Euphony can also transform Codex sessions into conversations and visualize them just like other conversation data."}]},{"role":"assistant","content":[{"content_type":"code","text":"{\"type\":\"session_meta\",\"payload\":{\"id\":\"sess_demo\",\"cwd\":\"/workspace/demo\"}}\n{\"type\":\"response_item\",\"payload\":{\"type\":\"message\",\"role\":\"user\",\"content\":\"Run the tests.\"}}\n{\"type\":\"response_item\",\"payload\":{\"type\":\"function_call\",\"name\":\"exec_command\",\"arguments\":\"{\\\"cmd\\\":\\\"pytest\\\"}\"}}\n{\"type\":\"response_item\",\"payload\":{\"type\":\"function_call_output\",\"name\":\"exec_command\",\"output\":\"2 passed\"}}","language":"jsonl"}]}],"metadata":{"title":"Harmony Rendering and Codex Sessions","language":"en"}}