-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing figures template. #171
Conversation
Here is
|
However, the bug is only triggered by certain odd schema configurations. In this case, I don't think you want to be subclassing NamedEntity. This has a special meaning for OntoGPT (sorry for the out-of-band secrets) |
After removing the two input_text: |
Fig. 3. Morphological characters. A–D. Head in dorsal view. A. Gerbelius nr. confluens. B. Voconia decorata sp. nov. C. Voconia pallidipes Stål, 1866. D. Voconia schoutedeni (Villiers, 1964) comb. nov. E–G. Head in lateral view. E. Voconia wegneri (Miller, 1954) comb. nov. F. Voconia dolichocephala sp. nov. G. Gerbelius typicus Distant, 1903. H. Voconia loki sp. nov., head and pronotum in dorsal view. I–J. Prosternum in ventrolateral view. I. Voconia mexicana sp. nov. J. Voconia bracata sp. nov. K–L. Pronotum in dorsal view. K. Voconia conradti (Jeannel, 1917) comb. nov. L. Voconia tuberculata sp. nov.
raw_completion_output: |-
title: Morphological characters
subpanel: A–D. Head in dorsal view.
subpanel: E–G. Head in lateral view.
subpanel: H. Voconia loki sp. nov., head and pronotum in dorsal view.
subpanel: I–J. Prosternum in ventrolateral view.
subpanel: K–L. Pronotum in dorsal view.
prompt: |+
Split the following piece of text into fields in the following format:
id: <The identifier for this figure subpanel>
text: <The text associated with this figure subpanel>
info: <any information from the overall figure caption that applies to that subpanel (which may be duplicated across other subpanels).>
Text:
K–L. Pronotum in dorsal view.
===
extracted_object:
title: Morphological characters
subpanel:
- id: K-L
text: Pronotum in dorsal view.
info: None which is disappointing but at least works! |
I get much better results with a hint: subpanel:
description: a subpanel of the figure
annotations:
prompt: >-
a semicolon separated list of descriptions of every panel in the text. Keep the panel id and text together.
for example: "1A: A side view of the foo; 1B: A frontal view of the foo"
multivalued: true
range: SubPanel results: extracted_object:
title: Morphological characters
subpanel:
- id: A
text: Head in dorsal view of Gerbelius nr. confluens
info: None
- id: B
text: Head in dorsal view of Voconia decorata sp. nov.
info: None
- text: C
info: Head in dorsal view of Voconia pallidipes Stål, 1866
- id: E
text: Head in lateral view of Voconia wegneri (Miller, 1954) comb. nov.
info: None
- id: F
text: Head in lateral view of Voconia dolichocephala sp. nov.
info: None
- id: G
text: Head in lateral view of Gerbelius typicus Distant, 1903
info: None
- id: N/A
text: 'H: Head and pronotum in dorsal view of Voconia loki sp. nov.'
info: N/A
- id: I
text: Prosternum in ventrolateral view of Voconia mexicana sp. nov.
info: None
- id: J
text: Prosternum in ventrolateral view of Voconia bracata sp. nov.
info: None
- id: K
text: Pronotum in dorsal view of Voconia conradti (Jeannel, 1917) comb. nov.
info: None
- id: L
text: Pronotum in dorsal view of Voconia tuberculata sp. nov.
info: None |
Merging this to retain the template, though it will likely need to be rebuilt (for pydantic classes) before use |
Currently seeing error: