five

Automating pharmacovigilance evidence generation: Using large language models to produce context-aware SQL

收藏
DataONE2025-02-03 更新2025-04-26 收录
下载链接:
https://search.dataone.org/view/sha256:401b4351685a4acca8b6bd8ac55d05cdddee721799032d81cefe724f5dca5c71
下载链接
链接失效反馈
官方服务:
资源简介:
Objective: To enhance the accuracy of information retrieval from pharmacovigilance (PV) databases by employing Large Language Models (LLMs) to convert natural language queries (NLQs) into Structured Query Language (SQL) queries, leveraging a business context document. Materials and Methods: We utilized OpenAI’s GPT-4 model within a retrieval-augmented generation (RAG) framework, enriched with a business context document, to transform NLQs into executable SQL queries. Each NLQ was presented to the LLM randomly and independently to prevent memorization. The study was conducted in three phases, varying query complexity, and assessing the LLM's performance both with and without the business context document. Results: Our approach significantly improved NLQ-to-SQL accuracy, increasing from 8.3% with the database schema alone to 78.3% with the business context document. This enhancement was consistent across low, medium, and high complexity queries, indicating the critical role of contextual ..., Test set of NLQ's used in the paper Automating Pharmacovigilance Evidence Generation: Using Large Language Models to Produce Context-Aware SQL. Also included are the Python scripts for the LLM processing, the R code for statistical analysis of results, and a copy of the business context document and essential tables., , # Automating Pharmacovigilance Evidence Generation: Using Large Language Models to Produce Context-Aware SQL [https://doi.org/10.5061/dryad.2280gb63n](https://doi.org/10.5061/dryad.2280gb63n) ## Description of the data and file structure NLQ_Queries.xls contains the set of test NLQs along with the results of the LLM response in each phase of the experiment. Each NLQ also contains the complexity scores computed for each. The business context document is supplied as a PDF, together with the Python and R code used to generate our results. The essential tables used in Phase 2 and 3 of the experiment are included in the text file. ### Files and variables #### File: NLQ\_Queries.xlsx **Description:** Contains all NLQ queries with the results of the LLM output and the pass, fail status of each. **Column Definitions:** Below are the column names in order with a detailed description. 1. User NLQ: Plain text database query 2. Phase_1:  Pass or Fail status indicator \"Pass, Partial, or Fa...
创建时间:
2025-02-04
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作