{"id":1295,"date":"2021-12-02T08:29:38","date_gmt":"2021-12-02T08:29:38","guid":{"rendered":"https:\/\/salarydistribution.com\/machine-learning\/2021\/12\/02\/continuously-improve-search-application-effectiveness-with-amazon-kendra-analytics-dashboard\/"},"modified":"2021-12-02T08:29:38","modified_gmt":"2021-12-02T08:29:38","slug":"continuously-improve-search-application-effectiveness-with-amazon-kendra-analytics-dashboard","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2021\/12\/02\/continuously-improve-search-application-effectiveness-with-amazon-kendra-analytics-dashboard\/","title":{"rendered":"Continuously improve search application effectiveness with Amazon Kendra Analytics Dashboard"},"content":{"rendered":"<div id=\"\">\n<p>Unstructured data belonging to enterprises continues to grow, making it a challenge for customers and employees to get the information they need. <a href=\"https:\/\/aws.amazon.com\/kendra\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon Kendra<\/a> is a highly accurate intelligent search service powered by machine learning (ML). It helps you easily find the content you\u2019re looking for, even when it\u2019s scattered across multiple locations and content repositories.<\/p>\n<p>Amazon Kendra provides mechanisms such as relevance tuning, filtering, and submitting feedback for incremental learning to improve the effectiveness of the search solution based on specific use cases. As the data, users, and user expectations evolve, there is a need to continuously measure and recalibrate the search effectiveness, by adjusting the search configuration.<\/p>\n<p>Amazon Kendra analytics provides a snapshot of how your users interact with your Amazon Kendra-powered search application in the form of key metrics. You can view the analytics data in a visual dashboard on the Amazon Kendra console or via Application Programming Interface (API) or using the <a href=\"https:\/\/aws.amazon.com\/cli\/\" target=\"_blank\" rel=\"noopener noreferrer\">AWS Command Line Interface<\/a> (AWS CLI). These metrics enable administrators and content creators to better understand the ease of finding relevant information, the quality of the search results, gaps in the content, and the role of instant answers in providing answers to a user\u2019s questions.<\/p>\n<p>This post illustrates how you can dive deep into search trends and user behavior to identify insights and bring clarity to potential areas of improvement and the specific actions to take.<\/p>\n<h2>Overview of the Amazon Kendra analytics dashboard<\/h2>\n<p>Let\u2019s start with reviewing the Search Analytics Dashboard of the Amazon Kendra index we use during this post. To view the Amazon Kendra analytics dashboard, open the Amazon Kendra management console, choose your index, and then choose Analytics in the navigation pane.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31299\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/1-6961.jpg\" alt=\"\" width=\"800\" height=\"615\"><\/p>\n<p>Just by looking at the top, there is a trend of an increasing number of queries, implying an increase in application adoption. There is little change since the last period in the clickthrough rate, zero click rate, zero search result rate, and the instant answer rate, signifying that the new queries and potentially new users\u2019 usage pattern is consistent with that of the previous period.<\/p>\n<p>Let\u2019s look at the other macro trend charts available on the dashboard (see the following screenshots).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31300\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/2-6961.jpg\" alt=\"\" width=\"800\" height=\"563\"><\/p>\n<p>All the charts show a flat trend, meaning that the usage pattern is steady.<\/p>\n<p>The clickthrough rate is at single digits with a slight downward trend. This either means that the users are finding the information through instant answers, FAQs, or document excerpts, or this could indicate that the results are totally uninteresting to the users.<\/p>\n<p>The top zero click queries hover a little below 10%, which also means that the users are finding the information through instant answers, FAQs, or document excerpts, or the results are uninteresting to the users.<\/p>\n<p>The instant answer rate is above 90%, which means that the overall quality of content is good and contains the information users are looking for.<\/p>\n<p>The top zero result queries is lower than 5%, which is a good indicator that for the most part the users are finding the information they\u2019re looking for.<\/p>\n<p>Now let\u2019s look at the drill-down charts starting with top queries, sorted high to low by Count.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31301\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/3-6961.jpg\" alt=\"\" width=\"800\" height=\"419\"><\/p>\n<p>The most important insight here is that the top queried items matter most to the users. The organization can use this information to potentially change their business priorities to focus more on these items of interest. It can also be an indicator to add more content on these topics.<\/p>\n<p>When looking at the top queries sorted low to high on the <strong>Instant answer (%)<\/strong> column, we get the following results.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31302\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/4-6961.jpg\" alt=\"\" width=\"800\" height=\"266\"><\/p>\n<p>This provides insights into the items that the users are looking for but can\u2019t find the answers. Depending on the query count, this may be a good indicator to add more content with specific information that answers the queries.<\/p>\n<p>Now let\u2019s look at the top clicked documents, sorted on the <strong>Count<\/strong> column from high to low.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31303\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/5-6961.jpg\" alt=\"\" width=\"800\" height=\"346\"><\/p>\n<p>These items indicate topics of interest to the users, not just for answers but also for detailed information. It could be an indicator to possibly add more content on these topics, but might be a business indicator to arrange training on these topics.<\/p>\n<p>Let\u2019s continue with the top zero click queries, sorted on <strong>0 click count<\/strong> high to low.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31304\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/6-6961.jpg\" alt=\"\" width=\"800\" height=\"351\"><\/p>\n<p>This shows items of high interest that coincide with a high instant answer rate, implying that the users quickly find the answers through instance answers.<\/p>\n<p>Now let\u2019s look at the same chart sorted on <strong>Instant answer rate<\/strong>, low to high.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31305\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/7-6961.jpg\" alt=\"\" width=\"800\" height=\"330\"><\/p>\n<p>This indicates that there is lack of information on these topics that are of interest to users, and that the content owners need to add more content on these topics.<\/p>\n<p>Now let\u2019s look at the top zero result queries, sorted on the <strong>0 result count<\/strong> column from high to low.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31306\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2021\/11\/26\/8-6961.jpg\" alt=\"\" width=\"800\" height=\"302\"><\/p>\n<p>This is an indicator of a gap in content, because the users are looking for information that can\u2019t be found. The content owners can fix this by adding content on these topics.<\/p>\n<h2>Using AWS CLI and API to get the Amazon Kendra analytics dashboard<\/h2>\n<p>So far we have used the visual dashboard in the Amazon Kendra management console to view all the available charts. The same dashboards are also available via API or the AWS CLI, which you can use to integrate this information in your applications as well as the tools of your choice for analytics and dashboards. You can use the following AWS CLI command to get the top queries this week based on their count:<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-bash\">aws kendra get-snapshots --index-id <span>&lt;YOUR-INDEX-ID&gt;<\/span> --interval \"THIS_WEEK\" --metric-type \"QUERIES_BY_COUNT\"<\/code><\/pre>\n<\/p><\/div>\n<p>The output looks similar to the following:<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-json\">{\n  \"SnapShotTimeFilter\": {\n    \"StartTime\": \"2021-11-14T08:00:00+00:00\",\n    \"EndTime\": \"2021-11-20T07:00:00+00:00\" \n  },\n  \"SnapshotsDataHeader\": [ \n    \"query_content\", \"count\", \"ctr\", \"zero_click_rate\", \"click_depth\", \"instant_answer\",     \"confidence\"\n    ],\n  \"SnapshotsData\": [\n    [\n      \"what is Kendra\", 3216, 3.70, 96.30, 27.71, 97.01, HIGH,\n      \"NBA game schedule\", 1632, 4.47, 95.53, 24.19, 95.47, MEDIUM,\n      \"Most popular search\", 1603, 3.49, 96.51, 29.43, 94.14, MEDIUM,\n      \"New York City\", 1551, 3.68, 96.32, 33.40, 94.58, MEDIUM,\n      \"how many weeks in a year\", 1310, 2.21, 97.79, 42.10, 96.03, LOW,\n      \"what is my ip address\", 859, 2.56, 97.44, 48.45, 96.97, MEDIUM,\n      \"how to draw\", 857, 2.80, 97.20, 36.33, 96.38, HIGH,\n      \"what is love\", 855, 2.46, 97.54, 27.33, 96.73, MEDIUM,\n      \"equal opportunity bill\", 855, 5.26, 94.74, 23.62, 94.62, MEDIUM,\n      \"when are the nba playoffs\", 836, 3.35, 96.65, 32.32, 92.34, LOW\n    ]\n  ],\n  \"NextToken\":    \"uVu4IDozCVdFz5klt0h9+YPTTNcCGGwGujsYChp1\/vPp5nPdC+reHO8TRvg5ANhWQu10jvKltuM8KzUvYCvBGi7mWJdpOF7LFiBjFcIuY6cabYI9nb2b0u3AU3565RC9kCytG6RjeVcU\/NjBAxLMyB96+WdEYv+jFCbejnM6YjWa0LRL+MmvlnXEkFMWvmgyrdF22JXWklTZc77NJILR+BTsCB5Xg34OJ4149968kDdb2CNhH4Bzk+qOGph+KoFDW\/CpmQ==\"\n}\n<\/code><\/pre>\n<\/p><\/div>\n<p>You can also get similar output using the following Python code:<\/p>\n<div class=\"hide-language\">\n<pre><code class=\"lang-python\">import boto3\nkendra = boto3.client('kendra')\n\nindex_ID = '${indexID}'\ninterval = 'THIS_WEEK'\nmetric_type = 'QUERIES_BY_COUNT'\n\nsnapshots_response = kendra.get_snapshots(\n    IndexId = index_id,\n    Interval = interval,\n    MetricType = metric_type,\nprint(\"Top queries data: \" + snapshots_response['snapshotsData'])\n<\/code><\/pre>\n<\/p><\/div>\n<h2>Conclusion<\/h2>\n<p>Growth of data and information along with evolving user needs make it imperative that the effectiveness of the search application also evolves. The metrics provided by the Amazon Kendra analytics empower you to dive deep into search trends and user behavior to identify insights. They help bring clarity to potential areas of improvement for Amazon Kendra-powered search applications. If you already implement an Amazon Kendra index-powered search solution, start looking at the Analytics Dashboard with the usage metrics for the last few weeks and get insights on how you can improve the search effectiveness. For new Amazon Kendra-powered search applications, the Analytics Dashboard is a great place to get immediate feedback with actionable insights on the search effectiveness. For a hands-on experience with Amazon Kendra, see the <a href=\"http:\/\/kendra-essentials.workshop.aws\/\" target=\"_blank\" rel=\"noopener noreferrer\">Kendra Essentials workshop<\/a>. For a deeper dive into Amazon Kendra use cases, see the <a href=\"https:\/\/aws.amazon.com\/blogs\/machine-learning\/category\/artificial-intelligence\/amazon-kendra\/\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon Kendra blog<\/a>.<\/p>\n<hr>\n<h3>About the Author<\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-20223 alignleft\" src=\"https:\/\/d2908q01vomqb2.cloudfront.net\/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59\/2020\/12\/24\/Abhinav-Jawadekar.jpg\" alt=\"Abhinav Jawadekar\" width=\"100\" height=\"133\"><strong>Abhinav Jawadekar<\/strong> is a Senior Partner Solutions Architect at Amazon Web Services. Abhinav works with AWS Partners to help them in their cloud journey.<\/p>\n<p>       <!-- '\"` -->\n      <\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/aws.amazon.com\/blogs\/machine-learning\/continuously-improve-search-application-effectiveness-with-amazon-kendra-analytics-dashboard\/<\/p>\n","protected":false},"author":0,"featured_media":1296,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1295"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/1296"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}