文档

QueryProcessor

更新时间:

描述

opensearch 应用版本的查询意图理解规则

示例

{
    "name": "qp_lsh_test_1",
    "domain": "GENERAL",
    "processors": [{
        "name": "stop_word",
        "use_system_dictionary": true,
        "intervention_dictionary": ""
    }],
    "indexes": [
        "default"
    ],
    "active": true
}

结构

字段

类型

描述

name

String

规则名称(数字、小写英文字母或下划线组成,小写字母开头,长度不超过16位)

domain

String

行业类型- GENERAL 通用- ECOMMERCE 电商- IT_CONTENT IT内容

processors[]

Object

包含功能具体说明查看下文:Processor

indexes

Array

应用的索引范围

active

Boolean

是否默认规则

Processor

示例:

{
        "name": "stop_word",
        "use_system_dictionary": true,
        "intervention_dictionary": ""
}

结构

字段

类型

描述

name

String

功能名称- stop_word 停用词- spell_check 拼写检查- term_weighting 词权重- synonym 同义词- category_prediction 类目预测- ner 实体识别

use_system_dictionary

Boolean

是否使用系统内置词典

intervention_dictionary

String

干预词典名称

类目预测

示例:

{
        "name": "stop_word",
        "categoryPrediction": 12345,
        "projectId": 12346
}

结构

字段

类型

描述

name

String

功能名称- category_prediction 类目预测

categoryPrediction

Integer

类目预测模型ID

projectId

Integer

算法工程ID

实体识别

示例:

{
    "name": "stop_word",
    "use_system_dictionary": true,
    "intervention_dictionary": "",
    "priorities": [{
        "priority": "HIGH",
        "tag": "test",
        "order": 1
    }]
}

结构

字段

类型

描述

name

String

功能名称- ner 实体识别

use_system_dictionary

Boolean

是否使用系统内置词典

intervention_dictionary

String

干预词典名称

priorities[]

Object

实体类型重要性设置

priorities[].priority

String

重要性- HIGH- MIDDLE- LOW

priorities[].tag

String

实体类型的内部英文表示

priorities[].order

Integer

在同一个priority下的排序顺序优先顺序按照数字从小到大,默认为0

  • 本页导读 (0)
文档反馈