Bio-Pharma Encyclopedia Q&A
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.
post/chat/ai-ls-chat
Request
- Base URLhttps://connect.patsnap.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body */*
Example request
{
"query": "<cn>药物RMC6236的PK/PD数据有哪些?</cn><us>What is the data of the drug RMC6236?</us>"
}Response
Successful ai68-1 hiro ls researcher-create response.
Example response
{
"data": {
"chat_id": "<cn>019ae7682af371d991f228fc8eac9ada</cn><us>019ae7682af371d991f228fc8eac9ada</us>",
"ref_doc": [
{
"link": "<cn>https://zhuanlan.zhihu.com/p/391356908</cn><us>https://zhuanlan.zhihu.com/p/391356908</us>",
"text": "<cn>2021年中国EGFR抑制剂行业分析报告-市场格局现状与未来前景研究</cn><us>2021 China EGFR Inhibitor Industry Analysis Report - Market Structure Status and Future Prospects Research</us>",
"type": "<cn>web-site</cn><us>web-site</us>",
"post_time": "<cn>20210720</cn><us>20210720</us>",
"_text_display": "<cn>2021年中国EGFR抑制剂行业分析报告-市场格局现状与未来前景研究</cn><us>2021 China EGFR Inhibitor Industry Analysis Report - Market Structure Status and Future Prospects Research</us>",
"doc_type_detail": "<cn>zhihu</cn><us>zhihu</us>"
}
],
"chat_item_id": "<cn>322d39265d444c53b8ad6d1b3a70974a</cn><us>322d39265d444c53b8ad6d1b3a70974a</us>"
},
"error_msg": "The request parameter format is incorrect!"
}Changes
No recorded changes to this operation across all 1 revision of this API.