浏览代码

doc related_question path changed (#7918)

conversation change to sessions

### What problem does this PR solve?

related_question interface has wrong uri in HTTP API doc

### Type of change

- [x] Documentation Update
tags/v0.19.1
天海蒼灆 5 个月前
父节点
当前提交
47d40806a4
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      docs/references/http_api_reference.md

+ 3
- 3
docs/references/http_api_reference.md 查看文件



### Related Questions ### Related Questions


**POST** `/v1/conversation/related_questions`
**POST** `/v1/sessions/related_questions`


Generates five to ten alternative question strings from the user's original query to retrieve more relevant search results. Generates five to ten alternative question strings from the user's original query to retrieve more relevant search results.


#### Request #### Request


- Method: POST - Method: POST
- URL: `/v1/conversation/related_questions`
- URL: `/v1/sessions/related_questions`
- Headers: - Headers:
- `'content-Type: application/json'` - `'content-Type: application/json'`
- `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'` - `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'`


```bash ```bash
curl --request POST \ curl --request POST \
--url http://{address}/v1/conversation/related_questions \
--url http://{address}/v1/sessions/related_questions \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \ --header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \
--data ' --data '

正在加载...
取消
保存