<?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 Alexandre Schneider on Medium]]></title>
        <description><![CDATA[Stories by Alexandre Schneider on Medium]]></description>
        <link>https://medium.com/@alex_55832?source=rss-842f8b08a248------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-fZaxnYvecS1iNlY</url>
            <title>Stories by Alexandre Schneider on Medium</title>
            <link>https://medium.com/@alex_55832?source=rss-842f8b08a248------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:24:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alex_55832/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[AI : How to literally chat with your cloud data]]></title>
            <link>https://medium.com/@alex_55832/ai-how-to-literally-chat-with-your-cloud-data-6dd7d5dfbe99?source=rss-842f8b08a248------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dd7d5dfbe99</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[askr]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Alexandre Schneider]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 13:07:17 GMT</pubDate>
            <atom:updated>2023-06-20T13:07:17.088Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI : How to literally chat with your cloud data</h3><h4>Let’s configure askR.ai to be connected to a cloud database and to answer your business questions on real time data.</h4><p>Artificial intelligence is quite a buzz word today thanks to products like ChatGPT, BART or Bloom. In particular, generative AI gives impressive results and becomes really helpful in our professional life.</p><p>All these success don’t have to hide an aspect of this technology: It generates text or image from its training data only. This is fine when you ask the high of the Everest or the recipe of lasagna, but is real business context, how to include your own real time data, such as your sales figures? And how to do it, without security breach and keeping a high standard data privacy.</p><p>Here comes askR.ai, the first data assistant. The principle is a bit different that Generative AI, as askR.ai “understands” the question, its context (including previous questions) and transform it in calls to data sources including SQL databases, of course, but also APIs such as OData or custom APIs.</p><p>The purpose of this tutorial is to show how to start chatting with real time data in 3 steps.</p><p><strong>Very important information: </strong>No data have been moved, transferred or copied. AskR.ai doesn’t need to be trained on the data itself and only needs the business vocabulary. That gives you a high level of data protection and security, which is very important. No one wants his data used to train another company’s (or competitor’s) model.</p><h3>1. First things first: the database connection</h3><p>In this tutorial, we are going to use a snowflake free trial database. It’s an easy way to start. I’m not pretending that Snowflake is a better cloud database. That’s not the point here. AskR.ai being able to connect to many other database, the choice is up to you.</p><p>On the askR interface, click on the “Connections” in the sidebar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*8ZCQcphJZELTuWCA" /><figcaption>Menu of the askR.ai administration console</figcaption></figure><p>Then click on the “ + Add” button on the top right corner :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*6daoAmdaX0AFKwBr" /><figcaption>Add button on the top right corner</figcaption></figure><p>We will now create a new connection to your Snowflake account:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4zqmLJ-1eru8RJJr" /></figure><p>Simply give your connection an English description (French is not mandatory).</p><p>We will call it “Snowflake” in our example (not very original, I admit)</p><p>Just below, it should look like that or similar :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lhNm7brQBGmPRT4_" /></figure><p>You now want to select the “Snowflake” database type in the “type” selector. As previously said, there’s multiple other options for those who prefer other vendors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NmlEMqPgJqvXsies" /></figure><p>You then have to specify your Account ID in ‘Account’, the Database name in ‘Database’, your username in ‘User’ (the username you use to log in the Snowflake interface) and your ‘Password’ (the password you use to log in the Snowflake interface):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SKRP245JWUxYWyVR" /></figure><p>Tip: On the Snowflake interface, here is how you can find your database’s name:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C-XnhQAlf0agJfD0" /><figcaption>Snowflake admin view</figcaption></figure><p>You don’t need to modify the other settings, already pre-filled. Go back to the top of the page and click on “Test” button. If it’s green, it’s all good. Then you simply have to save your new connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MGGyD8D24zC5Ewss" /><figcaption>Success message when clicking on “Test” button.</figcaption></figure><h3>2. Define the dataset (the bot’s playground)</h3><p>In askR.ai terminology, a dataset is a data perimeter that you give the bot access to. This also a place where you can add your business vocabulary to help askR.ai to better understand your questions.</p><p>The bot has 3 sources of vocabulary to use for training itself:</p><ul><li>General expressions: we have provided theses words as a starting point.</li><li>Vocabulary from your data. For example, you have a column containing your products labels. This product list is a direct source of vocabulary for the bot. No work for you in this space, as it automatically grab these new words.</li><li>Additional synonyms and acronyms.</li></ul><p>To create, a dataset</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*ykI5rbTB5ASjen2r" /></figure><p>Then click on “Add” button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cVBIS8gtG0RAiXaq" /></figure><p>Enter a description for your dataset, select the connection, enter the table name and click on “Analyse”. This action will query the database and get the column list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UFG47d6bzcj4iSIF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ERPUQLn9WROFuaWT" /></figure><p>In this example, we are to use a demo table named “ORDERS”. It has a few columns but it will be a good start. Each time we change something in the table structure or even use another table, we will need to refresh this analysis, to take into account the new columns.</p><p>In Snowflake admin view this table is shown like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NxyusRtxe0i7JHaf" /></figure><p>At this stage, we have a list of columns (displayed vertically) in our dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KuVHvmp0ngzRGHm_fJ4JA.png" /></figure><p>The coloured dots indicate the bot level of understanding for each column and its content. As you can easily guess, the greener the better.</p><p>Now begin the “hard work”: describing each of them and putting the right vocabulary that will help the bot to understand your data. If your data contain general expression and words, this task is useless. But in real life, if your product is named “XB028c”, we can’t expect the bot understands this code correspond to a “bluetooth speaker 15W”. This example is a bit extreme but it helps to understand why we need to add vocabulary.</p><p>The first vocabulary comes from the column description. In the majority of databases, we can’t expect to have a column technical name corresponding to human readable description. So let’s start by naming properly the column:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgDb6RoIBWm7uI_Jg8YWPQ.png" /></figure><p>Then we can add vocabulary template on each column. For instance, we know that “O_TOTALPRICE” column correspond to the sales. It’s easy to indicate to the bot that column correspond to the sales vocabulary template. It’s not mandatory to do so, but it really helps to describe the dataset in a quick way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Bh4G4CTGEJ26sRuP3xUrg.png" /><figcaption>Vocabulary column template</figcaption></figure><p>We can go further adding additional words and synonyms, but that should be enough for the bot semantic engine. Just putting the right description and applying the corresponding templates, askR.ai should be able to answer to our questions.</p><h3>3. Stop doing, start chatting !</h3><p>Hold on. Before asking your first question on this first dataset, you need to create a access point, an API Key in askR.ai terminology.</p><p>This API Key will help you to generate an URL that you can use to chat with the bot. This URL must be protected with an authentication system, generally called a SSO (Single sign-on system).</p><p>Security first, let’s create an “Authentication”, in other words, let’s configure askR.ai to be connected to your preferred SSO system. For the record, it is compliant with major platform, such as Azure Active Directory, AWS Cognito, Google IAM, Okta and any OAuth open id directory.</p><p>Here is the configuration that we use with Google cloud IAM. You can obviously use your own. In OAuth world, the most important parameters being the clientID, the client secret and the endpoint URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rlszx3XWQyTz83ueqC8PIw.png" /></figure><p>Once the SSO configured, we have to create the API Key. Go to the menu and select “API Key”, then click on “Add”. Add your short description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LQh3WM_rW2rXPSiu" /></figure><p>In “dataset” section, select the one we have just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qD08zcYwet8-0QCJEGSrNw.png" /></figure><p>In security section, select the SSO configuration (“Authentication”) that we have previously configured.</p><p>There’s multiple other options in API Key screen, but to make it simple, we let them by default.</p><p>For information, an API Key handles the behaviour of the bot ( suggestions, word completion, answer sharing etc…), the web interface look and feel and the connection to IM (Instant Messaging) systems such as Microsoft Teams, Slack, Webex Teams, Workplace, Google Chat.</p><p>Once you have clicked on “Save” you’ll b e ready to chat with the bot connected to your real time data.</p><h3>4. Finally, I can chat with my new assistant</h3><p>In the API Key list and in the corresponding line, click on the right icon. That will copy the access point URL in your clipboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*R0hUwLeUsOAzS8x-z7FJDQ.png" /></figure><p>Then you simply have to paste it in your browser, login with your SSO credentials and let the askR.ai interface appearing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0muByDAU2v1XKDpQ" /><figcaption>askR.ai web interface</figcaption></figure><p>I asked my first question :</p><p><strong>“Show me the turnover by order status”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yWDR1Tslu_or_xZS34MtLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ep15qcDwdIohPhIGqibmYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*Kriiw9zISU76nSYj8WAysA.png" /></figure><p>That’s working fine, and quite addictive. You can obviously keep asking questions to the bot endlessly, but it’s also interesting to see how it works behind the scene. Indeed, being explainable is one of the most important challenge for AI in business world. Our bot must show us how it does understand the questions.</p><h3>5. Show me how you work</h3><p>In the admin view of askR.ai, you can find the “answers” entry that lists every single question users asked. You have the question date, the channel (web interface, Microsoft Teams, Google chat etc..), the question itself, the user email, response time and status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i2WMq3aqrkV-cvfmO_OISg.png" /></figure><p>Simply click on the question you want to analyse and the following screen appears. There’s a lot to says about all the useful information you can find on this. Let’s focus on the 3 main ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLjvQNnJlOfCbstfaY-lBQ.png" /></figure><p>At the top, you can see the question (or the questions list if askR.ai has understood you were referring to a previous one) and its translation into QueryElements. These elements are not yet SQL statements or API calls but this is a powerful set of objects that can drive any kind of database access regardless the underlying technology.</p><p>At the bottom, you have the sentence parsed and processed by the three layers of askR.ai:</p><ul><li>NLP layer: an engine that chunk and make part of speech tagging.</li><li>Identification layer: a very powerful NER (Named entity recognition) engine based on 3 algorithms (search, semantic and phonetic). The semantic is based on pre-trained transformer that is automatically fine tuned on the dataset vocabulary.</li><li>Classifier: a multi-layered perceptron model that indicates the usage of each token. This step is very important and takes into account the outputs of previous engines.</li></ul><h3>Conclusion</h3><p>Being able to literally chat with your data is quite tricky even if you use the latest language processing models. If you care about data privacy, it’s a real challenge.</p><p>With askR.ai, we find a way to generate a bot that “understand” question and then query the datasource, without being trained on the data itself. Our unique architecture based on multiples AI layers allows you to have a bot that can reach non technical business users, and solve the last mile data delivery problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dd7d5dfbe99" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>