Docs: correct wrong URL for related_questions HTTP API (#7507)

### What problem does this PR solve?

Correct wrong URL for related_questions HTTP API. #7282

### Type of change

- [x] Documentation Update
This commit is contained in:
Yongteng Lei 2025-05-08 09:32:21 +08:00 committed by GitHub
parent 7b57ab5dea
commit 014a1535f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ A complete reference for RAGFlow's RESTful API. Before proceeding, please ensure
---
| Code | Message | Description |
|------|-----------------------|----------------------------|
| ---- | --------------------- | -------------------------- |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Unauthorized access |
| 403 | Forbidden | Access denied |
@ -172,7 +172,9 @@ Failure:
"message": "The last content of this conversation is not from user."
}
```
---
### Create agent completion
**POST** `/api/v1/agents_openai/{agent_id}/chat/completions`
@ -3167,10 +3169,12 @@ Failure:
### Related Questions
**POST** `/api/v1/conversation/related_questions`
**POST** `/v1/conversation/related_questions`
Generates five to ten alternative question strings from the user's original query to retrieve more relevant search results.
This operation requires a `Bearer Login Token`, typically expires with in 24 hours. You can find the it in the browser request easily.
:::tip NOTE
The chat model dynamically determines the number of questions to generate based on the instruction, typically between five and ten.
:::
@ -3178,10 +3182,10 @@ The chat model dynamically determines the number of questions to generate based
#### Request
- Method: POST
- URL: `/api/v1/conversation/related_questions`
- URL: `/v1/conversation/related_questions`
- Headers:
- `'content-Type: application/json'`
- `'Authorization: Bearer <YOUR_API_KEY>'`
- `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'`
- Body:
- `"question"`: `string`
@ -3189,9 +3193,9 @@ The chat model dynamically determines the number of questions to generate based
```bash
curl --request POST \
--url http://{address}/api/v1/conversation/related_questions \
--url http://{address}/v1/conversation/related_questions \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \
--data '
{
"question": "What are the key advantages of Neovim over Vim?"
@ -3351,3 +3355,4 @@ Failure:
```
---