服务架构的改造

Prior to 2021, Grab’s search architecture was designed to only support textual matching, which takes in a user query and looks for exact matches within the ecosystem through an inverted index. This legacy system meant that only textual matching results could be fetched.

在 2021 年之前,Grab 的搜索架构被设计为只支持文本匹配,即接受用户查询,并通过倒置索引在生态系统内寻找精确匹配。这个遗留系统意味着只能获取文本匹配结果。

In the second half of 2021, the Deliveries search team worked on improving this architecture to make it smarter, more scalable and also unlock future growth for different search use cases at Grab. The figure below shows a simplified overview of the legacy architecture.

2021年下半年,Deliveries搜索团队致力于改进这一架构,使其更加智能,更具可扩展性,也为Grab的不同搜索用例释放了未来的增长。下图显示了传统架构的简化概览。

Point multiplier

Legacy architecture

遗留结构

With the legacy system, we noticed several problems.

对于遗留系统,我们注意到几个问题。

Search results were textually matched without considering intention and context

搜索结果是文本匹配的,没有考虑意图和背景

If a user types in a query “Roti Prata” (flatbread), he is likely looking for Roti Prata dishes and those matches with the dish name should be prioritised compared with matches with the merchant-partner’s name or matches with other entities.

如果一个用户输入了 "Roti Prata"(平板面包)的查询,他很可能在寻找Roti Prata的菜肴,与菜肴名称的匹配相比,那些与商家伙伴的名称或与其他实体的匹配应该被优先考虑。

In the legacy system, all entities whose names partially matched “Roti Prata” were displayed and ranked according to hard coded weights, and matches with merchant-partner names were always prioritised, even if the user intention was clearly to search for the “Roti Prata” dish itself.  

在原有系统中,所有名称与 "Roti Prata "部分匹配的实体都被显示出来,并根据硬编码的权重进行排序,与商家伙伴名称的匹配总是被优先考虑,即使用户的意图显然是搜索 "Roti Prata "菜肴本身。

This problem was more common in Mart, as users often intended to search for items instead of shops. Besides the lack of intention recognition, the search system was also unable to take context into consideration; users searching the same keyword query at different times and locations could have different objectives. E.g. if users search for “Bread” in the day, they may be likely to look for cafes while searches at n...

开通本站会员,查看完整译文。

Home - Wiki
Copyright © 2011-2024 iteam. Current version is 2.129.0. UTC+08:00, 2024-07-04 14:25
浙ICP备14020137号-1 $Map of visitor$