分享好友 最新动态首页 最新动态分类 切换频道
Intelligent product search engine for e-commerce
2024-12-26 21:01

This example scenario shows how using a dedicated search service can dramatically increase the relevance of search results for your e-commerce customers.

Download a Visio file of this architecture.

This scenario covers an e-commerce solution where customers can search through a product catalog.

  1. Customers go to the e-commerce web application from any device.
  2. The product catalog is maintained in an Azure SQL database for transactional processing.
  3. Azure AI Search uses a search indexer to automatically keep its search index up to date through integrated change tracking.
  4. Customer's search queries are offloaded to the AI Search service, which processes the query and returns the most relevant results.
  5. As an alternative to a web-based search experience, customers can also use a conversational bot in social media or straight from digital assistants to search for products and incrementally refine their search query and results.
  6. Optionally, customers can use the skillset feature to apply artificial intelligence for even smarter processing.
  • Azure App Service - Web Apps hosts web applications allowing autoscale and high availability without having to manage infrastructure.
  • Azure SQL Database is a general-purpose relational database-managed service in Microsoft Azure that supports structures such as relational data, JSON, spatial, and XML.
  • AI Search is a cloud solution that provides a rich search experience over private, heterogeneous content in web, mobile, and enterprise applications.
  • Azure AI Bot Service provides tools to build, test, deploy, and manage intelligent bots.
  • Azure AI services lets you use intelligent algorithms to see, hear, speak, understand, and interpret your user needs through natural methods of communication.
  • You could use in-database search capabilities, for example, through SQL Server full-text search, but then your transactional store also processes queries (increasing the need for processing power) and the search capabilities inside the database are more limited.
  • You could host the open-source Apache Lucene (on which AI Search is built) on Azure Virtual Machines, but then you're back to managing infrastructure as a service (IaaS) and don't benefit from the many features that AI Search provides on top of Lucene.
  • You could also consider deploying Elasticsearch from Azure Marketplace, which is an alternative and capable search product from a third-party vendor, but also in this case you're running an IaaS workload.

Other options for the data tier include:

  • Azure Cosmos DB - Microsoft's globally distributed, multi-model database. Azure Cosmos DB provides a platform to run other data models such as MongoDB, Cassandra, Graph data, or simple table storage. AI Search also supports indexing the data from Azure Cosmos DB directly.

Search is the primary mechanism through which customers find and ultimately purchase products, making it essential that search results are relevant to the intent of the search query, and that the end-to-end search experience matches that of search giants by providing near-instant results, linguistic analysis, geo-location matching, filtering, faceting, autocomplete, and hit highlighting.

Imagine a typical e-commerce web application with product data stored in a relational database like SQL Server or SQL Database. Search queries are often handled inside the database by using queries or full-text search features. By using AI Search instead, you free up your operational database from the query processing and you can easily start taking advantage of those hard-to-implement features that provide your customers with the best possible search experience. Also, because AI Search is a platform as a service (PaaS) component, you don't have to worry about managing infrastructure or becoming a search expert.

This solution is optimized for the retail industry.

Other relevant use cases include:

  • Finding real estate listings or stores near the user's physical location (for the facilities and real-estate industry).
  • Searching for articles in a news site or looking for sports results, with a higher preference for more recent information (for the sports, media, and entertainment industries).
  • Searching through large repositories for document-centric organizations, like policy makers and notaries.

Ultimately, any application that has some form of search functionality can benefit from a dedicated search service.

These considerations implement the pillars of the Azure Well-Architected Framework, which is a set of guiding tenets that can be used to improve the quality of a workload. For more information, see Microsoft Azure Well-Architected Framework.

The pricing tier of the AI Search service is used mainly for capacity planning because it defines the maximum storage you get and how many partitions and replicas you can provision. Partitions allow you to index more documents and get higher write throughputs, whereas replicas provide more queries per second (QPS) and high availability.

You can dynamically change the number of partitions and replicas, but it's not possible to change the pricing tier. So, you should carefully consider the right tier for your target workload. If you need to change the tier anyway, you need to provision a new service side by side and reload your indexes there, at which point you can point your applications at the new service.

AI Search provides a 99.9% availability service-level agreement (SLA) for reads (that is, querying) if you have at least two replicas, and for updates (that is, updating the search indexes) if you have at least three replicas. Therefore, you should provision at least two replicas if you want your customers to be able to search reliably, and three if actual changes to the index should also be considered high-availability operations.

If there's a need to make breaking changes to the index without downtime (for example, changing data types, deleting, or renaming fields), the index will need to be rebuilt. Similar to changing service tier, this means creating a new index, repopulating it with the data, and then updating your applications to point at the new index.

AI Search is compliant with many security and data privacy standards, so you can use it in most industries.

To secure access to the service, you can use Azure role-based access control (RBAC) or connect with API keys.

We recommend that you use Azure RBAC because it uses Azure roles, which integrate with Microsoft Entra ID. When you use Azure roles, you can also use passwordless authentication methods like Managed identities for Azure resources.

API keys include admin keys, which provide full access for all content operations, and query keys, which provide read-only access to the documents collection of a search index. You should set up applications that don't need to update the index to use a query key and not an admin key, especially if an end-user device, like a script running in a web browser, performs the search.

You can also secure access to the AI Search service at the network level by exposing it through a private endpoint.

How successful your e-commerce application is depends largely on the relevance of the search results to your customers. Carefully tuning your search service to provide optimal results based on user research, or relying on search traffic analysis to understand your customer's search patterns allows you to make decisions based on data.

