[AI68-1]Hiro LS Researcher-Create
This interface is used to initialize an Biomedical Encyclopedia Q&A chat session, obtain chat ID and chat item ID, as well as related reference document information. Usage flow: first call this interface to get chatId and chatItemId, then use these IDs to call the streaming interface to get AI responses.
Request Parameters
List of parameters supported by this API endpoint
| Name | Type | Example | Description |
|---|---|---|---|
| integer<int32> | 1 | data source 1: all
2: paper
3: patent
4: clinical trials
5: fda label
6: financial report
7: clinical guideline
8: epidemiology |
Required | boolean | - | deep think |
Required | boolean | - | long think |
Required | string | What is the data of the drug RMC6236? | User question |
Required | boolean | - | search website |
Response Schema
Structure of the API response data
| Field Name | Type | Example | Description |
|---|---|---|---|
data | object | - | response data |
chat_id | string | 019ae7682af371d991f228fc8eac9ada | Chat ID |
ref_doc | array | Please check the form: EurekalsChatRefDoc | Reference document list, containing related document reference information |
link | string | https://zhuanlan.zhihu.com/p/391356908 | Document link address |
text | string | 2021 China EGFR Inhibitor Industry Analysis Report - Market Structure Status and Future Prospects Research | Document text content |
type | string | web-site | Document type |
index | string | 1 | Document Index |
post_time | string | 20210720 | Post time |
_text_display | string | 2021 China EGFR Inhibitor Industry Analysis Report - Market Structure Status and Future Prospects Research | Text display content |
doc_type_detail | string | zhihu | Document type detail |
chat_item_id | string | 322d39265d444c53b8ad6d1b3a70974a | Chat item ID |
statusRequired | boolean | false | Status |
error_msg | string | The request parameter format is incorrect! | Error Message |
error_codeRequired | integer | 0 | Error Code |
Success Response Example
Example of a successful API response
JSON
{
"data": {
"chat_id": "019ae7682af371d991f228fc8eac9ada",
"ref_doc": [
{
"link": "https://zhuanlan.zhihu.com/p/391356908",
"text": "2021年中国EGFR抑制剂行业分析报告-市场格局现状与未来前景研究",
"type": "web-site",
"index": 1,
"post_time": 20210720,
"_text_display": "2021年中国EGFR抑制剂行业分析报告-市场格局现状与未来前景研究",
"doc_type_detail": "zhihu"
}
],
"chat_item_id": "322d39265d444c53b8ad6d1b3a70974a"
},
"status": true,
"error_code": 0
}Error Codes
List of possible error codes returned by this endpoint
Business Errors
| Error Code | Description |
|---|---|
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
Platform Errors
| Error Code | Description |
|---|---|
67200000 | API call exceeds the total limit set by the platform! |
67200001 | API call exceeds the total limit set by the platform! |
67200002 | The current call rate is too fast, exceeding the current configuration limit QPS! |
67200003 | The key and secret parameters for applying for the token are incorrect or the client has been disabled! |
67200004 | The requested api does not have permission. Please contact our support personnel! |
67200005 | Insufficient account balance/number of calls! |
67200006 | The client has exceeded the activation validity period! |
67200007 | The current call exceeds the configured usage limit of the day! |
67200008 | Please check if the required apikey in the query parameter has been transmitted! |
67200009 | The apikey does not match the passed bearerToken. Please check if a valid token is being used! |
67200012 | The request is illegal! |
67200100 | The current server status is busy, request response timeout! |
67200101 | The API requested currently does not exist. Please check the request path! |
HTTP Status Codes
| Status Code | Description |
|---|---|
0 | Success |
33610400 | Illegal content in user input |
33610600 | Internal system exception |
Performance Metrics
Expected performance characteristics for this endpoint
Normal Response Time
5000 ms
Max Response Time
10000 ms