API Endpoints
Query document
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.
POST
Response
200 - application/json
The response is of type any
.