Skip to content

Commit

Permalink
Merge pull request #12 from sarda-devesh/main
Browse files Browse the repository at this point in the history
Fix server to include types when processing user feedback
  • Loading branch information
sarda-devesh authored Nov 11, 2024
2 parents efa1f54 + 0bb7082 commit 29d1551
Show file tree
Hide file tree
Showing 10 changed files with 935 additions and 643 deletions.
34 changes: 0 additions & 34 deletions macrostrat_db_insertion/example_request.json

This file was deleted.

83 changes: 83 additions & 0 deletions macrostrat_db_insertion/example_requests/feedback_examples/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"nodes": [
{
"id": 392536,
"type": 4,
"name": "Tree",
"txt_range": [
[
597,
601
]
],
"reasoning": null,
"match": null
},
{
"id": 392535,
"type": 4,
"name": "Gowganda",
"txt_range": [
[
579,
587
]
],
"reasoning": null,
"match": null
},
{
"id": -1,
"type": 1,
"name": "mafic",
"txt_range": [
[
305,
310
]
],
"reasoning": null,
"match": null
},
{
"id": -2,
"type": 2,
"name": "apparent",
"txt_range": [
[
207,
215
]
],
"reasoning": null,
"match": null
},
{
"id": -3,
"type": 3,
"name": "feldspar",
"txt_range": [
[
64,
72
]
],
"reasoning": null,
"match": null
}
],
"edges": [
{
"source": -1,
"dest": -2
},
{
"source": -2,
"dest": -3
}
],
"sourceTextId": 22938,
"supersedesRunIds": [
26718
]
}
278 changes: 278 additions & 0 deletions macrostrat_db_insertion/example_requests/feedback_examples/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
{
"nodes": [
{
"id": 392239,
"type": 4,
"name": "mediumto",
"txt_range": [
[
986,
994
]
],
"reasoning": null,
"match": null
},
{
"id": 392238,
"type": 4,
"name": "DR3",
"txt_range": [
[
829,
832
]
],
"reasoning": null,
"match": null
},
{
"id": 392237,
"type": 4,
"name": "Fig.",
"txt_range": [
[
764,
768
]
],
"reasoning": null,
"match": null
},
{
"id": 392235,
"type": 4,
"name": "Suczek",
"txt_range": [
[
476,
482
]
],
"reasoning": null,
"match": null
},
{
"id": 392236,
"type": 10,
"name": "Dickinson et al.",
"txt_range": [
[
492,
508
]
],
"reasoning": null,
"match": null
},
{
"id": 392233,
"type": 4,
"name": "Ingersoll et al.",
"txt_range": [
[
360,
376
]
],
"reasoning": null,
"match": null
},
{
"id": 392232,
"type": 11,
"name": "Gazzi Dickinson",
"txt_range": [
[
320,
335
]
],
"reasoning": null,
"match": null
},
{
"id": 392234,
"type": 8,
"name": "Dickinson",
"txt_range": [
[
326,
335
]
],
"reasoning": null,
"match": null
},
{
"id": 392231,
"type": 4,
"name": "Villeneuve",
"txt_range": [
[
238,
248
]
],
"reasoning": null,
"match": null
},
{
"id": 392240,
"type": 4,
"name": "DeCelles et al.",
"txt_range": [
[
1039,
1054
]
],
"reasoning": null,
"match": null
},
{
"id": 392228,
"type": 4,
"name": "North",
"txt_range": [
[
44,
49
]
],
"reasoning": null,
"match": null
},
{
"id": 392227,
"type": 1,
"name": "North American basement",
"txt_range": [
[
44,
67
]
],
"reasoning": null,
"match": null
},
{
"id": 392229,
"type": 4,
"name": "Ross",
"txt_range": [
[
217,
221
]
],
"reasoning": null,
"match": null
},
{
"id": 392219,
"type": 1,
"name": "Ga Gehrels",
"txt_range": [
[
202,
212
]
],
"reasoning": null,
"match": null
},
{
"id": 392220,
"type": 2,
"name": "rocks",
"txt_range": [
[
81,
86
]
],
"reasoning": null,
"match": null
},
{
"id": 392226,
"type": 3,
"name": "feldspar",
"txt_range": [
[
155,
163
]
],
"reasoning": null,
"match": {
"type": "lith_att",
"id": 96
}
},
{
"id": 392224,
"type": 3,
"name": "quartz",
"txt_range": [
[
144,
150
]
],
"reasoning": null,
"match": {
"type": "lith_att",
"id": 94
}
},
{
"id": 392222,
"type": 3,
"name": "Sedimentary",
"txt_range": [
[
69,
80
]
],
"reasoning": null,
"match": null
}
],
"edges": [
{
"source": 392235,
"dest": 392236
},
{
"source": 392232,
"dest": 392234
},
{
"source": 392227,
"dest": 392229
},
{
"source": 392219,
"dest": 392220
},
{
"source": 392220,
"dest": 392226
},
{
"source": 392220,
"dest": 392224
},
{
"source": 392220,
"dest": 392222
}
],
"sourceTextId": 22924,
"supersedesRunIds": [
26704
]
}
Loading

0 comments on commit 29d1551

Please sign in to comment.