{
  "_meta": {
    "description": "Phase 2Q G0-2 MacBook qwen3.6-27B query rewrite response fixture (4 카테고리)",
    "captured_at": "2026-05-24",
    "endpoint": "http://100.118.112.84:8810/v1/chat/completions",
    "model": "mlx-community/Qwen3.6-27B-8bit",
    "sampling": {
      "temperature": 0.3,
      "max_tokens": 256,
      "response_format_omitted": true
    },
    "prompt_version": "v1",
    "prompt_path": "app/prompts/query_rewrite.txt",
    "note": "response_format=json_object 미지원 (120s hang at inspect 9, 2026-05-24). prompt rule 'no markdown' 만으로 strict JSON 강제. 3.2s cold first call → ~2.1s warm. OpenAI 호환 + extra reasoning/tool_calls/peak_memory fields ([[reference_mlx_vlm_tool_calling]])."
  },
  "cases": {
    "korean_only": {
      "query": "압력용기 설계 기준",
      "request_body": {
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "messages": [
          {
            "role": "system",
            "content": "You are a search query rewriter for a multilingual document search system (Korean primary, English/mixed secondary).\n\nTask: given the user's search query, produce 3 search-friendly variants:\n- variant 0 = original query (verbatim, no change)\n- variant 1 = Korean rephrase with different phrasing (synonyms / 명사구 변형 / 조사 변형)\n- variant 2 = English translation OR cross-lingual rephrase (if Korean → English term; if English → Korean term)\n\nRules:\n- Each variant ≤ 80 chars.\n- Preserve domain-specific terms (ASME, KGS, 가스기사, 압력용기) verbatim — no abbreviation/transliteration.\n- Do not invent new entities.\n- Output STRICT JSON only (no prose, no markdown, no code fence): {\"variants\": [\"...\", \"...\", \"...\"]}"
          },
          {
            "role": "user",
            "content": "압력용기 설계 기준"
          }
        ],
        "temperature": 0.3,
        "max_tokens": 256
      },
      "response": {
        "id": "chatcmpl-0a123e20-1f15-4e76-bfa2-34c4a1f06a98",
        "object": "chat.completion",
        "created": 1779574036,
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "choices": [
          {
            "index": 0,
            "finish_reason": "stop",
            "message": {
              "role": "assistant",
              "content": "{\"variants\": [\"압력용기 설계 기준\", \"압력용기 설계 규정\", \"pressure vessel design standards\"]}",
              "reasoning": null,
              "tool_calls": null,
              "tool_call_id": null,
              "name": null
            },
            "logprobs": null
          }
        ],
        "usage": {
          "prompt_tokens": 210,
          "completion_tokens": 26,
          "total_tokens": 236,
          "prompt_tokens_details": {
            "cached_tokens": 0
          },
          "prompt_tps": 0.0,
          "generation_tps": 0.0,
          "peak_memory": 30.210776441
        }
      },
      "parsed_variants": [
        "압력용기 설계 기준",
        "압력용기 설계 규정",
        "pressure vessel design standards"
      ]
    },
    "mixed": {
      "query": "ASME Section VIII 적용 기준",
      "request_body": {
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "messages": [
          {
            "role": "system",
            "content": "You are a search query rewriter for a multilingual document search system (Korean primary, English/mixed secondary).\n\nTask: given the user's search query, produce 3 search-friendly variants:\n- variant 0 = original query (verbatim, no change)\n- variant 1 = Korean rephrase with different phrasing (synonyms / 명사구 변형 / 조사 변형)\n- variant 2 = English translation OR cross-lingual rephrase (if Korean → English term; if English → Korean term)\n\nRules:\n- Each variant ≤ 80 chars.\n- Preserve domain-specific terms (ASME, KGS, 가스기사, 압력용기) verbatim — no abbreviation/transliteration.\n- Do not invent new entities.\n- Output STRICT JSON only (no prose, no markdown, no code fence): {\"variants\": [\"...\", \"...\", \"...\"]}"
          },
          {
            "role": "user",
            "content": "ASME Section VIII 적용 기준"
          }
        ],
        "temperature": 0.3,
        "max_tokens": 256
      },
      "response": {
        "id": "chatcmpl-51c5fd7c-b4a8-4fe1-ac77-ebcf232513e7",
        "object": "chat.completion",
        "created": 1779574038,
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "choices": [
          {
            "index": 0,
            "finish_reason": "stop",
            "message": {
              "role": "assistant",
              "content": "{\"variants\": [\"ASME Section VIII 적용 기준\", \"ASME Section VIII 적용 범위 및 기준\", \"ASME Section VIII application criteria\"]}",
              "reasoning": null,
              "tool_calls": null,
              "tool_call_id": null,
              "name": null
            },
            "logprobs": null
          }
        ],
        "usage": {
          "prompt_tokens": 210,
          "completion_tokens": 30,
          "total_tokens": 240,
          "prompt_tokens_details": {
            "cached_tokens": 0
          },
          "prompt_tps": 0.0,
          "generation_tps": 0.0,
          "peak_memory": 30.210776441
        }
      },
      "parsed_variants": [
        "ASME Section VIII 적용 기준",
        "ASME Section VIII 적용 범위 및 기준",
        "ASME Section VIII application criteria"
      ]
    },
    "english_only": {
      "query": "pressure vessel design code",
      "request_body": {
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "messages": [
          {
            "role": "system",
            "content": "You are a search query rewriter for a multilingual document search system (Korean primary, English/mixed secondary).\n\nTask: given the user's search query, produce 3 search-friendly variants:\n- variant 0 = original query (verbatim, no change)\n- variant 1 = Korean rephrase with different phrasing (synonyms / 명사구 변형 / 조사 변형)\n- variant 2 = English translation OR cross-lingual rephrase (if Korean → English term; if English → Korean term)\n\nRules:\n- Each variant ≤ 80 chars.\n- Preserve domain-specific terms (ASME, KGS, 가스기사, 압력용기) verbatim — no abbreviation/transliteration.\n- Do not invent new entities.\n- Output STRICT JSON only (no prose, no markdown, no code fence): {\"variants\": [\"...\", \"...\", \"...\"]}"
          },
          {
            "role": "user",
            "content": "pressure vessel design code"
          }
        ],
        "temperature": 0.3,
        "max_tokens": 256
      },
      "response": {
        "id": "chatcmpl-580c1a94-9710-4cf0-931f-2a9661560ca5",
        "object": "chat.completion",
        "created": 1779574032,
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "choices": [
          {
            "index": 0,
            "finish_reason": "stop",
            "message": {
              "role": "assistant",
              "content": "{\"variants\": [\"pressure vessel design code\", \"압력용기 설계 규정\", \"ASME pressure vessel code\"]}",
              "reasoning": null,
              "tool_calls": null,
              "tool_call_id": null,
              "name": null
            },
            "logprobs": null
          }
        ],
        "usage": {
          "prompt_tokens": 208,
          "completion_tokens": 25,
          "total_tokens": 233,
          "prompt_tokens_details": {
            "cached_tokens": 0
          },
          "prompt_tps": 0.0,
          "generation_tps": 0.0,
          "peak_memory": 30.200421726
        }
      },
      "parsed_variants": [
        "pressure vessel design code",
        "압력용기 설계 규정",
        "ASME pressure vessel code"
      ]
    },
    "exam": {
      "query": "가스기사 필기 출제기준",
      "request_body": {
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "messages": [
          {
            "role": "system",
            "content": "You are a search query rewriter for a multilingual document search system (Korean primary, English/mixed secondary).\n\nTask: given the user's search query, produce 3 search-friendly variants:\n- variant 0 = original query (verbatim, no change)\n- variant 1 = Korean rephrase with different phrasing (synonyms / 명사구 변형 / 조사 변형)\n- variant 2 = English translation OR cross-lingual rephrase (if Korean → English term; if English → Korean term)\n\nRules:\n- Each variant ≤ 80 chars.\n- Preserve domain-specific terms (ASME, KGS, 가스기사, 압력용기) verbatim — no abbreviation/transliteration.\n- Do not invent new entities.\n- Output STRICT JSON only (no prose, no markdown, no code fence): {\"variants\": [\"...\", \"...\", \"...\"]}"
          },
          {
            "role": "user",
            "content": "가스기사 필기 출제기준"
          }
        ],
        "temperature": 0.3,
        "max_tokens": 256
      },
      "response": {
        "id": "chatcmpl-f793ee8b-73aa-4c31-b950-03f00603145e",
        "object": "chat.completion",
        "created": 1779574034,
        "model": "mlx-community/Qwen3.6-27B-8bit",
        "choices": [
          {
            "index": 0,
            "finish_reason": "stop",
            "message": {
              "role": "assistant",
              "content": "{\"variants\": [\"가스기사 필기 출제기준\", \"가스기사 필기시험 출제 범위\", \"Gas Engineer written exam syllabus\"]}",
              "reasoning": null,
              "tool_calls": null,
              "tool_call_id": null,
              "name": null
            },
            "logprobs": null
          }
        ],
        "usage": {
          "prompt_tokens": 211,
          "completion_tokens": 31,
          "total_tokens": 242,
          "prompt_tokens_details": {
            "cached_tokens": 0
          },
          "prompt_tps": 0.0,
          "generation_tps": 0.0,
          "peak_memory": 30.210776441
        }
      },
      "parsed_variants": [
        "가스기사 필기 출제기준",
        "가스기사 필기시험 출제 범위",
        "Gas Engineer written exam syllabus"
      ]
    }
  }
}
