@digipair/skill-chatbot 0.29.5 → 0.30.0
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/index.cjs.js +28 -11
- package/index.esm.js +29 -2
- package/libs/skill-chatbot/src/lib/skill-chatbot.d.ts +0 -12
- package/package.json +1 -1
- package/schema.en.json +0 -315
- package/schema.fr.json +0 -316
- package/schema.json +0 -315
- package/few_shot.cjs.js +0 -1159
- package/few_shot.esm.js +0 -1156
- package/index.cjs2.js +0 -43275
- package/index.esm2.js +0 -43260
package/schema.fr.json
CHANGED
@@ -8,322 +8,6 @@
|
|
8
8
|
"x-icon": "🤖"
|
9
9
|
},
|
10
10
|
"paths": {
|
11
|
-
"/chatbot": {
|
12
|
-
"post": {
|
13
|
-
"tags": ["boost"],
|
14
|
-
"summary": "Retourner au chatbot",
|
15
|
-
"parameters": [
|
16
|
-
{
|
17
|
-
"name": "assistant",
|
18
|
-
"required": true,
|
19
|
-
"description": "Reponse de l'assistant",
|
20
|
-
"schema": {
|
21
|
-
"type": "string"
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"name": "command",
|
26
|
-
"required": false,
|
27
|
-
"description": "Commande exécutée sur le chatbot",
|
28
|
-
"schema": {
|
29
|
-
"type": "array",
|
30
|
-
"items": {
|
31
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
32
|
-
}
|
33
|
-
}
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "sources",
|
37
|
-
"required": false,
|
38
|
-
"description": "Liste des sources utilisées pour répondre a l'utilisateur",
|
39
|
-
"schema": {
|
40
|
-
"type": "array",
|
41
|
-
"items": {
|
42
|
-
"type": "object"
|
43
|
-
}
|
44
|
-
}
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"name": "logs",
|
48
|
-
"required": false,
|
49
|
-
"description": "Informations utiles pour débogguer le raisonnement",
|
50
|
-
"schema": {
|
51
|
-
"type": "object"
|
52
|
-
}
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"name": "model",
|
56
|
-
"summary": "Modèle LLM",
|
57
|
-
"required": false,
|
58
|
-
"description": "Modèle LLM à charger",
|
59
|
-
"schema": {
|
60
|
-
"type": "array",
|
61
|
-
"items": {
|
62
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
63
|
-
}
|
64
|
-
}
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"name": "embeddings",
|
68
|
-
"summary": "Modèle d'embeddings",
|
69
|
-
"required": false,
|
70
|
-
"description": "Modèle d'embeddings à charger",
|
71
|
-
"schema": {
|
72
|
-
"type": "array",
|
73
|
-
"items": {
|
74
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
75
|
-
}
|
76
|
-
}
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"name": "baseUrlVespa",
|
80
|
-
"required": false,
|
81
|
-
"description": "Url du serveur Vespa",
|
82
|
-
"schema": {
|
83
|
-
"type": "string"
|
84
|
-
}
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"name": "promptSummary",
|
88
|
-
"required": false,
|
89
|
-
"description": "Prompt utilisé pour le résumé système",
|
90
|
-
"schema": {
|
91
|
-
"type": "string"
|
92
|
-
}
|
93
|
-
}
|
94
|
-
],
|
95
|
-
"x-events": []
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"/find": {
|
99
|
-
"post": {
|
100
|
-
"tags": ["service"],
|
101
|
-
"summary": "Récupérer dans la conversation",
|
102
|
-
"description": "Récupérer des données dans l'historique de conversation",
|
103
|
-
"parameters": [
|
104
|
-
{
|
105
|
-
"name": "limit",
|
106
|
-
"required": false,
|
107
|
-
"description": "limit",
|
108
|
-
"schema": {
|
109
|
-
"type": "number"
|
110
|
-
}
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"name": "orderby",
|
114
|
-
"required": false,
|
115
|
-
"description": "orderby",
|
116
|
-
"schema": {
|
117
|
-
"type": "string"
|
118
|
-
}
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"name": "query",
|
122
|
-
"required": true,
|
123
|
-
"description": "query",
|
124
|
-
"schema": {
|
125
|
-
"type": "string"
|
126
|
-
}
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "baseUrl",
|
130
|
-
"required": false,
|
131
|
-
"description": "Url du serveur Vespa",
|
132
|
-
"schema": {
|
133
|
-
"type": "string"
|
134
|
-
}
|
135
|
-
}
|
136
|
-
],
|
137
|
-
"x-events": []
|
138
|
-
}
|
139
|
-
},
|
140
|
-
"/search": {
|
141
|
-
"post": {
|
142
|
-
"tags": ["service"],
|
143
|
-
"summary": "Rechercher dans la conversation",
|
144
|
-
"description": "Rechercher des données dans l'historique de conversation",
|
145
|
-
"parameters": [
|
146
|
-
{
|
147
|
-
"name": "embeddings",
|
148
|
-
"summary": "Modèle d'embeddings",
|
149
|
-
"required": false,
|
150
|
-
"description": "Modèle d'embeddings à charger",
|
151
|
-
"schema": {
|
152
|
-
"type": "array",
|
153
|
-
"items": {
|
154
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
155
|
-
}
|
156
|
-
}
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"name": "limit",
|
160
|
-
"required": false,
|
161
|
-
"description": "limit",
|
162
|
-
"schema": {
|
163
|
-
"type": "number"
|
164
|
-
}
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"name": "orderby",
|
168
|
-
"required": false,
|
169
|
-
"description": "orderby",
|
170
|
-
"schema": {
|
171
|
-
"type": "string"
|
172
|
-
}
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"name": "targetHits",
|
176
|
-
"required": false,
|
177
|
-
"description": "targetHits",
|
178
|
-
"schema": {
|
179
|
-
"type": "number"
|
180
|
-
}
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"name": "query",
|
184
|
-
"required": true,
|
185
|
-
"description": "query",
|
186
|
-
"schema": {
|
187
|
-
"type": "string"
|
188
|
-
}
|
189
|
-
},
|
190
|
-
|
191
|
-
{
|
192
|
-
"name": "baseUrl",
|
193
|
-
"required": false,
|
194
|
-
"description": "Url du serveur Vespa",
|
195
|
-
"schema": {
|
196
|
-
"type": "string"
|
197
|
-
}
|
198
|
-
},
|
199
|
-
{
|
200
|
-
"name": "language",
|
201
|
-
"required": false,
|
202
|
-
"description": "Langue de recherche",
|
203
|
-
"schema": {
|
204
|
-
"type": "string"
|
205
|
-
}
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"name": "filter",
|
209
|
-
"required": false,
|
210
|
-
"description": "Filtre de recherche",
|
211
|
-
"schema": {
|
212
|
-
"type": "string"
|
213
|
-
}
|
214
|
-
}
|
215
|
-
],
|
216
|
-
"x-events": []
|
217
|
-
}
|
218
|
-
},
|
219
|
-
"/history": {
|
220
|
-
"post": {
|
221
|
-
"tags": ["service"],
|
222
|
-
"summary": "Historique",
|
223
|
-
"parameters": [
|
224
|
-
{
|
225
|
-
"name": "baseUrl",
|
226
|
-
"summary": "Url du serveur Vespa",
|
227
|
-
"required": false,
|
228
|
-
"description": "Url du serveur Vespa",
|
229
|
-
"schema": {
|
230
|
-
"type": "string"
|
231
|
-
}
|
232
|
-
},
|
233
|
-
{
|
234
|
-
"name": "maxHistory",
|
235
|
-
"summary": "Nombre d'éléments maximum",
|
236
|
-
"required": false,
|
237
|
-
"description": "orderby",
|
238
|
-
"schema": {
|
239
|
-
"type": "number"
|
240
|
-
}
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"name": "system",
|
244
|
-
"summary": "Système",
|
245
|
-
"required": false,
|
246
|
-
"description": "targetHits",
|
247
|
-
"schema": {
|
248
|
-
"type": "string"
|
249
|
-
}
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"name": "question",
|
253
|
-
"summary": "Question de l'assistant",
|
254
|
-
"required": false,
|
255
|
-
"description": "Question de l'assistant",
|
256
|
-
"schema": {
|
257
|
-
"type": "string"
|
258
|
-
}
|
259
|
-
}
|
260
|
-
],
|
261
|
-
"x-events": []
|
262
|
-
}
|
263
|
-
},
|
264
|
-
"/getRole": {
|
265
|
-
"post": {
|
266
|
-
"tags": ["service"],
|
267
|
-
"summary": "Récupération du rôle",
|
268
|
-
"parameters": [
|
269
|
-
{
|
270
|
-
"name": "role",
|
271
|
-
"summary": "Nom",
|
272
|
-
"required": true,
|
273
|
-
"description": "Nom du rôle",
|
274
|
-
"schema": {
|
275
|
-
"type": "string"
|
276
|
-
}
|
277
|
-
},
|
278
|
-
{
|
279
|
-
"name": "baseUrl",
|
280
|
-
"summary": "Url du serveur Vespa",
|
281
|
-
"required": false,
|
282
|
-
"description": "Url du serveur Vespa",
|
283
|
-
"schema": {
|
284
|
-
"type": "string"
|
285
|
-
}
|
286
|
-
}
|
287
|
-
],
|
288
|
-
"x-events": []
|
289
|
-
}
|
290
|
-
},
|
291
|
-
"/setRole": {
|
292
|
-
"post": {
|
293
|
-
"tags": ["service"],
|
294
|
-
"summary": "Mise à jour du rôle",
|
295
|
-
"parameters": [
|
296
|
-
{
|
297
|
-
"name": "role",
|
298
|
-
"summary": "Nom",
|
299
|
-
"required": true,
|
300
|
-
"description": "Nom du rôle",
|
301
|
-
"schema": {
|
302
|
-
"type": "string"
|
303
|
-
}
|
304
|
-
},
|
305
|
-
{
|
306
|
-
"name": "value",
|
307
|
-
"summary": "Valeur",
|
308
|
-
"required": true,
|
309
|
-
"description": "Valeur du rôle",
|
310
|
-
"schema": {
|
311
|
-
"type": "string"
|
312
|
-
}
|
313
|
-
},
|
314
|
-
{
|
315
|
-
"name": "baseUrl",
|
316
|
-
"summary": "Url du serveur Vespa",
|
317
|
-
"required": false,
|
318
|
-
"description": "Url du serveur Vespa",
|
319
|
-
"schema": {
|
320
|
-
"type": "string"
|
321
|
-
}
|
322
|
-
}
|
323
|
-
],
|
324
|
-
"x-events": []
|
325
|
-
}
|
326
|
-
},
|
327
11
|
"/answer": {
|
328
12
|
"post": {
|
329
13
|
"tags": ["boost"],
|
package/schema.json
CHANGED
@@ -8,321 +8,6 @@
|
|
8
8
|
"x-icon": "🤖"
|
9
9
|
},
|
10
10
|
"paths": {
|
11
|
-
"/chatbot": {
|
12
|
-
"post": {
|
13
|
-
"tags": ["boost"],
|
14
|
-
"summary": "Return to the chatbot",
|
15
|
-
"parameters": [
|
16
|
-
{
|
17
|
-
"name": "assistant",
|
18
|
-
"required": true,
|
19
|
-
"description": "Response from the assistant",
|
20
|
-
"schema": {
|
21
|
-
"type": "string"
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"name": "command",
|
26
|
-
"required": false,
|
27
|
-
"description": "Command executed on the chatbot",
|
28
|
-
"schema": {
|
29
|
-
"type": "array",
|
30
|
-
"items": {
|
31
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
32
|
-
}
|
33
|
-
}
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "sources",
|
37
|
-
"required": false,
|
38
|
-
"description": "List of sources used to respond to the user",
|
39
|
-
"schema": {
|
40
|
-
"type": "array",
|
41
|
-
"items": {
|
42
|
-
"type": "object"
|
43
|
-
}
|
44
|
-
}
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"name": "logs",
|
48
|
-
"required": false,
|
49
|
-
"description": "Useful information for debugging reasoning",
|
50
|
-
"schema": {
|
51
|
-
"type": "object"
|
52
|
-
}
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"name": "model",
|
56
|
-
"summary": "LLM Model",
|
57
|
-
"required": false,
|
58
|
-
"description": "LLM model to load",
|
59
|
-
"schema": {
|
60
|
-
"type": "array",
|
61
|
-
"items": {
|
62
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
63
|
-
}
|
64
|
-
}
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"name": "embeddings",
|
68
|
-
"summary": "Embeddings Model",
|
69
|
-
"required": false,
|
70
|
-
"description": "Embeddings model to load",
|
71
|
-
"schema": {
|
72
|
-
"type": "array",
|
73
|
-
"items": {
|
74
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
75
|
-
}
|
76
|
-
}
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"name": "baseUrlVespa",
|
80
|
-
"required": false,
|
81
|
-
"description": "URL of the Vespa server",
|
82
|
-
"schema": {
|
83
|
-
"type": "string"
|
84
|
-
}
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"name": "promptSummary",
|
88
|
-
"required": false,
|
89
|
-
"description": "Prompt used for the system summary",
|
90
|
-
"schema": {
|
91
|
-
"type": "string"
|
92
|
-
}
|
93
|
-
}
|
94
|
-
],
|
95
|
-
"x-events": []
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"/find": {
|
99
|
-
"post": {
|
100
|
-
"tags": ["service"],
|
101
|
-
"summary": "Retrieve from the conversation",
|
102
|
-
"description": "Retrieve data from the conversation history",
|
103
|
-
"parameters": [
|
104
|
-
{
|
105
|
-
"name": "limit",
|
106
|
-
"required": false,
|
107
|
-
"description": "limit",
|
108
|
-
"schema": {
|
109
|
-
"type": "number"
|
110
|
-
}
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"name": "orderby",
|
114
|
-
"required": false,
|
115
|
-
"description": "orderby",
|
116
|
-
"schema": {
|
117
|
-
"type": "string"
|
118
|
-
}
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"name": "query",
|
122
|
-
"required": true,
|
123
|
-
"description": "query",
|
124
|
-
"schema": {
|
125
|
-
"type": "string"
|
126
|
-
}
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "baseUrl",
|
130
|
-
"required": false,
|
131
|
-
"description": "URL of the Vespa server",
|
132
|
-
"schema": {
|
133
|
-
"type": "string"
|
134
|
-
}
|
135
|
-
}
|
136
|
-
],
|
137
|
-
"x-events": []
|
138
|
-
}
|
139
|
-
},
|
140
|
-
"/search": {
|
141
|
-
"post": {
|
142
|
-
"tags": ["service"],
|
143
|
-
"summary": "Search in the conversation",
|
144
|
-
"description": "Search for data in the conversation history",
|
145
|
-
"parameters": [
|
146
|
-
{
|
147
|
-
"name": "embeddings",
|
148
|
-
"summary": "Embeddings Model",
|
149
|
-
"required": false,
|
150
|
-
"description": "Embeddings model to load",
|
151
|
-
"schema": {
|
152
|
-
"type": "array",
|
153
|
-
"items": {
|
154
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
155
|
-
}
|
156
|
-
}
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"name": "limit",
|
160
|
-
"required": false,
|
161
|
-
"description": "limit",
|
162
|
-
"schema": {
|
163
|
-
"type": "number"
|
164
|
-
}
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"name": "orderby",
|
168
|
-
"required": false,
|
169
|
-
"description": "orderby",
|
170
|
-
"schema": {
|
171
|
-
"type": "string"
|
172
|
-
}
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"name": "targetHits",
|
176
|
-
"required": false,
|
177
|
-
"description": "targetHits",
|
178
|
-
"schema": {
|
179
|
-
"type": "number"
|
180
|
-
}
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"name": "query",
|
184
|
-
"required": true,
|
185
|
-
"description": "query",
|
186
|
-
"schema": {
|
187
|
-
"type": "string"
|
188
|
-
}
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"name": "baseUrl",
|
192
|
-
"required": false,
|
193
|
-
"description": "URL of the Vespa server",
|
194
|
-
"schema": {
|
195
|
-
"type": "string"
|
196
|
-
}
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"name": "language",
|
200
|
-
"required": false,
|
201
|
-
"description": "Search language",
|
202
|
-
"schema": {
|
203
|
-
"type": "string"
|
204
|
-
}
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"name": "filter",
|
208
|
-
"required": false,
|
209
|
-
"description": "Search filter",
|
210
|
-
"schema": {
|
211
|
-
"type": "string"
|
212
|
-
}
|
213
|
-
}
|
214
|
-
],
|
215
|
-
"x-events": []
|
216
|
-
}
|
217
|
-
},
|
218
|
-
"/history": {
|
219
|
-
"post": {
|
220
|
-
"tags": ["service"],
|
221
|
-
"summary": "History",
|
222
|
-
"parameters": [
|
223
|
-
{
|
224
|
-
"name": "baseUrl",
|
225
|
-
"summary": "URL of the Vespa server",
|
226
|
-
"required": false,
|
227
|
-
"description": "URL of the Vespa server",
|
228
|
-
"schema": {
|
229
|
-
"type": "string"
|
230
|
-
}
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"name": "maxHistory",
|
234
|
-
"summary": "Maximum number of items",
|
235
|
-
"required": false,
|
236
|
-
"description": "orderby",
|
237
|
-
"schema": {
|
238
|
-
"type": "number"
|
239
|
-
}
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"name": "system",
|
243
|
-
"summary": "System",
|
244
|
-
"required": false,
|
245
|
-
"description": "targetHits",
|
246
|
-
"schema": {
|
247
|
-
"type": "string"
|
248
|
-
}
|
249
|
-
},
|
250
|
-
{
|
251
|
-
"name": "question",
|
252
|
-
"summary": "Assistant's question",
|
253
|
-
"required": false,
|
254
|
-
"description": "Assistant's question",
|
255
|
-
"schema": {
|
256
|
-
"type": "string"
|
257
|
-
}
|
258
|
-
}
|
259
|
-
],
|
260
|
-
"x-events": []
|
261
|
-
}
|
262
|
-
},
|
263
|
-
"/getRole": {
|
264
|
-
"post": {
|
265
|
-
"tags": ["service"],
|
266
|
-
"summary": "Role retrieval",
|
267
|
-
"parameters": [
|
268
|
-
{
|
269
|
-
"name": "role",
|
270
|
-
"summary": "Name",
|
271
|
-
"required": true,
|
272
|
-
"description": "Role name",
|
273
|
-
"schema": {
|
274
|
-
"type": "string"
|
275
|
-
}
|
276
|
-
},
|
277
|
-
{
|
278
|
-
"name": "baseUrl",
|
279
|
-
"summary": "URL of the Vespa server",
|
280
|
-
"required": false,
|
281
|
-
"description": "URL of the Vespa server",
|
282
|
-
"schema": {
|
283
|
-
"type": "string"
|
284
|
-
}
|
285
|
-
}
|
286
|
-
],
|
287
|
-
"x-events": []
|
288
|
-
}
|
289
|
-
},
|
290
|
-
"/setRole": {
|
291
|
-
"post": {
|
292
|
-
"tags": ["service"],
|
293
|
-
"summary": "Role update",
|
294
|
-
"parameters": [
|
295
|
-
{
|
296
|
-
"name": "role",
|
297
|
-
"summary": "Name",
|
298
|
-
"required": true,
|
299
|
-
"description": "Role name",
|
300
|
-
"schema": {
|
301
|
-
"type": "string"
|
302
|
-
}
|
303
|
-
},
|
304
|
-
{
|
305
|
-
"name": "value",
|
306
|
-
"summary": "Value",
|
307
|
-
"required": true,
|
308
|
-
"description": "Role value",
|
309
|
-
"schema": {
|
310
|
-
"type": "string"
|
311
|
-
}
|
312
|
-
},
|
313
|
-
{
|
314
|
-
"name": "baseUrl",
|
315
|
-
"summary": "URL of the Vespa server",
|
316
|
-
"required": false,
|
317
|
-
"description": "URL of the Vespa server",
|
318
|
-
"schema": {
|
319
|
-
"type": "string"
|
320
|
-
}
|
321
|
-
}
|
322
|
-
],
|
323
|
-
"x-events": []
|
324
|
-
}
|
325
|
-
},
|
326
11
|
"/answer": {
|
327
12
|
"post": {
|
328
13
|
"tags": ["boost"],
|