RelevanceFilterSpec

相关性过滤规范。

JSON 表示法
{
  "keywordSearchThreshold": {
    object (RelevanceThresholdSpec)
  },
  "semanticSearchThreshold": {
    object (RelevanceThresholdSpec)
  }
}
字段
keywordSearchThreshold

object (RelevanceThresholdSpec)

可选。关键词搜索相关性过滤阈值设定。

semanticSearchThreshold

object (RelevanceThresholdSpec)

可选。语义搜索相关性过滤阈值规范。

RelevanceThresholdSpec

针对特定子搜索的相关性过滤规范。

JSON 表示法
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "relevanceThreshold": enum (RelevanceThreshold),
  "semanticRelevanceThreshold": number
  // End of mutually exclusive fields.
}
字段
配置相关性阈值的确定方式。以下是互斥字段的列表。在响应中,最多只能设置一个字段:
relevanceThreshold

enum (RelevanceThreshold)

预定义的子搜索相关性阈值。

semanticRelevanceThreshold

number

自定义子搜索相关性阈值。该值必须在 [0.0, 1.0] 范围内。

互斥字段的结束位置。