@digipair/skill-vespa 0.7.3 → 0.8.1
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 +29619 -2188
- package/index.esm.js +29601 -2188
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/engine.d.ts +23 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +21 -0
- package/package.json +1 -1
- package/schema.json +24 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import { PinsSettings } from './pins-settings.interface';
|
2
|
+
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES';
|
3
|
+
export declare const config: {
|
4
|
+
set: (key: CONFIG_KEY, value: any) => void;
|
5
|
+
};
|
6
|
+
export declare const applyTemplate: (value: any, context: any) => any;
|
7
|
+
export declare const executePins: (settingsOrigin: PinsSettings, context?: any, options?: {
|
8
|
+
libraries: {
|
9
|
+
[key: string]: string;
|
10
|
+
};
|
11
|
+
}) => Promise<any>;
|
12
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, options?: {
|
13
|
+
libraries: {
|
14
|
+
[key: string]: string;
|
15
|
+
};
|
16
|
+
}) => Promise<any>;
|
17
|
+
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, options?: {
|
18
|
+
libraries: {
|
19
|
+
[key: string]: string;
|
20
|
+
};
|
21
|
+
}) => Promise<Element | void>;
|
22
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
|
23
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export interface PinsSettings {
|
2
|
+
element: string;
|
3
|
+
name: string;
|
4
|
+
description: string;
|
5
|
+
library: string;
|
6
|
+
properties?: {
|
7
|
+
[key: string]: any;
|
8
|
+
};
|
9
|
+
variables?: {
|
10
|
+
[key: string]: any;
|
11
|
+
};
|
12
|
+
conditions?: {
|
13
|
+
if?: boolean;
|
14
|
+
each?: any[];
|
15
|
+
};
|
16
|
+
pins?: PinsSettings[];
|
17
|
+
events?: {
|
18
|
+
[key: string]: PinsSettings[];
|
19
|
+
};
|
20
|
+
context?: any;
|
21
|
+
}
|
package/package.json
CHANGED
package/schema.json
CHANGED
@@ -69,6 +69,18 @@
|
|
69
69
|
"summary": "Rechercher",
|
70
70
|
"description": "Recherche sémantique dans une collection",
|
71
71
|
"parameters": [
|
72
|
+
{
|
73
|
+
"name": "embeddings",
|
74
|
+
"summary": "Modèle d'embeddings",
|
75
|
+
"required": false,
|
76
|
+
"description": "Modèle d'embeddings",
|
77
|
+
"schema": {
|
78
|
+
"type": "array",
|
79
|
+
"items": {
|
80
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
72
84
|
{
|
73
85
|
"name": "baseUrl",
|
74
86
|
"summary": "Adresse du serveur",
|
@@ -197,6 +209,18 @@
|
|
197
209
|
"summary": "Ajouter des documents",
|
198
210
|
"description": "Ajouter des documents",
|
199
211
|
"parameters": [
|
212
|
+
{
|
213
|
+
"name": "embeddings",
|
214
|
+
"summary": "Modèle d'embeddings",
|
215
|
+
"required": false,
|
216
|
+
"description": "Modèle d'embeddings",
|
217
|
+
"schema": {
|
218
|
+
"type": "array",
|
219
|
+
"items": {
|
220
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
200
224
|
{
|
201
225
|
"name": "baseUrl",
|
202
226
|
"summary": "Adresse du serveur",
|