Queries a PubMed article with a user-provided question.
Args: request (QueryRequest): An object containing the PubMed ID and the query.
Returns: dict: A dictionary containing the result of the query.
Raises: HTTPException: If the PubMed ID is invalid, the article is not found, or the query fails.
Query result retrieved successfully
The response is of type any
.
Queries a PubMed article with a user-provided question.
Args: request (QueryRequest): An object containing the PubMed ID and the query.
Returns: dict: A dictionary containing the result of the query.
Raises: HTTPException: If the PubMed ID is invalid, the article is not found, or the query fails.
Query result retrieved successfully
The response is of type any
.