---
title: "添加相似问"
method: POST
path: "/knowledge-bases/{id}/faq/entries/{entry_id}/similar-questions"
tags: ["FAQ管理"]
---

# 添加相似问

`POST /knowledge-bases/{id}/faq/entries/{entry_id}/similar-questions`

## 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/entries/{entry_id}/similar-questions`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

向指定的FAQ条目添加相似问题

## Path parameters

- `id` string, required
- `entry_id` integer, required

## Request body

- InternalHandlerAddSimilarQuestionsRequest
  - `similar_questions` string[], required: Phrasings to add to the entry.

## Response `200`

更新后的FAQ条目

- object
  - `data` GithubComTencentWeKnoraInternalTypesFAQEntry
    - `answer_strategy` 'all' | 'random'
    - `answers` string[]
    - `chunk_id` string
    - `chunk_type` 'text' | 'parent_text' | 'image_ocr' | 'image_caption' | 'image_vector' | 'entity' | 'relationship' | 'faq' | 'web_search' | 'table_summary' | 'table_column' | 'wiki_page'
    - `created_at` string
    - `id` integer
    - `index_mode` 'question_only' | 'question_answer'
    - `is_enabled` boolean
    - `is_recommended` boolean
    - `knowledge_base_id` string
    - `knowledge_id` string
    - `match_type` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    - `matched_question` string: MatchedQuestion is the actual question text that was matched in FAQ search Could be the standard question or one of the similar questions
    - `negative_questions` string[]
    - `score` number
    - `similar_questions` string[]
    - `standard_question` string
    - `tag_id` integer
    - `tag_name` string
    - `updated_at` string
  - `success` boolean

## Other responses

- `400`: 请求参数错误
- `404`: 条目不存在

## Changes

- **2026-02-26** `3762795e29b6`: 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge-bases/:id/faq/entries/:entry_id/similar-questions/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/609f53b84f35?raw)
