graphdb-workbench-tests 2.8.0-TR6 → 2.8.0-TR8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fixtures/connectors/get-retrieval-connector.json +1 -1
- package/fixtures/connectors/get-ttyg-chatgpt-connectors.json +188 -0
- package/fixtures/locale-en.json +54 -8
- package/fixtures/repositories/get-ttyg-repositories.json +28 -0
- package/fixtures/similarity/get-ttyg-similarity-connectors.json +46 -0
- package/fixtures/ttyg/agent/get-agent-defaults.json +41 -0
- package/fixtures/ttyg/agent/get-agent-list-new-agent.json +0 -72
- package/fixtures/ttyg/agent/get-agent.json +24 -0
- package/fixtures/ttyg/chats/get-chat.json +192 -0
- package/integration/home/workbench.home.spec.js +36 -4
- package/integration/ttyg/agent-list.spec.js +13 -1
- package/integration/ttyg/agent-select-menu.spec.js +5 -4
- package/integration/ttyg/chat-list.spec.js +70 -9
- package/integration/ttyg/chat-panel.spec.js +38 -1
- package/integration/ttyg/clone-agent.spec.js +3 -0
- package/integration/ttyg/create-agent.spec.js +178 -50
- package/integration/ttyg/edit-agent.spec.js +9 -3
- package/integration/ttyg/ttyg-view.spec.js +5 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/steps/alert-dialog-steps.js +25 -0
- package/steps/ttyg/chat-panel-steps.js +9 -0
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +31 -1
- package/steps/ttyg/ttyg-view-steps.js +19 -1
- package/stubs/connector-stubs.js +24 -0
- package/stubs/license-stubs.js +94 -0
- package/stubs/similarity-index-stubs.js +25 -0
- package/stubs/ttyg/ttyg-stubs.js +76 -39
- package/fixtures/ttyg/chats/get-chat-1.json +0 -43
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starwars": [
|
|
3
|
+
{
|
|
4
|
+
"values": {
|
|
5
|
+
"retrievalBearerToken": "<replace-this-with-actual-value>",
|
|
6
|
+
"types": [
|
|
7
|
+
"http://www.ontotext.com/example/wine#Wine"
|
|
8
|
+
],
|
|
9
|
+
"retrievalUrl": "http://localhost:8000",
|
|
10
|
+
"fields": [
|
|
11
|
+
{
|
|
12
|
+
"propertyChain": [
|
|
13
|
+
"localName()"
|
|
14
|
+
],
|
|
15
|
+
"fieldName": "subject"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"propertyChain": [
|
|
19
|
+
"$self"
|
|
20
|
+
],
|
|
21
|
+
"fieldName": "metadata",
|
|
22
|
+
"objectFields": [
|
|
23
|
+
{
|
|
24
|
+
"propertyChain": [
|
|
25
|
+
"http://www.ontotext.com/example/wine#hasWinery"
|
|
26
|
+
],
|
|
27
|
+
"fieldName": "author"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"valueFilter": "isExplicit($this)",
|
|
33
|
+
"propertyChain": [
|
|
34
|
+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
35
|
+
"localName()"
|
|
36
|
+
],
|
|
37
|
+
"fieldName": "type",
|
|
38
|
+
"fieldTextPrefix": "is a"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"propertyChain": [
|
|
42
|
+
"http://www.ontotext.com/example/wine#madeFromGrape",
|
|
43
|
+
"http://www.w3.org/2000/01/rdf-schema#label"
|
|
44
|
+
],
|
|
45
|
+
"fieldName": "grape",
|
|
46
|
+
"fieldTextPrefix": "made from {}"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"propertyChain": [
|
|
50
|
+
"http://www.ontotext.com/example/wine#hasSugar"
|
|
51
|
+
],
|
|
52
|
+
"fieldName": "sugar"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"propertyChain": [
|
|
56
|
+
"http://www.ontotext.com/example/wine#hasYear"
|
|
57
|
+
],
|
|
58
|
+
"fieldName": "year"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"name": "ChatGPT_starwars_one"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"values": {
|
|
66
|
+
"retrievalBearerToken": "<replace-this-with-actual-value>",
|
|
67
|
+
"types": [
|
|
68
|
+
"http://www.ontotext.com/example/wine#Wine"
|
|
69
|
+
],
|
|
70
|
+
"retrievalUrl": "http://localhost:8000",
|
|
71
|
+
"fields": [
|
|
72
|
+
{
|
|
73
|
+
"propertyChain": [
|
|
74
|
+
"localName()"
|
|
75
|
+
],
|
|
76
|
+
"fieldName": "subject"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"propertyChain": [
|
|
80
|
+
"$self"
|
|
81
|
+
],
|
|
82
|
+
"fieldName": "metadata",
|
|
83
|
+
"objectFields": [
|
|
84
|
+
{
|
|
85
|
+
"propertyChain": [
|
|
86
|
+
"http://www.ontotext.com/example/wine#hasWinery"
|
|
87
|
+
],
|
|
88
|
+
"fieldName": "author"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"valueFilter": "isExplicit($this)",
|
|
94
|
+
"propertyChain": [
|
|
95
|
+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
96
|
+
"localName()"
|
|
97
|
+
],
|
|
98
|
+
"fieldName": "type",
|
|
99
|
+
"fieldTextPrefix": "is a"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"propertyChain": [
|
|
103
|
+
"http://www.ontotext.com/example/wine#madeFromGrape",
|
|
104
|
+
"http://www.w3.org/2000/01/rdf-schema#label"
|
|
105
|
+
],
|
|
106
|
+
"fieldName": "grape",
|
|
107
|
+
"fieldTextPrefix": "made from {}"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"propertyChain": [
|
|
111
|
+
"http://www.ontotext.com/example/wine#hasSugar"
|
|
112
|
+
],
|
|
113
|
+
"fieldName": "sugar"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"propertyChain": [
|
|
117
|
+
"http://www.ontotext.com/example/wine#hasYear"
|
|
118
|
+
],
|
|
119
|
+
"fieldName": "year"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"name": "ChatGPT_starwars_two"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"biomarkers": [ {
|
|
127
|
+
"values": {
|
|
128
|
+
"retrievalBearerToken": "<replace-this-with-actual-value>",
|
|
129
|
+
"types": [
|
|
130
|
+
"http://www.ontotext.com/example/wine#Wine"
|
|
131
|
+
],
|
|
132
|
+
"retrievalUrl": "http://localhost:8000",
|
|
133
|
+
"fields": [
|
|
134
|
+
{
|
|
135
|
+
"propertyChain": [
|
|
136
|
+
"localName()"
|
|
137
|
+
],
|
|
138
|
+
"fieldName": "subject"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"propertyChain": [
|
|
142
|
+
"$self"
|
|
143
|
+
],
|
|
144
|
+
"fieldName": "metadata",
|
|
145
|
+
"objectFields": [
|
|
146
|
+
{
|
|
147
|
+
"propertyChain": [
|
|
148
|
+
"http://www.ontotext.com/example/wine#hasWinery"
|
|
149
|
+
],
|
|
150
|
+
"fieldName": "author"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"valueFilter": "isExplicit($this)",
|
|
156
|
+
"propertyChain": [
|
|
157
|
+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
158
|
+
"localName()"
|
|
159
|
+
],
|
|
160
|
+
"fieldName": "type",
|
|
161
|
+
"fieldTextPrefix": "is a"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"propertyChain": [
|
|
165
|
+
"http://www.ontotext.com/example/wine#madeFromGrape",
|
|
166
|
+
"http://www.w3.org/2000/01/rdf-schema#label"
|
|
167
|
+
],
|
|
168
|
+
"fieldName": "grape",
|
|
169
|
+
"fieldTextPrefix": "made from {}"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"propertyChain": [
|
|
173
|
+
"http://www.ontotext.com/example/wine#hasSugar"
|
|
174
|
+
],
|
|
175
|
+
"fieldName": "sugar"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"propertyChain": [
|
|
179
|
+
"http://www.ontotext.com/example/wine#hasYear"
|
|
180
|
+
],
|
|
181
|
+
"fieldName": "year"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"name": "ChatGPT_biomarkers_one"
|
|
186
|
+
}],
|
|
187
|
+
"ttyg-repo-1725518186812": []
|
|
188
|
+
}
|
package/fixtures/locale-en.json
CHANGED
|
@@ -232,8 +232,13 @@
|
|
|
232
232
|
"body": "Do you really want to delete <b>{{chatName}}</b>? All chat history will be lost."
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
|
+
"messages": {
|
|
236
|
+
"text_copy_successful": "Successfully copied to the clipboard.",
|
|
237
|
+
"text_copy_failed": "Failed copying to the clipboard."
|
|
238
|
+
},
|
|
235
239
|
"chat": {
|
|
236
240
|
"loading_chats": "Loading chats...",
|
|
241
|
+
"deleting_chat": "Deleting chats...",
|
|
237
242
|
"btn": {
|
|
238
243
|
"open_sidebar": {
|
|
239
244
|
"tooltip": "Open sidebar"
|
|
@@ -262,10 +267,17 @@
|
|
|
262
267
|
"rename_failure": "Failed to rename the conversation. Please try again.",
|
|
263
268
|
"delete_failure": "Failed to delete the conversation. Please try again.",
|
|
264
269
|
"export_failure": "Failed to export the conversation. Please try again."
|
|
270
|
+
},
|
|
271
|
+
"dialog": {
|
|
272
|
+
"chat_is_missing": {
|
|
273
|
+
"title": "Error",
|
|
274
|
+
"body": "Selected conversation cannot be found. Probably it was deleted."
|
|
275
|
+
}
|
|
265
276
|
}
|
|
266
277
|
},
|
|
267
278
|
"chat_panel": {
|
|
268
279
|
"hint": "Talk to your graph – simply ask a question!",
|
|
280
|
+
"deleted_agent": "<span class=\"text-warning\"><i class=\"fa-regular fa-triangle-exclamation fa-xs\"></i> deleted agent</span>",
|
|
269
281
|
"btn": {
|
|
270
282
|
"ask": {
|
|
271
283
|
"label": "Ask"
|
|
@@ -275,19 +287,35 @@
|
|
|
275
287
|
},
|
|
276
288
|
"copy": {
|
|
277
289
|
"tooltip": "Copy"
|
|
290
|
+
},
|
|
291
|
+
"explain_response": {
|
|
292
|
+
"tooltip": "Explain response"
|
|
293
|
+
},
|
|
294
|
+
"derive_answer": {
|
|
295
|
+
"label": "How did you derive this answer?",
|
|
296
|
+
"hint": "Hint: you can also ask the model, for example"
|
|
278
297
|
}
|
|
279
298
|
},
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
299
|
+
"labels": {
|
|
300
|
+
"query_method": "Query method",
|
|
301
|
+
"raw_query": "Raw query",
|
|
302
|
+
"sparql_query": "SPARQL query"
|
|
303
|
+
|
|
304
|
+
},
|
|
305
|
+
"query_name": {
|
|
306
|
+
"sparql_search":"SPARQL",
|
|
307
|
+
"fts_search": "Full-text search",
|
|
308
|
+
"similarity_search": "Similarity search",
|
|
309
|
+
"retrieval_search": "ChatGPT retrieval connector"
|
|
283
310
|
},
|
|
284
311
|
"dialog": {
|
|
285
|
-
"
|
|
286
|
-
"body": "If you proceed with
|
|
287
|
-
},
|
|
288
|
-
"confirm_repository_change_before_open_connectors": {
|
|
289
|
-
"body": "If you proceed with creating the ChatGPT retrieval connector, GraphDB will open in a new tab and switch to the <b>{{repositoryId}}</b> repository."
|
|
312
|
+
"confirm_repository_change": {
|
|
313
|
+
"body": "If you proceed with executing of SPARQL query, GraphDB will open in a new tab and switch to the <b>{{repositoryId}}</b> repository."
|
|
290
314
|
}
|
|
315
|
+
},
|
|
316
|
+
"messages": {
|
|
317
|
+
"explain_response_failure": "Failed to retrieve the explanation for the response.",
|
|
318
|
+
"agent_changed_info": "Agent changed to <b> {{agentName}} </b>"
|
|
291
319
|
}
|
|
292
320
|
},
|
|
293
321
|
"agent": {
|
|
@@ -355,6 +383,11 @@
|
|
|
355
383
|
"message_1": "You must",
|
|
356
384
|
"message_2": "create a similarity index",
|
|
357
385
|
"message_3": "to use this method"
|
|
386
|
+
},
|
|
387
|
+
"btn": {
|
|
388
|
+
"reload": {
|
|
389
|
+
"tooltip": "Refresh the similarity indexes."
|
|
390
|
+
}
|
|
358
391
|
}
|
|
359
392
|
},
|
|
360
393
|
"similarity_threshold": {
|
|
@@ -366,6 +399,11 @@
|
|
|
366
399
|
"message_1": "You must",
|
|
367
400
|
"message_2": "create ChatGPT retrieval connector",
|
|
368
401
|
"message_3": "to use this method"
|
|
402
|
+
},
|
|
403
|
+
"btn": {
|
|
404
|
+
"reload": {
|
|
405
|
+
"tooltip": "Refresh the ChatGPT retrieval connectors."
|
|
406
|
+
}
|
|
369
407
|
}
|
|
370
408
|
},
|
|
371
409
|
"connector_id": {
|
|
@@ -403,6 +441,14 @@
|
|
|
403
441
|
"save": {
|
|
404
442
|
"label": "Save"
|
|
405
443
|
}
|
|
444
|
+
},
|
|
445
|
+
"dialog": {
|
|
446
|
+
"confirm_repository_change_before_open_similarity": {
|
|
447
|
+
"body": "If you proceed with creating the similarity index, GraphDB will open in a new tab and switch to the <b>{{repositoryId}}</b> repository."
|
|
448
|
+
},
|
|
449
|
+
"confirm_repository_change_before_open_connectors": {
|
|
450
|
+
"body": "If you proceed with creating the ChatGPT retrieval connector, GraphDB will open in a new tab and switch to the <b>{{repositoryId}}</b> repository."
|
|
451
|
+
}
|
|
406
452
|
}
|
|
407
453
|
},
|
|
408
454
|
"delete_agent_modal": {
|
|
@@ -41,6 +41,34 @@
|
|
|
41
41
|
"writable": true,
|
|
42
42
|
"unsupported": false,
|
|
43
43
|
"state": "INACTIVE"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "Fedx_repository",
|
|
47
|
+
"title": "",
|
|
48
|
+
"uri": "http://localhost:8080/graphdb/repositories/Fedx_repository",
|
|
49
|
+
"externalUrl": "http://boyantonchev:9000/repositories/Fedx_repository",
|
|
50
|
+
"local": true,
|
|
51
|
+
"type": "fedx",
|
|
52
|
+
"sesameType": "graphdb:FedXRepository",
|
|
53
|
+
"location": "",
|
|
54
|
+
"readable": true,
|
|
55
|
+
"writable": true,
|
|
56
|
+
"unsupported": false,
|
|
57
|
+
"state": "INACTIVE"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "Ontop_repository",
|
|
61
|
+
"title": "",
|
|
62
|
+
"uri": "http://localhost:8080/graphdb/repositories/Fedx_repository",
|
|
63
|
+
"externalUrl": "http://boyantonchev:9000/repositories/Fedx_repository",
|
|
64
|
+
"local": true,
|
|
65
|
+
"type": "ontop",
|
|
66
|
+
"sesameType": "graphdb:FedXRepository",
|
|
67
|
+
"location": "",
|
|
68
|
+
"readable": true,
|
|
69
|
+
"writable": true,
|
|
70
|
+
"unsupported": false,
|
|
71
|
+
"state": "INACTIVE"
|
|
44
72
|
}
|
|
45
73
|
]
|
|
46
74
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"starwars": [
|
|
3
|
+
{
|
|
4
|
+
"name": "similarity_index_starwars_one",
|
|
5
|
+
"options": "-termweight idf",
|
|
6
|
+
"selectQuery": "SELECT ?documentID ?documentText {\n\t?documentID ?p ?documentText .\n\tfilter(isLiteral(?documentText))\n}",
|
|
7
|
+
"searchQuery": "PREFIX :<http://www.ontotext.com/graphdb/similarity/>\nPREFIX similarity-index:<http://www.ontotext.com/graphdb/similarity/instance/>\nPREFIX pubo: <http://ontology.ontotext.com/publishing#>\n\nSELECT ?documentID ?score {\n ?search a ?index ;\n ?searchType ?query;\n :searchParameters ?parameters;\n ?resultType ?result .\n ?result :value ?documentID ;\n :score ?score.\n}",
|
|
8
|
+
"analogicalQuery": "",
|
|
9
|
+
"stopList": null,
|
|
10
|
+
"analyzer": "org.apache.lucene.analysis.en.EnglishAnalyzer",
|
|
11
|
+
"status": "BUILT",
|
|
12
|
+
"infer": true,
|
|
13
|
+
"sameAs": true,
|
|
14
|
+
"type": "text"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "similarity_index_starwars_two",
|
|
18
|
+
"options": "-termweight idf",
|
|
19
|
+
"selectQuery": "SELECT ?documentID ?documentText {\n\t?documentID ?p ?documentText .\n\tfilter(isLiteral(?documentText))\n}",
|
|
20
|
+
"searchQuery": "PREFIX :<http://www.ontotext.com/graphdb/similarity/>\nPREFIX similarity-index:<http://www.ontotext.com/graphdb/similarity/instance/>\nPREFIX pubo: <http://ontology.ontotext.com/publishing#>\n\nSELECT ?documentID ?score {\n ?search a ?index ;\n ?searchType ?query;\n :searchParameters ?parameters;\n ?resultType ?result .\n ?result :value ?documentID ;\n :score ?score.\n}",
|
|
21
|
+
"analogicalQuery": "",
|
|
22
|
+
"stopList": null,
|
|
23
|
+
"analyzer": "org.apache.lucene.analysis.en.EnglishAnalyzer",
|
|
24
|
+
"status": "BUILT",
|
|
25
|
+
"infer": true,
|
|
26
|
+
"sameAs": true,
|
|
27
|
+
"type": "text"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"biomarkers": [
|
|
31
|
+
{
|
|
32
|
+
"name": "similarity_index_biomarkers_one",
|
|
33
|
+
"options": "-termweight idf",
|
|
34
|
+
"selectQuery": "SELECT ?documentID ?documentText {\n\t?documentID ?p ?documentText .\n\tfilter(isLiteral(?documentText))\n}",
|
|
35
|
+
"searchQuery": "PREFIX :<http://www.ontotext.com/graphdb/similarity/>\nPREFIX similarity-index:<http://www.ontotext.com/graphdb/similarity/instance/>\nPREFIX pubo: <http://ontology.ontotext.com/publishing#>\n\nSELECT ?documentID ?score {\n ?search a ?index ;\n ?searchType ?query;\n :searchParameters ?parameters;\n ?resultType ?result .\n ?result :value ?documentID ;\n :score ?score.\n}",
|
|
36
|
+
"analogicalQuery": "",
|
|
37
|
+
"stopList": null,
|
|
38
|
+
"analyzer": "org.apache.lucene.analysis.en.EnglishAnalyzer",
|
|
39
|
+
"status": "BUILT",
|
|
40
|
+
"infer": true,
|
|
41
|
+
"sameAs": true,
|
|
42
|
+
"type": "text"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"ttyg-repo-1725518186812": []
|
|
46
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "id",
|
|
3
|
+
"name": "Quadro",
|
|
4
|
+
"model": "gpt-4o",
|
|
5
|
+
"temperature": 0.7,
|
|
6
|
+
"topP": 1.0,
|
|
7
|
+
"seed": 0,
|
|
8
|
+
"repositoryId": "test-repository",
|
|
9
|
+
"instructions": {
|
|
10
|
+
"systemInstruction": "You are a helpful, knowledgeable, and friendly assistant. Your goal is to provide clear and accurate information while being polite, respectful, and professional.",
|
|
11
|
+
"userInstruction": "If you need to write a SPARQL query, use only the classes and properties provided in the schema and don't invent or guess any. Always try to return human-readable names or labels and not only the IRIs. If SPARQL fails to provide the necessary information you can try another tool too."
|
|
12
|
+
},
|
|
13
|
+
"assistantExtractionMethods": [
|
|
14
|
+
{
|
|
15
|
+
"method": "sparql_search",
|
|
16
|
+
"ontologyGraph": "http://example.com",
|
|
17
|
+
"sparqlQuery": "CONSTRUCT {?s ?p ?o} WHERE {GRAPH <http://example.org/ontology> {?s ?p ?o .}}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"method": "fts_search",
|
|
21
|
+
"maxNumberOfTriplesPerCall": 0
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"method": "similarity_search",
|
|
25
|
+
"similarityIndex": "similarity-index",
|
|
26
|
+
"similarityIndexThreshold": 0.6,
|
|
27
|
+
"maxNumberOfTriplesPerCall": 0
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"method": "retrieval_search",
|
|
31
|
+
"retrievalConnectorInstance": "retrieval-connector",
|
|
32
|
+
"queryTemplate": "{\"query\": \"string\"}",
|
|
33
|
+
"maxNumberOfTriplesPerCall": 0
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"additionalExtractionMethods": [
|
|
37
|
+
{
|
|
38
|
+
"method": "iri_discovery_search"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -17,77 +17,5 @@
|
|
|
17
17
|
"sparqlQuery": "select ?s ?p ?o where {?s ?p ?o .}"
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"id": "asst_gAPcrHQQ9ZIxD5eXWH2BNFfo",
|
|
23
|
-
"name": "agent-1",
|
|
24
|
-
"model": "gpt-4o",
|
|
25
|
-
"temperature": 0.0,
|
|
26
|
-
"topP": 0.0,
|
|
27
|
-
"seed": null,
|
|
28
|
-
"repositoryId": "starwars",
|
|
29
|
-
"instructions": {
|
|
30
|
-
"systemInstruction": "",
|
|
31
|
-
"userInstruction": ""
|
|
32
|
-
},
|
|
33
|
-
"assistantExtractionMethods": [
|
|
34
|
-
{
|
|
35
|
-
"ftsMethod": "fts_search"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "asst_qMyCpCBmqxV9I2B8UoMfFzc5",
|
|
41
|
-
"name": "agent-2",
|
|
42
|
-
"model": "gpt-4o",
|
|
43
|
-
"temperature": 0.0,
|
|
44
|
-
"topP": 0.0,
|
|
45
|
-
"seed": null,
|
|
46
|
-
"repositoryId": null,
|
|
47
|
-
"instructions": {
|
|
48
|
-
"systemInstruction": "string\n\nstring",
|
|
49
|
-
"userInstruction": "string"
|
|
50
|
-
},
|
|
51
|
-
"assistantExtractionMethods": [
|
|
52
|
-
{
|
|
53
|
-
"ftsMethod": "fts_search"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"id": "asst_Cr0RxobrY07WpOvvyQilEWMI",
|
|
59
|
-
"name": "Databricks-general-unbiased",
|
|
60
|
-
"model": "gpt-4o-2024-08-06",
|
|
61
|
-
"temperature": 1.0,
|
|
62
|
-
"topP": 1.0,
|
|
63
|
-
"seed": null,
|
|
64
|
-
"repositoryId": "starwars",
|
|
65
|
-
"instructions": {
|
|
66
|
-
"systemInstruction": "You are helpful assistant in discovering information regarding diagnostic biomarkers.",
|
|
67
|
-
"userInstruction": null
|
|
68
|
-
},
|
|
69
|
-
"assistantExtractionMethods": [
|
|
70
|
-
{
|
|
71
|
-
"ftsMethod": "fts_search"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"id": "asst_5GxNYTdaOh7Tl6lLl6Pya2aH",
|
|
77
|
-
"name": "Databricks-biomarkers",
|
|
78
|
-
"model": "gpt-3.5-turbo-0125",
|
|
79
|
-
"temperature": 1.0,
|
|
80
|
-
"topP": 1.0,
|
|
81
|
-
"seed": null,
|
|
82
|
-
"repositoryId": "biomarkers",
|
|
83
|
-
"instructions": {
|
|
84
|
-
"systemInstruction": "You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",
|
|
85
|
-
"userInstruction": null
|
|
86
|
-
},
|
|
87
|
-
"assistantExtractionMethods": [
|
|
88
|
-
{
|
|
89
|
-
"ftsMethod": "fts_search"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
20
|
}
|
|
93
21
|
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "asst_G8EtHyT8kAGeDmCa3Nh6y74v",
|
|
3
|
+
"name": "Test agent",
|
|
4
|
+
"model": "gpt-4o",
|
|
5
|
+
"temperature": 0.7,
|
|
6
|
+
"topP": 1.0,
|
|
7
|
+
"repositoryId": "starwars",
|
|
8
|
+
"instructions": {
|
|
9
|
+
"systemInstruction": null,
|
|
10
|
+
"userInstruction": null
|
|
11
|
+
},
|
|
12
|
+
"assistantExtractionMethods": [
|
|
13
|
+
{
|
|
14
|
+
"method": "sparql_search",
|
|
15
|
+
"ontologyGraph": null,
|
|
16
|
+
"sparqlQuery": "CONSTRUCT {\n ?s ?p ?o\n} WHERE {\n GRAPH <http://example.com/sw-ont> {\n ?s ?p ?o\n }\n}"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"additionalExtractionMethods": [
|
|
20
|
+
{
|
|
21
|
+
"method": "iri_discovery_search"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|