shababo / plotreader

Use LLMs to generate and read plots. Combine them into a teacher-student pair to improve performance.
1 stars 0 forks source link

1 add structured output to reader #2

Closed shababo closed 1 month ago

shababo commented 1 month ago

Successfully tested extracting the set of tested opsins from a figure into pydantic classes.

Sample text input and input

print(message_txt_no_options)

for opsin in opsin_set.opsins:
    print(f"{type(opsin)}: {opsin}")

Output

List each opsin variant tested in this figure and denote any aliases used. Return your answer as structured data.
<class '__main__.Opsin'>: aliases=['ChRiff']
<class '__main__.Opsin'>: aliases=['CsChrimR']
<class '__main__.Opsin'>: aliases=['C1C2']
<class '__main__.Opsin'>: aliases=['11_10']
<class '__main__.Opsin'>: aliases=['12_10']
<class '__main__.Opsin'>: aliases=['25_9']
<class '__main__.Opsin'>: aliases=['10_10']
<class '__main__.Opsin'>: aliases=['15_10']
<class '__main__.Opsin'>: aliases=['28_10']
<class '__main__.Opsin'>: aliases=['21_10']
<class '__main__.Opsin'>: aliases=['3_10']
<class '__main__.Opsin'>: aliases=['1_10']
<class '__main__.Opsin'>: aliases=['19_10']
<class '__main__.Opsin'>: aliases=['22_10']
<class '__main__.Opsin'>: aliases=['26_10']
<class '__main__.Opsin'>: aliases=['27_10']
<class '__main__.Opsin'>: aliases=['5_10']
<class '__main__.Opsin'>: aliases=['C1C2']
<class '__main__.Opsin'>: aliases=['17_10']
<class '__main__.Opsin'>: aliases=['23_10']
<class '__main__.Opsin'>: aliases=['24_10']
<class '__main__.Opsin'>: aliases=['2_10']
<class '__main__.Opsin'>: aliases=['13_10']
<class '__main__.Opsin'>: aliases=['4_10']
<class '__main__.Opsin'>: aliases=['9_4', 'ChRger1']
<class '__main__.Opsin'>: aliases=['8_10']
<class '__main__.Opsin'>: aliases=['16_10']
<class '__main__.Opsin'>: aliases=['18_10']
<class '__main__.Opsin'>: aliases=['14_10']
<class '__main__.Opsin'>: aliases=['9_10']
<class '__main__.Opsin'>: aliases=['7_10']
<class '__main__.Opsin'>: aliases=['6_10']
<class '__main__.Opsin'>: aliases=['25_9', 'ChRger2']
<class '__main__.Opsin'>: aliases=['11_10', 'ChRger3']