Orpheus API Reference
Natural language query question answer
POST Natural language query
https://api.wisecube.ai/orpheus/graphql
This API allows querying the knowledge graph using natural language queries.
BODY graphql
QUERY
query questionAnswer($query: String) {
summaryInsights(engineID:"orpheus", searchInput: {
query: $query, type: [QA]})
{
data {
__typename
... on QAInsight {
question
answers {
answer
document {
id
title
abs
source
index_name
__typename
}
took
context
statistics
probability
__typename
}
__typename
}
}
__typename
}
}
GRAPHQL VARIABLES
{ "query" : "what is cancer" }
Example Request: Informational query
POST /orpheus/graphql HTTP/1.1
Host: api.wisecube.ai
Content-Type: application/json
Content-Length: 387
{"query":"query questionAnswer($query: String) {\n summaryInsights(engineID:\"orpheus\", searchInput: {\n query: $query, type: [QA]}) \n {\n data {\n __typename\n ... on QAInsight {\n question\n answers {\n answer\n document {\n id\n title\n abs\n source\n index_name\n __typename\n }\n took\n context\n statistics\n probability\n __typename\n }\n __typename\n }\n }\n __typename\n }\n}","variables":{"query":"what is cancer"}}
Example Response
{
"data": {
"summaryInsights": [
{
"data": {
"__typename": "QAInsight",
"question": "what is cancer",
"answers": [
{
"answer": "Cancer is a complex illness characterized by the uncontrolled division of abnormal cells, which have the ability to invade nearby tissues and spread to other parts of the body. It is a leading cause of death globally and can affect various organs and systems, including the bladder, brain, breast, cervix, colorectal, esophageal, gastric, head and neck, hematologic, kidney, liver, lung, melanoma, pancreas, prostate, sarcomas, thyroid, and uterine. The cells in cancerous tumors divide without control, leading to the formation of malignant growths that can disrupt the normal functioning of the affected organ or tissue. Early detection and treatment are crucial in managing and potentially curing cancer.",
"document": [
{
"id": "NCT02239575",
"title": "Collection of Retrospective (Archival) Samples and Prospective Collection of Surplus Tissue and Blood Samples",
"abs": "This study will enroll specimens from subjects diagnosed with various cancers and who have either RETROSPEFCTIVE ARCHIVAL SAMPLES already undergone surgical resection of their tumor and have one or more formalin fixed and paraffin embedded FFPE blocks on file within the local or affiliated pathology archive replicate blocks from same tumor or blocks no longer required to be maintained on file discard blocks or PROSPECTIVE SAMPLES are scheduled to undergo surgical treatment and who prior to scheduled surgery provide informed consent and donate a 10 20 ml blood sample After surgery surplus tissues including tumor and adjacent normal tissues not required for diagnosis will be collected Subject clinical information will be collected including basic demographic information medical history current cancer history and treatment A final pathology report will be obtained for each subject s surgical specimen In some instances and based on the cancer indications required longitudinal data may also be collected at a frequency of every 6 months to once per year Longitudinal data will include information on study subject survival and disease recurrence CANCER INDICATIONS Bladder Cancer Urothelial carcinoma nonpapillary Bladder Cancer Urothelial carcinoma papillary Brain Cancer Astrocytoma Brain Cancer Glioblastoma Brain Cancer Medulloblastoma Breast Cancer Ductal Carcinoma Breast Cancer Lobular Carcinoma Cervical Cancer Squamous Cell Carcinoma Colorectal Cancer Adenocarcinoma Esophageal Cancer Adenocarcinoma Gastric Cancer Head and Neck Cancer Squamous Cell Carcinoma Hematologic Cancer Acute Lymphocytic Leukemia ALL Hematologic Cancer Acute Myeloid Leukemia AML Hematologic Cancer Chronic Lymphocytic Leukemia CLL Hematologic Cancer Diffuse Large B cell Lymphoma Hematologic Cancer Multiple Myeloma MM Hematologic Cancer Non Hodgkins Lymphoma NHL Kidney Cancer Papillary Carcinoma Kidney Cancer Renal cell Carcinoma Liver Cancer Hepatocellular Carcinoma Lung Cancer Adenocarcinoma Lung Cancer Squamous Cell Cancer Melanoma Pancreatic Cancer Ductal Adenocarcinoma Prostate Cancer Adenocarcinoma Sarcomas Thyroid Cancer Follicular Carcinoma Thyroid Cancer Papillary Carcinoma Uterine Cancer Endometrial Carcinoma",
"source": "http://clinicaltrials.gov/ct2/show/NCT02239575",
"index_name": "Clinical Trials",
"__typename": "RelatedDocument"
},
{
"id": "NCT06018935",
"title": "A Cohort Establishment Study of Total Management of Ovarian Cancer (Including Fallopian Tube Cancer and Primary Peritoneal Cancer)",
"abs": "A cohort establishment study of total management of ovarian cancer including fallopian tube cancer and primary peritoneal cancer To investigate the effects of surgery chemotherapy maintenance therapy and related factors on the prognosis and quality of life of patients with ovarian cancer including fallopian tube cancer and primary peritoneal cancer To study the postoperative recovery of patients with ovarian cancer including fallopian tube cancer and primary peritoneal cancer perioperative complications adverse reactions after chemotherapy adverse reactions during targeted drug maintenance therapy and explore possible effective preventive measures The prognostic factors of ovarian cancer including fallopian tube cancer and primary peritoneal cancer were analyzed To study the efficacy and safety of PARPi in clinical application in patients with ovarian cancer including fallopian tube cancer and primary peritoneal cancer ",
"source": "http://clinicaltrials.gov/ct2/show/NCT06018935",
"index_name": "Clinical Trials",
"__typename": "RelatedDocument"
},
{...},
{...}
],
"took": 15.716960906982422,
"context": null,
"statistics": [
{
"index_name": "Clinical Trials",
"total_hits": 10000
},
{
"index_name": "PubMed",
"total_hits": 10000
}
],
"probability": null,
"__typename": "Answer"
}
]
},
"__typename": "Insight"
}
]
}
}