Typical ways to tune your search service include:

  • Using scoring profiles to influence the relevance of search results, for example, based on which field matched the query, how recent the data is, and the geographical distance to the user.
  • Using Microsoft-provided language analyzers that use an advanced natural language processing stack to better interpret queries.
  • Using custom analyzers to ensure your products are found correctly, especially if you want to search on non-language based information like a product's make and model.

Cost optimization is about looking at ways to reduce unnecessary expenses and improve operational efficiencies. For more information, see Overview of the cost optimization pillar.

To explore the cost of running this scenario, all the services mentioned previously are preconfigured in the cost calculator. To see how the pricing would change for your particular use case, change the appropriate variables to match your expected usage.

Consider these sample cost profiles based on the amount of traffic you expect to handle:

  • Small: This profile uses a single web app to host the website, the Free tier of the Azure AI Bot Service, a single search service, and a SQL Database.
  • Medium: This profile scales up the web app to two instances of the tier, upgrades the search service to a tier, and uses a SQL Database.
  • Large: This profile uses four instances of a web app, upgrades the Azure AI Bot Service to the tier (with 1.000.000 messages in Premium channels), and uses two units of the search service and a SQL Database.

To deploy a version of this scenario, you can follow this step-by-step tutorial that provides a .NET sample application that runs a job search website. It demonstrates most of the AI Search features discussed thus far.

This article is maintained by Microsoft. It was originally written by the following contributors.

Principal author:

  • Jelle Druyts | Principal Customer Engineer

To see non-public LinkedIn profiles, sign in to LinkedIn.

To learn more about AI Search, visit the documentation center or check out the samples.

最新文章
酷派最新动态,引领科技创新,塑造未来智能生态
酷派发布最新新闻,积极引领科技创新,致力于塑造未来智能生态。该公司不断推出新技术和产品,以满足消费者日益增长的需求。酷派以其卓越的研发能力和技术实力,成为智能生态领域的佼佼者,不断推动行业向前发展。本文目录导读:酷派最新新
如何优化B站关键词排名:Bibi搜索排名实战攻略
在视频内容日益成为主流消费选择的今天,B站作为中国最流行的视频分享平台之一,成了许多内容创作者展示才华、分享知识的舞台。然而,在竞争激烈的网络环境中,如何提升自己视频内容的B站关键词排名,让目标观众更容易发现,成了许多UP主和
郭碧婷怀三胎了?穿孕妇裙步子笨重比向佐都壮,牵手逛街好恩爱
郭碧婷自从嫁入豪门就变成了全职家庭主妇,相比于当女明星的时候,消息也少了很多。很多人猜测郭碧婷在豪门中过得并不幸福,虽然钱足够,有婆婆向太把她当亲女儿一样宠爱,但是作为老公的向佐就多少有点不尽责了,屡屡被传出出轨,很多重要
经典俄罗斯方块黑白版免费下载
说起俄罗斯方块相信没有人会感到陌生,以往每到逢年过节时出去走亲戚,无聊的时候就会拿出那种老式的黑白游戏机玩上几局。如今黑白游戏机早已不见踪影,经典的俄罗斯方块却是经久不衰,那今天小编带来的就是《经典俄罗斯方块黑白版》,游戏
评选公开:上海专业白癜风医院排名“榜单推荐”白癜风症状,哪些不良习惯被认为是引发皮肤白斑的催化剂?
评选公开:上海专业白癜风医院排名“榜单推荐”白癜风症状,哪些不良习惯被认为是引发皮肤白斑的催化剂?上海白癜风医院排名:1、上海美申白癜风医院2、上海正规白癜风医院3、上海皮肤科医院4、上海专业的白癜风医院5、上海白癜风的治疗,
活动策划的10个维度
活动策划,是营销推广中的重要一环。品牌要想活起来,销售要想动起来,都离不开活动。像我们平时经常提到的事件营销、传播campaign、用户参与、终端促销、电商大促、品牌发布会、订货会、经销商大会……这些都属于活动的范畴。活动策划是一
英国留学条件有些什么 就读优势有哪些
英国大学是非常出名的,英国一直以传统优秀的教学而闻名世界,因此很多的同学都会选择前往英国进行留学,那么“英国留学条件有些什么”呢,让我们一起来简单的了解一下吧。1、学历要求高中留学:申请英国高中留学,学生通常需要完成初中阶
祈际网络|同城达人本地探店抖音推广费用是多少?
本地达人探店作为一种新兴的营销方式,其费用构成因达人的粉丝等级、推广方式和运营模式而异。祈际网络凭借其专业的服务和深入的市场洞察,为品牌提供了多样化的探店营销解决方案,帮助品牌实现成本效益最大化。祈际网络作为一个有着丰富实
【漫画推荐】韩漫推荐
​​1.《乖乖女恋爱指南》    我们的女主郑小乖人如其名,是个乖乖女,爱好列日程表,是个每天完成日程表的每一项就觉得很幸福的人。因为受学长美色的诱惑加入了编(you)程(xi)社团。撞破了男主在玩女号的事,以帮助她追学长为交换条
淘宝游戏店铺开店流程,怎么开店?
随着移动互联网以及智能移动终端设备在我国的快速发展,我国游戏市场用户规模持续增长,其中移动游戏的快速发展远超端游和页游,我国游戏市场逐步确立了以发展移动游戏为主的发展态势。很多商家想要开一个游戏类的专营店铺却不知道怎么申请
相关文章
推荐文章
发表评论
0评