Feat: Add industry-related search keyword generation function (#9156)

### What problem does this PR solve?
Add industry-related search keyword generation function
- When generating search keywords, support for specific industries has
been added
- If the "industry" parameter is provided, industry-specific
restrictions will be added to the prompt
- This change can help users generate more precise search keywords
within specific industries

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
天海蒼灆
2025-08-01 15:50:46 +08:00
committed by GitHub
parent b26088ab70
commit 6591031bad
2 changed files with 10 additions and 2 deletions

View File

@ -3371,6 +3371,7 @@ The chat model autonomously determines the number of questions to generate based
- `'Authorization: Bearer <YOUR_LOGIN_TOKEN>'`
- Body:
- `"question"`: `string`
- `"industry"`: `string`
##### Request example
@ -3381,7 +3382,8 @@ curl --request POST \
--header 'Authorization: Bearer <YOUR_LOGIN_TOKEN>' \
--data '
{
"question": "What are the key advantages of Neovim over Vim?"
"question": "What are the key advantages of Neovim over Vim?",
"industry": "software_development"
}'
```
@ -3389,6 +3391,8 @@ curl --request POST \
- `"question"`: (*Body Parameter*), `string`
The original user question.
- `"industry"`: (*Body Parameter*), `string`
Industry of the question.
#### Response