<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tranphuong on Medium]]></title>
        <description><![CDATA[Stories by Tranphuong on Medium]]></description>
        <link>https://medium.com/@tranphuong1123?source=rss-467de36bc212------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dW0yAivw5Lb144g3</url>
            <title>Stories by Tranphuong on Medium</title>
            <link>https://medium.com/@tranphuong1123?source=rss-467de36bc212------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:22:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tranphuong1123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Looker Explore Assistant and how it helps reduce bottlenecks]]></title>
            <link>https://medium.com/refined-and-refactored/introduction-14722ad8ec54?source=rss-467de36bc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/14722ad8ec54</guid>
            <category><![CDATA[joon-solutions]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[gen-ai-for-business]]></category>
            <dc:creator><![CDATA[Tranphuong]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 10:04:33 GMT</pubDate>
            <atom:updated>2024-06-26T09:00:37.105Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This blog is part of a series of blogs on the Looker Opensource GenAi Extensions. In this series, we will discuss the Why (value added) of these extensions to your organization’s data stack like in this blog. We also covered the How <a href="https://medium.com/refined-and-refactored/how-to-set-up-genai-x-looker-extension-under-15-minutes-explore-assistant-b1f918ed9c58">here</a> where we introduce the Step-by-step setup guide after our trials and errors with the newly released extension.</p><h3>What is the Explore Assistant?</h3><p>Recently rolled out as an open-source extension package of Looker, the Explore Assistant bridges the challenging gap that non-technical users often face when using Looker. Now, even without a technical background, users can directly ask the Explore Assistant for the information they need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_HqL2YKLWTzKdMgaE0KrPA.gif" /></figure><h3>Who is the Explore Assistant for?</h3><p>This Explore Assistant is for you if:</p><ul><li>You are a manager or executive who needs to access data and make data-driven decisions more efficiently but does not have the technical skills and is not familiar with Looker. For example, you often find yourself waiting for reports from the data team or struggling to extract insights from complex datasets, this extension can empower you to query data using natural language</li><li>You are a data manager who is facing a shortage of data analysts who can support other departments’ need for data timely and cannot provide Looker training to all business users. If you’re overwhelmed by requests for data from various departments, this tool can help bridge the gap by enabling non-technical users to perform their data exploration</li></ul><h3>How to use Explore Assistant?</h3><p>Below is a quick demonstration of how Explore Assistant could help your organization foster a more data-driven culture. If you are interested in finding out how to set up this extension, check out our other <a href="https://medium.com/refined-and-refactored/how-to-set-up-genai-x-looker-extension-under-15-minutes-explore-assistant-b1f918ed9c58">blog</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2Fa10d316747574eb6a4eede6e9dde9662&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2Fa10d316747574eb6a4eede6e9dde9662%3Fsid%3Def86b28b-d58d-4b0e-aa29-3d777511c0ea&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2Fa10d316747574eb6a4eede6e9dde9662-00001.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1920" height="1440" frameborder="0" scrolling="no"><a href="https://medium.com/media/8cb01a9441790bcdcfd9b738ffe7df51/href">https://medium.com/media/8cb01a9441790bcdcfd9b738ffe7df51/href</a></iframe><h3>How does Explore Assistant help benefit you?</h3><p>Imagine yourself as the manager of digital marketing and you would like to evaluate the performance of your social media platform campaigns which were rolled out last month, this is how Looker Explore Assistant can significantly enhance your data-driven decision-making process.</p><h4>1. Simplified Data Exploration</h4><p>The Looker Explore Assistant revolutionizes data interaction by translating plain language input into complex queries. This eliminates the need for users to have a deep understanding of LookML.</p><p>Now let’s get back to your digital marketing campaign. Typically, you would rely on your analytics team to pull data and provide insights. However, due to the lack of analysts, there isn’t anyone available to guide you. This is where the Looker Explore Assistant comes into play. Your team members, even if they have never used Looker before, can now directly ask the Explore Assistant, “Show me the sales performance for the last week by region,” and the Looker Explore Assistant translates this plain language input into a Look.</p><p>This capability allows your team to quickly access and explore the data, empowering the team to make informed decisions without waiting for technical support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJD_M2-mrnI1cQOTBExIVw.gif" /></figure><h4>2. Fine-Tuning with More Input Examples</h4><p>One of the most significant benefits of the Looker Explore Assistant is its ability to fine-tune your data analysis by incorporating more input examples. For example, during a recent campaign, you noticed varying engagement rates across different social media platforms. By inputting multiple examples related to these metrics, the Looker Explore Assistant becomes better at providing deeper insights into platform-specific performance.</p><h3>Data stack requirements</h3><p>This sounds amazing. However, for Looker Explore Assistant to work these are the requirements:</p><ol><li><strong>Google Cloud Platform</strong>: Your data stack should be on Google Cloud Platform. Specifically, your database needs to be stored in Big Query, and Looker is your primary BI tool</li><li><strong>Functional Explore</strong>: the Explore in use should be mature enough that it does not require frequent updates. The frequent updates would lead to frequent maintenance for the examples of input and output</li><li><strong>Consistent Naming Conventions</strong>: Your dataset should follow consistent naming conventions. This is essential for the language model to accurately understand and return insights.</li><li><strong>Example Inputs and Outputs</strong>: Provide a few examples of natural language inputs and corresponding outputs to serve as a foundation for the model.</li></ol><h3>What are the and 👍and 👎?</h3><h4>This tool is great at👍</h4><ul><li><strong>Replacing point-and-click data exploration with natural language: </strong>the Looker Explore Assistant will give your first-time Looker users a head start while getting familiar with Looker. They can simply ask questions and get the result.</li><li><strong>Basic prompts, sorting, filtering, period comparison, and pivoting:</strong> these require some basic Looker knowledge but the extension can handle the tasks accurately</li><li><strong>Adapting to your data update: </strong>by giving it a new example input, output, and refinement, the extension would be able to learn the new context and return your desired output. The great thing about extension is how accurate it could be just by being given a few examples, which surprised me.</li></ul><h4>What this tool still needs improvement on 👎</h4><ul><li><strong>Understanding visual cues:</strong> the Looker Explore Assistant still cannot be able to understand visual cues very well and the result Look would still need some manual adjustments. Hope this will be improved the the later releases</li><li><strong>Work on multiple explore: </strong>currently, the Looker Explore Assistant only works on one explore at a time and a completely new extension would need to be installed foreach explore</li><li><strong>Forecasting: </strong>is not in the scope of this extension</li><li><strong>Inconsistent result: </strong>when given the same prompt, the extension can return different fields for the result. This could be improved by giving more explicit examples input and output</li></ul><h3>Conclusion</h3><p>The Looker Explore Assistant is an open-source feature built to bridge the gap between data analytics and everyday business needs. Although there is still room for improvement, it is a great head start for your users to get used to Looker and save time for other complex tasks. For additional tools to enhance your data consumption, explore our great blogs on <a href="https://joonsolutions.atlassian.net/wiki/spaces/JTD/blog/2024/05/16/743505925/VertexAI+Actions+in+Looker+GenAI+How+to+set+up+and+first+impression">VertexAI Actions</a> and <a href="https://joonsolutions.atlassian.net/wiki/spaces/JTD/blog/2024/05/17/745406487/Looker+x+GenAI+Dashboard+summary+extension">Dashboard Summarization</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14722ad8ec54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/introduction-14722ad8ec54">Looker Explore Assistant and how it helps reduce bottlenecks</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up GenAI x Looker extension under 15 minutes | Explore Assistant]]></title>
            <link>https://medium.com/refined-and-refactored/how-to-set-up-genai-x-looker-extension-under-15-minutes-explore-assistant-b1f918ed9c58?source=rss-467de36bc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1f918ed9c58</guid>
            <category><![CDATA[looker-extension]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[joon-solution]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Tranphuong]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 05:30:12 GMT</pubDate>
            <atom:updated>2024-06-20T06:20:37.446Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This blog is part of a series of blogs on the Looker Opensource GenAi Extensions. In this series, we will have How-to blogs — like this one — which cover Step-by-step setup guides after our trials and errors with the newly released extension packages, in some other posts we will cover the Why (value added) of these extensions to your organization’s data stack. The resources for this guide are the Google released <a href="https://www.google.com/url?q=https://github.com/looker-open-source/looker-explore-assistant&amp;sa=D&amp;source=editors&amp;ust=1718806166168184&amp;usg=AOvVaw1OORzb2w17Fd7MqLnLqnAw">github repo</a> , the documentation of various technologies, and my fellow superstar Joon Engineers. The goal of this guide is to:</p><ul><li>Give you a basic understanding of what the Explore Assistant is.</li><li>Give you a detailed walkthrough on how to deploy this in your own Looker instance with an emphasis on simplicity, maintainability, and scalability.</li></ul><p>As this is a very detailed deployment guide it made sense to explore various Use Cases in a different blog.</p><h3>What is the Explore Assistant?</h3><p>The Explore Assistant allows users to generate Looks using natural language inputs. Simply put, anyone can generate reports by chatting with your Enterprise Dataplatform. Under the hood, the Explore assistant utilizes the generative capabilities of an LLM and all the context Lookers Semantic model to power up the self-service capabilities.</p><p>What is powerful is that because of the semantic model in LookML, there is no need for the LLM to read actual data, it will generate the Explore result on metadata only and pass it on to the user with all established access and security protocols in place. Now, users are empowered to ask questions and extract answers directly from the database in a governed, secured, and scalable way.</p><h3>What does Explore Assistant do?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2Fa10d316747574eb6a4eede6e9dde9662&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2Fa10d316747574eb6a4eede6e9dde9662%3Fsid%3D3a6e5151-29d9-4e71-978b-9da256bd422c&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2Fa10d316747574eb6a4eede6e9dde9662-00001.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1920" height="1440" frameborder="0" scrolling="no"><a href="https://medium.com/media/912288d34b02ea8598eb183710c588b2/href">https://medium.com/media/912288d34b02ea8598eb183710c588b2/href</a></iframe><ul><li>Customizable for organizational use cases</li><li>Saves queries in the browser’s local storage and quick access to previous queries</li><li>Insight Summarization</li><li>Open-source, use any LLM model of choice</li><li>Uses the business context already available in LookML</li><li>Applies all security settings as defined in Looker Admin Portal</li></ul><h3>What Explore Assistant does under the hood?</h3><p>This extension is built to help your average non-SQL business users communicate with Looker using natural language to generate visuals by themselves. Under the hood, this extension uses Terraform to enable necessary APIs, grant permissions on assets, and create BigQuery dataset that stores LLM’s examples for your specific Looker Explore. As developers, you will need to decide on which explore for your business use case, modify examples input and output if needed. Then, you set up the Looker extension frontend using npm and Looker project connection to deploy it via Looker platform.</p><p>Here is a graph which show the bird-eye view for Looker Explore Assistant setup:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/0*Yto4041_d2zxcEFj" /></figure><h3>Prerequisite Knowledge</h3><ul><li>Looker extension</li><li>Terraform</li><li>Cloud Shell</li><li>Vertex AI &amp; Bigquery</li><li>GCP IAM</li></ul><h3>Setup Instructions</h3><p>Open Cloud shell by clicking on the Activate Cloud shell on the top right of your monitor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*f4PZpU_K_mDOIiiK" /></figure><p>Download a copy of this repository to your machine:</p><blockquote>git clone <a href="https://github.com/looker-open-source/looker-explore-assistant.git">https://github.com/looker-open-source/looker-explore-assistant.git</a></blockquote><p>Click on Open Editor and navigate to the repository you have just downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*vDKI1Ov-jY4s0uqZ" /></figure><p>After the step above, your screen should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*pDjrCqOyJcA6ys3b" /></figure><h4>Repository structure</h4><blockquote>looker-explore-assistant<br>├── explore-assistant-backend<br>│ └── terraform<br>├── explore-assistant-examples<br>│ ├── examples.json<br>│ ├── load_examples.py<br>│ ├── README.md<br>│ ├── refinement_examples.json<br>│ └── requirements.txt<br>├── explore-assistant-extension<br>│ ├── src<br>│ ├── babel.config.js<br>│ ├── manifest.lkml<br>│ ├── package-lock.json<br>│ ├── package.json<br>│ ├── README.md<br>│ ├── tsconfig.json<br>│ ├── webpack.config.js<br>│ ├── webpack.develop.js<br>│ └── webpack.prod.js<br>└── README.md</blockquote><p>The repository contains three main folders we will be using in our setup:</p><ol><li>A folder named explore-assistant-backend: This is to set up the backend of the extension</li></ol><ul><li>terraform: the folder to trigger the service deployed on BigQuery</li></ul><p>2. A folder named explore-assistant-examples: This is the examples and refinement samples we will upload to BigQuery to fine-tune the extension</p><ul><li>.json files: contains the examples and refinements</li><li>.py files: the code to upload the examples and refinements to BigQuery</li></ul><p>3. A folder named explore-assistant-extension: This is to run the frontend of the extension on Nodejs</p><h4>Backend Setup</h4><p><strong>I. Granting Permission to your account</strong></p><p>This is a crucial part for the extension to run smoothly and keep the permission at minimum.</p><p>For this backend setup, your account needs the following roles:</p><ol><li><em>BigQuery Connection Admin</em></li><li><em>Service Account Admin</em></li><li><em>Service Account Token Creator</em></li><li><em>Storage Admin</em></li><li><em>Service Usage Consumer</em></li><li><em>Secret Manager Admin</em></li></ol><p><strong>II. Step-by-step setup</strong></p><p>This Terraform configuration sets up a backend for the Looker Explore Assistant on GCP, using the Gemini Pro model from Vertex AI. There are 2 approaches to setting up the extension, BigQuery and Cloudrun Backend, in this post I will guide you through the BigQuery approach, the <a href="https://www.google.com/url?q=https://github.com/looker-open-source/looker-explore-assistant/tree/main/explore-assistant-backend&amp;sa=D&amp;source=editors&amp;ust=1718806166191423&amp;usg=AOvVaw12dDa1jcv-tvIw1IsWXUxL">CloudRun approach</a> allows for more customization — not covered in this blog and is more advanced.</p><p><strong><em>Step 1</em></strong></p><p>In your Cloud Shell, open a new terminal by Navigation bar &gt; Terminal &gt; New Terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/0*P_55kKkQdnJX7s8W" /></figure><p>In your terminal, navigate to thelooker-explore-assistant folder:</p><blockquote>cd looker-explore-assistant</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*lk54ivJDQoO7fJZ9" /></figure><p>Then run this command:</p><blockquote>openssl rand -base64 32 &gt; .vertex_cf_auth_token</blockquote><p>From your terminal, navigate to the backend folder:</p><blockquote>cd explore-assistant-backend/terraform</blockquote><p>The above command will take you to the explore-assistant-backend folder for the backend setup:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*okpAhWldP5ifl7DqBZseYw.png" /></figure><p><strong><em>Step 2</em></strong></p><ul><li>Setting variables in <em>variables.tfvars</em>:</li></ul><p>The purpose of this step is to specify the variables in variables.tfvars which will then be used by Terraform to manage infrastructure. You can refer to the documentation for Terraform variables . Create a new variables.tf vars in terraform folder with the following content:</p><blockquote>deployment_region = “asia-southeast1” (repleace with your gcp_deployment_region)<br>project_id = “joon-sandbox” (replace with your project_id)<br>use_bigquery_backend=1<br>use_cloud_function_backend=0</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*7TiuIrQ1b_t20g-x" /></figure><ul><li>Running Terraform by entering these commands into your Cloud Shell terminal</li></ul><blockquote>export TF_VAR_project_id= “joon-sandbox” (replace with your project_id)<br>export TF_VAR_use_bigquery_backend=1<br>export TF_VAR_use_cloud_function_backend=0<br>terraform init<br>terraform plan<br>terraform apply</blockquote><p>When prompted with Enter a value (yes/no) , enter <em>yes</em></p><p>When prompted with GCP Project ID, fill in your project ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*GqzX9DLVwxaf6-on" /></figure><p>When prompted with Authorize window, do authorize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*ZIgEaI5v02Y8Cb4e" /></figure><p><strong><em>Step 3</em></strong></p><p>Check the <a href="https://www.google.com/url?q=https://cloud.google.com/iam/docs/service-account-overview&amp;sa=D&amp;source=editors&amp;ust=1718806166202279&amp;usg=AOvVaw04KG7TckyJ0V-oYxg9nSSO">Service Account</a> that has been created by opening the file <em>terraform.tfstate</em> in the <em>terraform</em> folder. This file contains the infrastructure that Terraform manages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/0*e-cGK_Fw8v--90Of" /></figure><p>Scroll down to around line 33, look for the Service Account with pattern <em>looker-explore-assistant-sa@</em>. Write down this service account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwxR_5qYNrfPLJflRCF2fQ.png" /></figure><p>Next, you need to create a <a href="https://cloud.google.com/iam/docs/service-account-creds#key-types">key</a> for this service account to authenticate it. From your GCP interface, go to the Navigation menu on the left hand, then scroll down to <em>IAM &amp; Admin</em> &gt; <em>Service Accounts</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/0*Vr2LQxjmXycUpi38" /></figure><p>In the list of the service accounts belonging to your project, find the service account you wrote down earlier. You will find that it has no key yet, click on it then switch to tab KEYS, select Add key &gt; Create new key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*ay40tJN7Qjzb6zrQl-Mdpg.png" /></figure><p>Pick JSON for key type and save that key. We will use the key later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/0*tlInXC7TdCcaZTIP" /></figure><p><strong><em>Step 4</em></strong></p><p>This step is to check and make sure the necessary resources are created. Firstly, switch to the BigQuery dataset for the examples to make sure the LLM model has been created. If that is the case then you can skip this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*VDRPn-BHUGPiny_H" /></figure><p>If that is not the case then switch back to the Cloud Shell, and navigate to the <em>terraform.tfstate</em> file in the <em>terraform</em> folder. Find the command that creates the model <em>explore_assistant_llm</em> and run it directly in Big Query (it should be around line 465):</p><p>Once the query has been run, you should be able to see the model in your dataset like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*t9BF9MgX5rMfZd4b" /></figure><p><strong><em>Created Resources:</em></strong></p><ul><li>A Google BigQuery dataset and table for storing examples</li><li>A Google BigQuery connection and a Gemini Pro model</li></ul><p><a href="https://github.com/looker-open-source/looker-explore-assistant/blob/main/explore-assistant-backend/README.md"><strong><em>Reference</em></strong></a></p><h4>Input and Output Examples Setup</h4><p>This step is to generate and upload JSON examples to Big Query. The example’s purpose is to fine-tune the model and return better results. It assumes that you already have a Looker instance available with Looker models and explores configured.</p><p>In your Cloud shell, from the root folder, navigate to the example folder:</p><blockquote>cd looker-explore-assistant/explore-assistant-examples</blockquote><p>Start with installing all dependencies using a virtual environment:</p><blockquote>python3 -m venv .venv<br>source .venv/bin/activate<br>cd ./explore-assistant-examples<br>pip3 install -r requirements.txt</blockquote><p>Your terminal should look like thipython3 -m venv .venv<br>source .venv/bin/activate<br>cd ./explore-assistant-examples<br>pip3 install -r requirements.txts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*1fj7A2eRveRWHiv6" /></figure><p>Next, upload the examples using these two commands in Cloud Shell terminal:</p><blockquote>python load_examples.py — project_id joon-sandbox (fill in your project id here) — explore_id looker_genai_project:payment (fill in your explore id here) — table_id explore_assistant_examples — json_file examples.json</blockquote><blockquote>python load_examples.py — project_id joon-sandbox (fill in your project id here) — explore_id looker_genai_project:payment (fill in your explore id here) — table_id explore_assistant_refinement_examples — json_file refinement_examples.json</blockquote><p>The script accepts several command line flags to specify the details required for loading data into Big Query:</p><ul><li><em>project_id</em> : Required. The GCP project you are using where your BigQuery dataset resides</li><li><em>explore_id </em>: Required. This is the explore_id for the explore you are going to use and explore insights with the extension. Insert using format: <em>looker_project_id::explore_id</em></li></ul><p>After running the script, the result should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*rhU-_qTRpkIQ3GL6" /></figure><p>Now that you have finally added the examples of input and output for the extension, let’s move on to the final setup.</p><p><a href="https://github.com/looker-open-source/looker-explore-assistant/tree/main/explore-assistant-examples"><strong><em>Reference</em></strong></a></p><h4>Frontend Setup</h4><p><strong>I. Granting Permission to your account</strong></p><p>For this frontend setup, your account needs the following role:</p><ul><li>Looker Admin</li></ul><p><strong>II. Step-by-step setup</strong></p><p>This stage is to deploy the Explore Assistant with the Big Query backend to generate the Looker Explore URLs based on Natural Language. It assumes that you already have a Looker instance available with Looker models and explores configured.</p><p><strong><em>Step 1</em></strong></p><ul><li>In Looker, create a new BigQuery connection that will allow you to get the examples you uploaded in from Big Query in the previous section. You will use that connection name as input in step 2 below. First, go to Looker Navigation &gt; Admin &gt; Connections then click on Add Connection:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*eHC1q-hnOSoT-4IT" /></figure><ul><li>Input as follows, replace Name with your desired name for the connection and <em>joon-sandbox </em>with your <em>project id</em>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*Np5wfOmyj2T7GfOG6Gd8wQ.png" /></figure><p>After that, upload the json key file created in the <em>Backend setup | Step 3</em> to the connection via the button Upload file and test to make sure the connection is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/0*u-f9rw9pbEpfs06g" /></figure><p><strong><em>Step 2</em></strong></p><ul><li>In your Cloud shell, navigate to the extension folder:</li></ul><blockquote>cd looker-explore-assistant/explore-assistant-extension</blockquote><ul><li>Create new .env file the explore-assistant-extension folder with the following contents, this file defines the extension’s variables during deployment:</li></ul><blockquote>LOOKER_MODEL= test_phuong_genai_tmp1 (replace with your Looker project’s model)</blockquote><blockquote>LOOKER_EXPLORE = payment (replace with your Looker project’s explore)</blockquote><blockquote>VERTEX_BIGQUERY_LOOKER_CONNECTION_NAME= phuong_test_genai_conn2 (replace with the connection you created in )</blockquote><blockquote>VERTEX_BIGQUERY_MODEL_ID= explore_assistant.explore_assistant_llm (this is the LLM you created in this )</blockquote><p>In your Cloud shell, run this command</p><blockquote>npm install</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*opPo9ZxNXpnVvfrf" /></figure><ul><li>Next, we will use npm run build to create a <em>bundle.js</em> file which is then used to deploy the extension. There is another option which is <em>npm run start</em> but we strongly recommend the first approach for ease of use:</li></ul><blockquote>npm run build</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*VXf5alWSnCpzxcFo" /></figure><p><strong><em>Step 3</em></strong></p><ul><li>You will notice a new folder <em>dist</em> has been created in the folder <em>explore-assistant-extension</em>. Drag and drop the <em>bundle.js</em> file from <em>dist</em> folder in your Cloud Shell Editor to your Looker project folder (do not forget to toggle on the Development mode in Looker).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*xHc064isuJYWEW4F" /></figure><ul><li>Then in the same Looker project folder, create a <em>manifest.lkml</em> with this content:</li></ul><blockquote>application: explore_assistant {<br> label: “Explore Assistant”<br> # url: “<a href="https://localhost:8080/bundle.js">https://localhost:8080/bundle.js</a>&quot;<br> file: “bundle.js”<br> entitlements: {<br> core_api_methods: [“lookml_model_explore”,”create_sql_query”,”run_sql_query”,”run_query”,”create_query”]<br> navigation: yes<br> use_embeds: yes<br> use_iframes: yes<br> new_window: yes<br> new_window_external_urls: [“<a href="https://developers.generativeai.google/*">https://developers.generativeai.google/*</a>&quot;]<br> local_storage: yes<br> # external_api_urls: [“cloud function url”]<br> }<br>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/0*TU-Q9k5eqDXc3lGK" /></figure><ul><li>Validate your LookML, commit your changes, and deploy them to production</li><li>Exit development mode on Looker UI to verify the extension</li><li>Finally, navigate to the Extension on the left Navigation Tab to find the Explore Assistant extension ready to use. In case you do not have Extension settings enabled, you can refer to this <a href="https://www.google.com/url?q=https://developers.looker.com/extensions/overview/&amp;sa=D&amp;source=editors&amp;ust=1718806166233683&amp;usg=AOvVaw1eBNFA-LnFg-53Ymcx9rCW">documentation</a></li></ul><p><strong><em>Note:</em></strong> In case the extension do not work from on your Looker., you can debug the error by your browser. In your browser, right click to <em>Inspect &gt; Network</em> tab, then re-run the extension to check and resolve the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*vYgyetPPtV4-0wRy" /></figure><h3>Conclusion</h3><p>Congratulations, now you can experiment with the extension just like in the video I shared at the beginning of the blog! There can be a few adjustments to make in the Setup steps, which will affect your output and user experience and that’s where some effort is needed. Currently, this extension only works for one Explore at a time but that is expected to change in the future. If you want to try out this feature in your Looker instance, feel free to reach out to <a href="https://info.joonsolutions.com/looker-genai-explore-assistant">Joon Solutions</a> for help and you can browse to understand more about applicable use cases in business. For additional tools to enhance your data consumption, explore our great blogs on Vertex AI and Dashboard Summarization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1f918ed9c58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/how-to-set-up-genai-x-looker-extension-under-15-minutes-explore-assistant-b1f918ed9c58">How to set up GenAI x Looker extension under 15 minutes | Explore Assistant</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>