Skip to content

AI summary of summaries can throw an exception #263

@bobular

Description

@bobular

Response doesn't follow schema! No dataset_ids!

java.lang.RuntimeException: Error parsing JSON response for gene summary.  Raw response string:
{"headline":"Expression Patterns Across Developmental Stages in <i>Plasmodium falciparum</i>","one_paragraph_summary":"<strong>Overview of gene expressi
on across experiments:</strong> <ul><li>Numerous transcriptomic studies demonstrate this gene's significant stage-specific expression during the intraer
ythrocytic development cycle of <i>Plasmodium falciparum</i>.</li><li>High expression levels are often observed during early stages like rings and early
 trophozoites, with some experiments highlighting peaks during the trophozoite or schizont stages depending on assay type and condition.</li><li>In spor
ozoite vs. asexual transcriptomes, differences in expression suggest lifecycle-stage-specific regulation tied to functional roles in parasite developmen
t or survival mechanisms.</li></ul> Overall, these patterns strongly suggest this gene plays critical roles in specific lifecycle transitions, potential
ly marker or effector pathways for survival or virulence.","topics":[{"headline":"Stationary Phase and IntrDevelopmental Cycles of <i>Plasmodium falcipa
rum</i>","one_sentence_summary":"Stragin highlighting potential highlights appear designates transitional.distributional simplistic corelationsinterpret
ation therapy output. functional"},{"headline":"Sexual stage-cohorted","one_sentence_summary":"The apparent targeted phased increase across sexable]{car
aligncovery."}]}

Caused by: org.json.JSONException: JSONObject["dataset_ids"] not found.
        at org.json.JSONObject.get(JSONObject.java:652) ~[json-20250107.jar:?]

Also that seems to be nonsense!?! (sorry about the newlines)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions