FAQ管理

使用混合搜索在FAQ中搜索,支持两级优先级标签召回:first_priority_tag_ids优先级最高,second_priority_tag_ids次之

post/knowledge-bases/{id}/faq/search

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/knowledge-bases/{id}/faq/search
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识库ID

Request body

first_priority_tag_idsinteger[]

第一优先级标签ID列表,限定命中范围,优先级最高

match_countinteger
only_recommendedboolean

是否仅返回推荐的条目

query_textstring required
second_priority_tag_idsinteger[]

第二优先级标签ID列表,限定命中范围,优先级低于第一优先级

vector_thresholdnumber

Response

搜索结果

successboolean

Example response

{
  "success": true
}

Changes