ae_pipeline_rag
Analyze drug safety by fetching, extracting, and summarizing FDA drug label data in a single call, preventing LLM response truncation.
Instructions
Advanced RAG pipeline for drug safety analysis. Fetches, extracts, chunks, retrieves and summarizes FDA drug label data in one call to prevent LLM response truncation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drug | No | Drug name to focus the analysis on. Example: 'aspirin', 'ibuprofen' | |
| query | No | Natural language query about drug safety. Example: 'cardiovascular side effects and warnings' | |
| top_k | No | Number of most relevant text chunks to return (1-10) | |
| filters | No | Additional filters for data retrieval | |
| condition | No | Medical condition context. Example: 'hypertension', 'pain management' |