-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathembeddings.json
79 lines (79 loc) · 1.81 KB
/
embeddings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[
{
"id": "70307b6cbfb7a7c8",
"type": "tab",
"label": "Embeddings Example",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8b09265787f70886",
"type": "inject",
"z": "70307b6cbfb7a7c8",
"name": "embedding payload",
"props": [
{
"p": "payload.input",
"v": "The food was great, and the service was too! 💥",
"vt": "str"
},
{
"p": "payload.model",
"v": "text-embedding-3-small",
"vt": "str"
},
{
"p": "payload.dimensions",
"v": "768",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 290,
"y": 260,
"wires": [
[
"5096e563fd5b02cf"
]
]
},
{
"id": "ddf89bf74f316e1f",
"type": "debug",
"z": "70307b6cbfb7a7c8",
"name": "response",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.data[0].embedding",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 260,
"wires": []
},
{
"id": "5096e563fd5b02cf",
"type": "OpenAI API",
"z": "70307b6cbfb7a7c8",
"name": "create embeddings",
"property": "payload",
"propertyType": "msg",
"service": "",
"method": "createEmbedding",
"x": 530,
"y": 260,
"wires": [
[
"ddf89bf74f316e1f"
]
]
}
]