1+ {
2+ "schemaType" : " flow" ,
3+ "schemaVersion" : " 0.0.1" ,
4+ "id" : " 1234" ,
5+ "flows" : {
6+ "flow" : {
7+ "flowType" : " flow" ,
8+ "nodes" : [
9+ {
10+ "id" : " ac04fdb4-ebb1-4a1c-80c2-1c8b98eb2d54" ,
11+ "x" : 1806.3881124911093 ,
12+ "y" : -167.98375372902578 ,
13+ "width" : 150 ,
14+ "height" : 105 ,
15+ "nodeType" : " Shape" ,
16+ "nodeInfo" : {
17+ "type" : " vector-distance" ,
18+ "formValues" : {
19+ "distance-method" : " cosine-similarity"
20+ },
21+ "isSettingsPopup" : true
22+ }
23+ },
24+ {
25+ "id" : " eff7d871-dfe3-47e9-b555-db2f110dc20f" ,
26+ "x" : 2061.301297711772 ,
27+ "y" : -155.57829060801922 ,
28+ "width" : 120.00044953032436 ,
29+ "height" : 56.00000513269601 ,
30+ "nodeType" : " Shape" ,
31+ "nodeInfo" : {
32+ "type" : " show-input" ,
33+ "formValues" : {
34+ "name" : " " ,
35+ "data-type" : " default"
36+ },
37+ "initializeOnStartFlow" : true ,
38+ "isSettingsPopup" : true
39+ }
40+ },
41+ {
42+ "id" : " 07f60258-2bd4-4ffa-81f2-f6fffc215b7f" ,
43+ "x" : 347.68299738921513 ,
44+ "y" : -316.57146993449675 ,
45+ "width" : 299.7155096627888 ,
46+ "height" : 211.51694334234082 ,
47+ "nodeType" : " Shape" ,
48+ "nodeInfo" : {
49+ "type" : " fetch" ,
50+ "formValues" : {
51+ "url" : " https://api.openai.com/v1/embeddings" ,
52+ "headers" : " Authorization: Bearer [openai-key]" ,
53+ "http-method" : " post" ,
54+ "label" : " Embeddings" ,
55+ "response-type" : " json"
56+ },
57+ "isSettingsPopup" : true
58+ }
59+ },
60+ {
61+ "id" : " 9c420e2a-0192-4f54-8995-4f772a51feb3" ,
62+ "x" : -86.86205601236121 ,
63+ "y" : -215.16839097651794 ,
64+ "width" : 111.7109375 ,
65+ "height" : 112 ,
66+ "nodeType" : " Shape" ,
67+ "nodeInfo" : {
68+ "type" : " json-node" ,
69+ "formValues" : {
70+ "json" : " {\n \" @set:input\" : \" input\" ,\n \" model\" : \" text-embedding-ada-002\" ,\n \" encoding_format\" : \" float\"\n }"
71+ },
72+ "nodeCannotBeReplaced" : true ,
73+ "showFormOnlyInPopup" : true ,
74+ "useInCompositionOnly" : false ,
75+ "keepPopupOpenAfterUpdate" : true
76+ }
77+ },
78+ {
79+ "id" : " 6c57c2e6-14ea-452d-96f8-e38d12637e9f" ,
80+ "x" : -562.7972324999649 ,
81+ "y" : -207.3827832013316 ,
82+ "width" : 269.3798316460425 ,
83+ "height" : 152.5504416985376 ,
84+ "nodeType" : " Shape" ,
85+ "nodeInfo" : {
86+ "type" : " user-text-input" ,
87+ "formValues" : {
88+ "label" : " " ,
89+ "value" : " " ,
90+ "name" : " " ,
91+ "group" : " "
92+ },
93+ "isSettingsPopup" : true ,
94+ "isUINode" : true
95+ }
96+ },
97+ {
98+ "id" : " 3b1228b5-33dc-41a1-874b-a39edb778dd1" ,
99+ "x" : 1295.9272852158813 ,
100+ "y" : -340.2895021114527 ,
101+ "width" : 120.00007744282978 ,
102+ "height" : 272.00000499697916 ,
103+ "nodeType" : " Shape" ,
104+ "nodeInfo" : {
105+ "type" : " show-input" ,
106+ "formValues" : {
107+ "name" : " " ,
108+ "data-type" : " default"
109+ },
110+ "initializeOnStartFlow" : true ,
111+ "isSettingsPopup" : true
112+ }
113+ },
114+ {
115+ "id" : " ad7bd87b-98e7-4299-bcd9-c80ba8097d17" ,
116+ "x" : 857.9584544246279 ,
117+ "y" : -357.4693011185809 ,
118+ "width" : 262.13530517022264 ,
119+ "height" : 114.53669766608243 ,
120+ "nodeType" : " Shape" ,
121+ "nodeInfo" : {
122+ "type" : " expression" ,
123+ "formValues" : {
124+ "expression" : " data[0].embedding" ,
125+ "inputType" : " number"
126+ },
127+ "showFormOnlyInPopup" : true ,
128+ "isSettingsPopup" : true
129+ }
130+ },
131+ {
132+ "id" : " 301950bf-ec3e-43a9-a965-bc8f7fa81aad" ,
133+ "x" : 344.51599204349606 ,
134+ "y" : -33.63940760789567 ,
135+ "width" : 295.3134246358252 ,
136+ "height" : 211.6831246120372 ,
137+ "nodeType" : " Shape" ,
138+ "nodeInfo" : {
139+ "type" : " fetch" ,
140+ "formValues" : {
141+ "url" : " https://api.openai.com/v1/embeddings" ,
142+ "headers" : " Authorization: Bearer [openai-key]" ,
143+ "http-method" : " post" ,
144+ "label" : " Embeddings" ,
145+ "response-type" : " json"
146+ },
147+ "isSettingsPopup" : true
148+ }
149+ },
150+ {
151+ "id" : " 1b278d53-7f49-439f-aae9-992e612f7747" ,
152+ "x" : -562.7972324999649 ,
153+ "y" : -34.83241991928581 ,
154+ "width" : 261.4199109222622 ,
155+ "height" : 158.972587183571 ,
156+ "nodeType" : " Shape" ,
157+ "nodeInfo" : {
158+ "type" : " user-text-input" ,
159+ "formValues" : {
160+ "label" : " " ,
161+ "value" : " " ,
162+ "name" : " " ,
163+ "group" : " "
164+ },
165+ "isSettingsPopup" : true ,
166+ "isUINode" : true
167+ }
168+ },
169+ {
170+ "id" : " 50d805de-852e-4051-869e-6c5b95866eb1" ,
171+ "x" : -73.53944159428187 ,
172+ "y" : -54.45553956968014 ,
173+ "width" : 111.7109375 ,
174+ "height" : 112 ,
175+ "nodeType" : " Shape" ,
176+ "nodeInfo" : {
177+ "type" : " json-node" ,
178+ "formValues" : {
179+ "json" : " {\n \" @set:input\" : \" input\" ,\n \" model\" : \" text-embedding-ada-002\" ,\n \" encoding_format\" : \" float\"\n }"
180+ },
181+ "nodeCannotBeReplaced" : true ,
182+ "showFormOnlyInPopup" : true ,
183+ "useInCompositionOnly" : false ,
184+ "keepPopupOpenAfterUpdate" : true
185+ }
186+ },
187+ {
188+ "id" : " 1eadd439-f06d-43f7-97d1-baa18e78d6f6" ,
189+ "x" : 857.124596871499 ,
190+ "y" : -67.23258703738176 ,
191+ "width" : 257.312563033335 ,
192+ "height" : 123.77476983874944 ,
193+ "nodeType" : " Shape" ,
194+ "nodeInfo" : {
195+ "type" : " expression" ,
196+ "formValues" : {
197+ "expression" : " data[0].embedding" ,
198+ "inputType" : " number"
199+ },
200+ "showFormOnlyInPopup" : true ,
201+ "isSettingsPopup" : true
202+ }
203+ },
204+ {
205+ "id" : " 40c5332c-ff6b-4fef-9ad3-8718a8d77cb1" ,
206+ "x" : 1297.632412062497 ,
207+ "y" : -11.704693521411087 ,
208+ "width" : 120.00007744282978 ,
209+ "height" : 272.00000499697916 ,
210+ "nodeType" : " Shape" ,
211+ "nodeInfo" : {
212+ "type" : " show-input" ,
213+ "formValues" : {
214+ "name" : " " ,
215+ "data-type" : " default"
216+ },
217+ "initializeOnStartFlow" : true ,
218+ "isSettingsPopup" : true
219+ }
220+ },
221+ {
222+ "id" : " b2c27105-8b44-43e7-b1a5-d93b0c6c3187" ,
223+ "x" : 1956.3881124911093 ,
224+ "y" : -115.48375372902578 ,
225+ "endX" : 2061.301297711772 ,
226+ "endY" : -125.57829060801922 ,
227+ "startNodeId" : " ac04fdb4-ebb1-4a1c-80c2-1c8b98eb2d54" ,
228+ "endNodeId" : " eff7d871-dfe3-47e9-b555-db2f110dc20f" ,
229+ "startThumbName" : " output" ,
230+ "endThumbName" : " input" ,
231+ "lineType" : " BezierCubic" ,
232+ "nodeType" : " Connection" ,
233+ "layer" : 1 ,
234+ "nodeInfo" : {}
235+ },
236+ {
237+ "id" : " b5161967-c564-4266-b3ae-5ee8657d089f" ,
238+ "x" : 24.848881487638792 ,
239+ "y" : -159.16839097651794 ,
240+ "endX" : 347.68299738921513 ,
241+ "endY" : -210.81299826332634 ,
242+ "startNodeId" : " 9c420e2a-0192-4f54-8995-4f772a51feb3" ,
243+ "endNodeId" : " 07f60258-2bd4-4ffa-81f2-f6fffc215b7f" ,
244+ "startThumbName" : " output" ,
245+ "endThumbName" : " input" ,
246+ "lineType" : " BezierCubic" ,
247+ "nodeType" : " Connection" ,
248+ "layer" : 1 ,
249+ "nodeInfo" : {}
250+ },
251+ {
252+ "id" : " 07ad8c38-ccad-4933-b874-9f9bbedccdc9" ,
253+ "x" : -293.41740085392246 ,
254+ "y" : -160.3827832013316 ,
255+ "endX" : -86.86205601236121 ,
256+ "endY" : -159.16839097651794 ,
257+ "startNodeId" : " 6c57c2e6-14ea-452d-96f8-e38d12637e9f" ,
258+ "endNodeId" : " 9c420e2a-0192-4f54-8995-4f772a51feb3" ,
259+ "startThumbName" : " output" ,
260+ "endThumbName" : " input" ,
261+ "lineType" : " BezierCubic" ,
262+ "nodeType" : " Connection" ,
263+ "layer" : 1 ,
264+ "nodeInfo" : {}
265+ },
266+ {
267+ "id" : " 267f848d-3b28-4345-ab6b-47e14d7ead33" ,
268+ "x" : 647.3985070520039 ,
269+ "y" : -286.57146993449675 ,
270+ "endX" : 857.9584544246279 ,
271+ "endY" : -300.2009522855397 ,
272+ "startNodeId" : " 07f60258-2bd4-4ffa-81f2-f6fffc215b7f" ,
273+ "endNodeId" : " ad7bd87b-98e7-4299-bcd9-c80ba8097d17" ,
274+ "startThumbName" : " output" ,
275+ "endThumbName" : " input" ,
276+ "lineType" : " BezierCubic" ,
277+ "nodeType" : " Connection" ,
278+ "layer" : 1 ,
279+ "nodeInfo" : {}
280+ },
281+ {
282+ "id" : " 63fac1ec-65df-4970-818d-4f35d1bb2dc3" ,
283+ "x" : 1120.0937595948506 ,
284+ "y" : -300.2009522855397 ,
285+ "endX" : 1295.9272852158813 ,
286+ "endY" : -310.2895021114527 ,
287+ "startNodeId" : " ad7bd87b-98e7-4299-bcd9-c80ba8097d17" ,
288+ "endNodeId" : " 3b1228b5-33dc-41a1-874b-a39edb778dd1" ,
289+ "startThumbName" : " output" ,
290+ "endThumbName" : " input" ,
291+ "lineType" : " BezierCubic" ,
292+ "nodeType" : " Connection" ,
293+ "layer" : 1 ,
294+ "nodeInfo" : {}
295+ },
296+ {
297+ "id" : " abd03e4b-e683-4fdd-abce-039f4265aedc" ,
298+ "x" : 1415.927362658711 ,
299+ "y" : -310.2895021114527 ,
300+ "endX" : 1806.3881124911093 ,
301+ "endY" : -137.98375372902578 ,
302+ "startNodeId" : " 3b1228b5-33dc-41a1-874b-a39edb778dd1" ,
303+ "endNodeId" : " ac04fdb4-ebb1-4a1c-80c2-1c8b98eb2d54" ,
304+ "startThumbName" : " output" ,
305+ "endThumbName" : " a" ,
306+ "lineType" : " BezierCubic" ,
307+ "nodeType" : " Connection" ,
308+ "layer" : 1 ,
309+ "nodeInfo" : {}
310+ },
311+ {
312+ "id" : " 92d6f3f2-4619-44ab-b0a3-277c8070b67f" ,
313+ "x" : 38.17149590571813 ,
314+ "y" : 1.5444604303198588 ,
315+ "endX" : 344.51599204349606 ,
316+ "endY" : 72.20215469812294 ,
317+ "startNodeId" : " 50d805de-852e-4051-869e-6c5b95866eb1" ,
318+ "endNodeId" : " 301950bf-ec3e-43a9-a965-bc8f7fa81aad" ,
319+ "startThumbName" : " output" ,
320+ "endThumbName" : " input" ,
321+ "lineType" : " BezierCubic" ,
322+ "nodeType" : " Connection" ,
323+ "layer" : 1 ,
324+ "nodeInfo" : {}
325+ },
326+ {
327+ "id" : " c6d4547e-2da6-4ec9-82c4-7ef9cb571448" ,
328+ "x" : -301.37732157770273 ,
329+ "y" : 12.167580080714188 ,
330+ "endX" : -73.53944159428187 ,
331+ "endY" : 1.5444604303198588 ,
332+ "startNodeId" : " 1b278d53-7f49-439f-aae9-992e612f7747" ,
333+ "endNodeId" : " 50d805de-852e-4051-869e-6c5b95866eb1" ,
334+ "startThumbName" : " output" ,
335+ "endThumbName" : " input" ,
336+ "lineType" : " BezierCubic" ,
337+ "nodeType" : " Connection" ,
338+ "layer" : 1 ,
339+ "nodeInfo" : {}
340+ },
341+ {
342+ "id" : " 8f892188-f8ce-42f4-9c82-222e2ea3ac7b" ,
343+ "x" : 639.8294166793212 ,
344+ "y" : -3.63940760789567 ,
345+ "endX" : 857.124596871499 ,
346+ "endY" : -5.345202118007045 ,
347+ "startNodeId" : " 301950bf-ec3e-43a9-a965-bc8f7fa81aad" ,
348+ "endNodeId" : " 1eadd439-f06d-43f7-97d1-baa18e78d6f6" ,
349+ "startThumbName" : " output" ,
350+ "endThumbName" : " input" ,
351+ "lineType" : " BezierCubic" ,
352+ "nodeType" : " Connection" ,
353+ "layer" : 1 ,
354+ "nodeInfo" : {}
355+ },
356+ {
357+ "id" : " d6895149-4f4a-4af0-aae2-a44d156445a6" ,
358+ "x" : 1114.437159904834 ,
359+ "y" : -5.345202118007045 ,
360+ "endX" : 1297.632412062497 ,
361+ "endY" : 18.295306478588913 ,
362+ "startNodeId" : " 1eadd439-f06d-43f7-97d1-baa18e78d6f6" ,
363+ "endNodeId" : " 40c5332c-ff6b-4fef-9ad3-8718a8d77cb1" ,
364+ "startThumbName" : " output" ,
365+ "endThumbName" : " input" ,
366+ "lineType" : " BezierCubic" ,
367+ "nodeType" : " Connection" ,
368+ "layer" : 1 ,
369+ "nodeInfo" : {}
370+ },
371+ {
372+ "id" : " c16b1fff-74ce-4b8f-9ae4-ed11a42621ec" ,
373+ "x" : 1417.6324895053267 ,
374+ "y" : 18.295306478588913 ,
375+ "endX" : 1806.3881124911093 ,
376+ "endY" : -87.98375372902578 ,
377+ "startNodeId" : " 40c5332c-ff6b-4fef-9ad3-8718a8d77cb1" ,
378+ "endNodeId" : " ac04fdb4-ebb1-4a1c-80c2-1c8b98eb2d54" ,
379+ "startThumbName" : " output" ,
380+ "endThumbName" : " b" ,
381+ "lineType" : " BezierCubic" ,
382+ "nodeType" : " Connection" ,
383+ "layer" : 1 ,
384+ "nodeInfo" : {}
385+ }
386+ ]
387+ }
388+ },
389+ "compositions" : {}
390+ }
0 commit comments