Skip to content

Commit 213cfdf

Browse files
committed
update sqldb marketplace template
1 parent bf275cf commit 213cfdf

File tree

1 file changed

+85
-73
lines changed

1 file changed

+85
-73
lines changed

packages/server/marketplaces/chatflows/SQL DB Chain.json

+85-73
Original file line numberDiff line numberDiff line change
@@ -3,78 +3,7 @@
33
"nodes": [
44
{
55
"width": 300,
6-
"height": 424,
7-
"id": "sqlDatabaseChain_0",
8-
"position": {
9-
"x": 1255.0372022176111,
10-
"y": 217.507437391498
11-
},
12-
"type": "customNode",
13-
"data": {
14-
"id": "sqlDatabaseChain_0",
15-
"label": "Sql Database Chain",
16-
"name": "sqlDatabaseChain",
17-
"version": 1,
18-
"type": "SqlDatabaseChain",
19-
"baseClasses": ["SqlDatabaseChain", "BaseChain", "BaseLangChain"],
20-
"category": "Chains",
21-
"description": "Answer questions over a SQL database",
22-
"inputParams": [
23-
{
24-
"label": "Database",
25-
"name": "database",
26-
"type": "options",
27-
"options": [
28-
{
29-
"label": "SQlite",
30-
"name": "sqlite"
31-
}
32-
],
33-
"default": "sqlite",
34-
"id": "sqlDatabaseChain_0-input-database-options"
35-
},
36-
{
37-
"label": "Database File Path",
38-
"name": "dbFilePath",
39-
"type": "string",
40-
"placeholder": "C:/Users/chinook.db",
41-
"id": "sqlDatabaseChain_0-input-dbFilePath-string"
42-
}
43-
],
44-
"inputAnchors": [
45-
{
46-
"label": "Language Model",
47-
"name": "model",
48-
"type": "BaseLanguageModel",
49-
"id": "sqlDatabaseChain_0-input-model-BaseLanguageModel"
50-
}
51-
],
52-
"inputs": {
53-
"model": "{{chatOpenAI_0.data.instance}}",
54-
"database": "sqlite",
55-
"dbFilePath": ""
56-
},
57-
"outputAnchors": [
58-
{
59-
"id": "sqlDatabaseChain_0-output-sqlDatabaseChain-SqlDatabaseChain|BaseChain|BaseLangChain",
60-
"name": "sqlDatabaseChain",
61-
"label": "SqlDatabaseChain",
62-
"type": "SqlDatabaseChain | BaseChain | BaseLangChain"
63-
}
64-
],
65-
"outputs": {},
66-
"selected": false
67-
},
68-
"selected": false,
69-
"positionAbsolute": {
70-
"x": 1255.0372022176111,
71-
"y": 217.507437391498
72-
},
73-
"dragging": false
74-
},
75-
{
76-
"width": 300,
77-
"height": 523,
6+
"height": 522,
787
"id": "chatOpenAI_0",
798
"position": {
809
"x": 855.0396169649254,
@@ -84,8 +13,8 @@
8413
"data": {
8514
"id": "chatOpenAI_0",
8615
"label": "ChatOpenAI",
87-
"name": "chatOpenAI",
8816
"version": 1,
17+
"name": "chatOpenAI",
8918
"type": "ChatOpenAI",
9019
"baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel"],
9120
"category": "Chat Models",
@@ -225,6 +154,89 @@
225154
"y": 179.29430548099504
226155
},
227156
"dragging": false
157+
},
158+
{
159+
"width": 300,
160+
"height": 423,
161+
"id": "sqlDatabaseChain_0",
162+
"position": {
163+
"x": 1229.0092429246013,
164+
"y": 231.59431102290245
165+
},
166+
"type": "customNode",
167+
"data": {
168+
"id": "sqlDatabaseChain_0",
169+
"label": "Sql Database Chain",
170+
"version": 1,
171+
"name": "sqlDatabaseChain",
172+
"type": "SqlDatabaseChain",
173+
"baseClasses": ["SqlDatabaseChain", "BaseChain", "Runnable"],
174+
"category": "Chains",
175+
"description": "Answer questions over a SQL database",
176+
"inputParams": [
177+
{
178+
"label": "Database",
179+
"name": "database",
180+
"type": "options",
181+
"options": [
182+
{
183+
"label": "SQLite",
184+
"name": "sqlite"
185+
},
186+
{
187+
"label": "PostgreSQL",
188+
"name": "postgres"
189+
},
190+
{
191+
"label": "MSSQL",
192+
"name": "mssql"
193+
},
194+
{
195+
"label": "MySQL",
196+
"name": "mysql"
197+
}
198+
],
199+
"default": "sqlite",
200+
"id": "sqlDatabaseChain_0-input-database-options"
201+
},
202+
{
203+
"label": "Connection string or file path (sqlite only)",
204+
"name": "url",
205+
"type": "string",
206+
"placeholder": "1270.0.0.1:5432/chinook",
207+
"id": "sqlDatabaseChain_0-input-url-string"
208+
}
209+
],
210+
"inputAnchors": [
211+
{
212+
"label": "Language Model",
213+
"name": "model",
214+
"type": "BaseLanguageModel",
215+
"id": "sqlDatabaseChain_0-input-model-BaseLanguageModel"
216+
}
217+
],
218+
"inputs": {
219+
"model": "{{chatOpenAI_0.data.instance}}",
220+
"database": "sqlite",
221+
"url": ""
222+
},
223+
"outputAnchors": [
224+
{
225+
"id": "sqlDatabaseChain_0-output-sqlDatabaseChain-SqlDatabaseChain|BaseChain|Runnable",
226+
"name": "sqlDatabaseChain",
227+
"label": "SqlDatabaseChain",
228+
"type": "SqlDatabaseChain | BaseChain | Runnable"
229+
}
230+
],
231+
"outputs": {},
232+
"selected": false
233+
},
234+
"selected": false,
235+
"positionAbsolute": {
236+
"x": 1229.0092429246013,
237+
"y": 231.59431102290245
238+
},
239+
"dragging": false
228240
}
229241
],
230242
"edges": [

0 commit comments

Comments
 (0)