{"id":5573,"date":"2024-09-30T12:38:00","date_gmt":"2024-09-30T03:38:00","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=5573"},"modified":"2024-09-30T12:38:00","modified_gmt":"2024-09-30T03:38:00","slug":"looker-explorer-assistant%e3%81%aeexplorer%e3%82%92%e8%a4%87%e6%95%b0%e9%81%b8%e6%8a%9e%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/looker-explorer-assistant%e3%81%aeexplorer%e3%82%92%e8%a4%87%e6%95%b0%e9%81%b8%e6%8a%9e%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Looker Explorer Assistant\u306eExplorer\u3092\u8907\u6570\u9078\u629e\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>Looker Explorer Assistant\u306f\u3001\u8907\u6570\u306eExplorer\u3092\u52b9\u7387\u7684\u306b\u64cd\u4f5c\u3057\u3001\u30c7\u30fc\u30bf\u306e\u63a2\u7d22\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Looker Explorer Assistant\u3067\u8907\u6570\u306eExplorer\u3092\u9078\u629e\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u6280\u8853\u7684\u306a\u30b9\u30c6\u30c3\u30d7\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306e\u67d4\u8edf\u6027\u304c\u5411\u4e0a\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30a4\u30f3\u30b5\u30a4\u30c8\u3092\u7d71\u5408\u7684\u306b\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">Looker\u306eExplorer\u6a5f\u80fd\u306f\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3092\u652f\u63f4\u3059\u308b\u91cd\u8981\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u901a\u5e38\u3001Explorer\u3067\u306f1\u3064\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001\u8907\u6570\u306eExplorer\u3092\u540c\u6642\u306b\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001\u7570\u306a\u308b\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u9593\u3067\u306e\u30c7\u30fc\u30bf\u6bd4\u8f03\u3084\u7d71\u5408\u5206\u6790\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u8a18\u4e8b\u3067\u306f\u3001Looker Explorer Assistant\u306e\u8a2d\u5b9a\u306b\u7126\u70b9\u3092\u5f53\u3066\u3001\u8907\u6570\u306eExplorer\u3092\u9078\u629e\u3057\u3066\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u5177\u4f53\u7684\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u8a2d\u5b9a\u624b\u9806\u3068\u3057\u3066\u3001JSON\u30c7\u30fc\u30bf\u3092BigQuery\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3001Looker\u30e2\u30c7\u30eb\u306b\u7d71\u5408\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u306b\u6319\u3052\u307e\u3059\u3002<\/span><\/p>\r\n<p><!-- notionvc: 62b67eae-b711-4928-b3bc-edb9f664a655 --><\/p>\n\n<h2>\u30b9\u30c6\u30c3\u30d7 1: \u4eee\u60f3\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u307e\u305a\u3001Cloud Shell\u74b0\u5883\u3067\u4eee\u60f3\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">1.Looker Explorer Assistant\u306e\u30b5\u30f3\u30d7\u30eb\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>cd looker-explore-assistant\/explore-assistant-examples<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\"><br \/>\r\n<!-- notionvc: a467e4a1-5c1e-4627-a0bf-cb1762b6c01d --><\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">2.\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<!-- notionvc: a818b838-af3d-4cef-88b7-d6c4d0d10cde --><\/span><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>python3 -m venv .venv\r\nsource .venv\/bin\/activate\r\npip3 install -r requirements.txt<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u4eee\u60f3\u74b0\u5883\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u5206\u96e2\u3057\u3001\u30af\u30ea\u30fc\u30f3\u306a\u958b\u767a\u74b0\u5883\u3092\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><!-- notionvc: c5f6ce56-8ace-4710-934e-f200c65d606a --><\/p>\r\n<p><!-- notionvc: d2603988-bbca-4a13-923b-7729d8336e2f --><\/p>\n\n<h2>\u30b9\u30c6\u30c3\u30d7 2: JSON\u30c7\u30fc\u30bf\u3092BigQuery\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u6b21\u306b\u3001\u30b5\u30f3\u30d7\u30eb\u306eJSON\u30c7\u30fc\u30bf\u3092BigQuery\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u3067\u306f\u3001\u8907\u6570\u306eExplorer\u3067\u4f7f\u7528\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3057\u3001Looker Explorer Assistant\u306b\u7d71\u5408\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">1.\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092BigQuery\u306e <code>explore_assistant_examples<\/code> \u30c6\u30fc\u30d6\u30eb\u306b\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>python load_examples.py \\\\\r\n--project_id project_name \\\\\r\n--explore_id thelook_japanese_bq:events \\\\\u2190\u3053\u3053\u3092\u8ffd\u52a0\u3059\u308b\u3002\r\n--table_id explore_assistant_examples \\\\\r\n--json_file examples.json<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">2.\u30ea\u30d5\u30a1\u30a4\u30f3\u30e1\u30f3\u30c8\u30c7\u30fc\u30bf\u3092 <span data-token-index=\"1\" class=\"notion-enable-hover\">explore_assistant_refinement_examples<\/span> \u30c6\u30fc\u30d6\u30eb\u306b\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/span><!-- notionvc: 6db62bd6-b7ab-4f2b-b7df-bc51e16abc5d --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>python load_examples.py \\\\\r\n--project_id project_name \\\\\r\n--explore_id thelook_japanese_bq:events \\\\\u2190\u3053\u3053\u3092\u8ffd\u52a0\u3059\u308b\u3002\r\n--table_id explore_assistant_refinement_examples \\\\\r\n--json_file refinement_examples.json<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u3053\u306e\u3088\u3046\u306b\u3001\u7570\u306a\u308b\u30c6\u30fc\u30d6\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306eExplorer\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u3092\u500b\u5225\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><!-- notionvc: e9a2ee73-81d6-4708-b521-7cc432fdf2fc --><\/p>\r\n<p><!-- notionvc: a0cbf83e-6b93-4876-b2f3-cd33e5511c4c --><\/p>\n\n<h2>\u30b9\u30c6\u30c3\u30d7 3: \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u306e\u30ed\u30fc\u30c9<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u6700\u5f8c\u306b\u3001\u8ffd\u52a0\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092 <span data-token-index=\"1\" class=\"notion-enable-hover\">explore_assistant_samples<\/span> \u30c6\u30fc\u30d6\u30eb\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u306f\u8907\u6570\u306eExplorer\u3067\u540c\u6642\u306b\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<!-- notionvc: 35c8b1e5-8a32-408b-857c-a7cdfb01206c --><\/span><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>python load_examples.py \\\\\r\n--project_id since-dev \\\\\r\n--explore_id thelook_japanese_bq:events \\\\\u2190\u3053\u3053\u3092\u8ffd\u52a0\u3059\u308b\u3002\r\n--table_id explore_assistant_samples \\\\\r\n--column_name samples \\\\\r\n--json_file samples.json<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">BigQuery\u306b\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<!-- notionvc: 4d7ae4e2-32e5-4cf1-9191-fd7f424a1111 --><\/span><\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00.png\" alt=\"\" width=\"1580\" height=\"530\" class=\"alignnone size-full wp-image-5574\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00.png 1580w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00-300x101.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00-1024x343.png 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00-768x258.png 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.12.00-1536x515.png 1536w\" sizes=\"(max-width: 1580px) 100vw, 1580px\" \/><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u3053\u306e\u624b\u9806\u3067\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306eExplorer\u3092\u540c\u6642\u306b\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\u3002JSON\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092BigQuery\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001Looker\u306eExplorer\u3067\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7d71\u5408\u7684\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u3053\u308c\u306b\u3088\u308a\u3001\u7570\u306a\u308b\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u9593\u3067\u306e\u30af\u30a8\u30ea\u3084\u5206\u6790\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u3088\u308a\u5305\u62ec\u7684\u306a\u30a4\u30f3\u30b5\u30a4\u30c8\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35.png\" alt=\"\" width=\"1748\" height=\"1426\" class=\"alignnone size-full wp-image-5575\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35.png 1748w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35-300x245.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35-1024x835.png 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35-768x627.png 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/09\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-09-24-17.13.35-1536x1253.png 1536w\" sizes=\"(max-width: 1748px) 100vw, 1748px\" \/><\/p>\r\n<p><!-- notionvc: b5ad4f59-2602-466d-bd3a-bffc8879269e --><\/p>\n\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">Looker Explorer Assistant\u3067\u8907\u6570\u306eExplorer\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001Looker\u306e\u30c7\u30fc\u30bf\u5206\u6790\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306e\u624b\u9806\u3067\u306f\u3001\u4eee\u60f3\u74b0\u5883\u3092\u5229\u7528\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3044\u3001BigQuery\u306b\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u901a\u3058\u3066\u3001Looker\u306e\u67d4\u8edf\u306a\u30c7\u30fc\u30bf\u5206\u6790\u6a5f\u80fd\u3092\u5f37\u5316\u3057\u3001\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u52b9\u7387\u7684\u306b\u6271\u3046\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/span><!-- notionvc: 7e3203f0-9acd-4f3f-86f6-51464b2c7e7d --><\/p>","protected":false},"excerpt":{"rendered":"<p>Looker Explorer Assistant\u306f\u3001\u8907\u6570\u306eExplorer\u3092\u52b9\u7387\u7684\u306b\u64cd\u4f5c\u3057\u3001\u30c7\u30fc\u30bf\u306e\u63a2\u7d22\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Looker Explorer Assistant\u3067\u8907\u6570\u306eExplor [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":5460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1246],"tags":[258,732,58,731,129],"class_list":["post-5573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-infrastructure","tag-bi","tag-explorer","tag-looker","tag-looker-explorer-assistant","tag-129"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/5573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=5573"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/5573\/revisions"}],"predecessor-version":[{"id":5621,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/5573\/revisions\/5621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/5460"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=5573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=5573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=5573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}