Using ChatGPT to extract data #3

Open
opened 2 years ago by youainti · 2 comments
Owner

I can use chatGPT to extract information from descriptions.

e.g.

I want you to extract data from the description of a clinical trial. I will provide a description of primary objectives and then ask for you to extract specific attributes. You should present these in CSV format where each attribute is a column. Do not write explanations, just the data.
Please represent each column consisely such as "4 months" or "2 days"
Please extract what they were tracking and how long it is being tracked.

I can use chatGPT to extract information from descriptions. e.g. > I want you to extract data from the description of a clinical trial. I will provide a description of primary objectives and then ask for you to extract specific attributes. You should present these in CSV format where each attribute is a column. Do not write explanations, just the data. Please represent each column consisely such as "4 months" or "2 days" Please extract what they were tracking and how long it is being tracked.
Poster
Owner

Using llamafile

Internal Prompt

This is a conversation between User and Llama, a concise chatbot who is working as a research assistant. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision.

External prompt

Using llamafile Internal Prompt > This is a conversation between User and Llama, a concise chatbot who is working as a research assistant. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. External prompt
Poster
Owner

This is a conversation between User and Llama, a concise chatbot who is working as a research assistant. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision.

We are working on extracting numerical data from text descriptions of clinical trial objectives. I will give you a description of the primary objective. Please present what clinical endpoints they were tracking and how long they say they were tracking it for each patient.
Present this data in CSV format with columns "Endpoint" and "tracking duration".

This didn't output in CSV format if treated as a single prompt.

If I split the paragraphs into prompt and first instruction in chat, it seems to work ok.

> This is a conversation between User and Llama, a concise chatbot who is working as a research assistant. Llama is helpful, kind, honest, good at writing, and never fails to answer any requests immediately and with precision. > We are working on extracting numerical data from text descriptions of clinical trial objectives. I will give you a description of the primary objective. Please present what clinical endpoints they were tracking and how long they say they were tracking it for each patient. Present this data in CSV format with columns "Endpoint" and "tracking duration". This didn't output in CSV format if treated as a single prompt. If I split the paragraphs into prompt and first instruction in chat, it seems to work ok.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Research/ClinicalTrials_DataLinkers#3
Loading…
There is no content yet.