Vertex AI Search for Retail 将重命名为 Vertex AI Search for Commerce。我们正在更新内容,以反映新品牌。
查询扩展
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
查询扩展是指在最初未找到任何结果或找到的结果太少时,逐步放宽查询约束条件,以包含更多结果。这会导致调整每个查询的结果大小。
教程:查询扩展
本教程介绍了如何启用查询扩展功能。如果买家使用模糊的搜索字词或多字词搜索字词,则可能会收到空响应。启用查询扩展后,系统会分析请求,并根据解析的搜索查询返回展开后的商品列表。
如需遵循有关此任务的分步指导,请直接在 Cloud Shell Editor 中点击操作演示:
操作演示
示例数据集
本页以下面的数据集为例。仅包含说明所需的字段。
商品数据集示例
ID |
title |
brands |
categories |
price_info.price |
"nest_mini_2nd_gen" |
"Nest Mini (2nd gen)" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
49.00 |
"nest_audio" |
"Nest Audio" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
99.99 |
"nest_hub_max" |
"Nest Hub Max" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
229.00 |
"nest_hub" |
"Nest Hub" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
88.99 |
"google_home_max" |
"Google Home Max" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
299.00 |
"google_home_mini" |
"Google Home Mini" |
["Google", "Nest"] |
["Nest > speakers and displays"] |
49.00 |
"google_pixel_5" |
"Google Pixel 5" |
["Google", "Pixel"] |
["Pixel > phones"] |
699.00 |
"google_pixel_4a_with_5g" |
"Google Pixel 4a with 5G" |
["Google", "Pixel"] |
["Pixel > phones"] |
499.00 |
"google_pixel_4a" |
"Google Pixel 4a Phones" |
["Google", "Pixel"] |
["Pixel > phones"] |
349.00 |
"google_pixel_stand" |
"Google Pixel Stand" |
["Google", "Pixel"] |
["Pixel > featured accessories"] |
79.00 |
"google_pixel_buds" |
"Google Pixel Buds" |
["Google", "Pixel"] |
["Pixel > featured accessories"] |
179.00 |
"google_pixel_5_case" |
"Google Pixel 5 Case" |
["Google", "Pixel"] |
["Pixel > featured accessories"] |
40.00 |
"google_pixel_4a_5g_case" |
"Google Pixel 4a (5G) Case" |
["Google", "Pixel"] |
["Pixel > featured accessories"] |
40.00 |
"google_pixel_4a_case" |
"Google Pixel 4a Case" |
["Google", "Pixel"] |
["Pixel > featured accessories"] |
40.00 |
查询扩展
查询扩展会增加查询字词的召回率,但结果很少,尤其是长尾查询。
例如,如果您在未进行查询扩展的情况下搜索“Google Pixel 5”,您可能只会在结果中看到“google_pixel_5”。而使用查询扩展时,您可能会收到“google_pixel_4a_with_5g”、“google_pixel_4a”和“google_pixel_5_case”。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-14。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-14。"],[],[]]