{ "description": "Answer questions over a SQL database", "nodes": [ { "width": 300, "height": 524, "id": "openAI_1", "position": { "x": 835.4668837832456, "y": 182.4724119898708 }, "type": "customNode", "data": { "id": "openAI_1", "label": "OpenAI", "name": "openAI", "type": "OpenAI", "baseClasses": ["OpenAI", "BaseLLM", "BaseLanguageModel", "BaseLangChain"], "category": "LLMs", "description": "Wrapper around OpenAI large language models", "inputParams": [ { "label": "OpenAI Api Key", "name": "openAIApiKey", "type": "password", "id": "openAI_1-input-openAIApiKey-password" }, { "label": "Model Name", "name": "modelName", "type": "options", "options": [ { "label": "text-davinci-003", "name": "text-davinci-003" }, { "label": "text-davinci-002", "name": "text-davinci-002" }, { "label": "text-curie-001", "name": "text-curie-001" }, { "label": "text-babbage-001", "name": "text-babbage-001" } ], "default": "text-davinci-003", "optional": true, "id": "openAI_1-input-modelName-options" }, { "label": "Temperature", "name": "temperature", "type": "number", "default": 0.7, "optional": true, "id": "openAI_1-input-temperature-number" }, { "label": "Max Tokens", "name": "maxTokens", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-maxTokens-number" }, { "label": "Top Probability", "name": "topP", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-topP-number" }, { "label": "Best Of", "name": "bestOf", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-bestOf-number" }, { "label": "Frequency Penalty", "name": "frequencyPenalty", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-frequencyPenalty-number" }, { "label": "Presence Penalty", "name": "presencePenalty", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-presencePenalty-number" }, { "label": "Batch Size", "name": "batchSize", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-batchSize-number" }, { "label": "Timeout", "name": "timeout", "type": "number", "optional": true, "additionalParams": true, "id": "openAI_1-input-timeout-number" } ], "inputAnchors": [], "inputs": { "modelName": "text-davinci-003", "temperature": 0.7, "maxTokens": "", "topP": "", "bestOf": "", "frequencyPenalty": "", "presencePenalty": "", "batchSize": "", "timeout": "" }, "outputAnchors": [ { "id": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "name": "openAI", "label": "OpenAI", "type": "OpenAI | BaseLLM | BaseLanguageModel | BaseLangChain" } ], "outputs": {}, "selected": false }, "selected": false, "positionAbsolute": { "x": 835.4668837832456, "y": 182.4724119898708 }, "dragging": false }, { "width": 300, "height": 424, "id": "sqlDatabaseChain_0", "position": { "x": 1255.0372022176111, "y": 217.507437391498 }, "type": "customNode", "data": { "id": "sqlDatabaseChain_0", "label": "Sql Database Chain", "name": "sqlDatabaseChain", "type": "SqlDatabaseChain", "baseClasses": ["SqlDatabaseChain", "BaseChain", "BaseLangChain"], "category": "Chains", "description": "Answer questions over a SQL database", "inputParams": [ { "label": "Database", "name": "database", "type": "options", "options": [ { "label": "SQlite", "name": "sqlite" } ], "default": "sqlite", "id": "sqlDatabaseChain_0-input-database-options" }, { "label": "Database File Path", "name": "dbFilePath", "type": "string", "placeholder": "C:/Users/chinook.db", "id": "sqlDatabaseChain_0-input-dbFilePath-string" } ], "inputAnchors": [ { "label": "Language Model", "name": "model", "type": "BaseLanguageModel", "id": "sqlDatabaseChain_0-input-model-BaseLanguageModel" } ], "inputs": { "model": "{{openAI_1.data.instance}}", "database": "sqlite", "dbFilePath": "" }, "outputAnchors": [ { "id": "sqlDatabaseChain_0-output-sqlDatabaseChain-SqlDatabaseChain|BaseChain|BaseLangChain", "name": "sqlDatabaseChain", "label": "SqlDatabaseChain", "type": "SqlDatabaseChain | BaseChain | BaseLangChain" } ], "outputs": {}, "selected": false }, "selected": false, "positionAbsolute": { "x": 1255.0372022176111, "y": 217.507437391498 }, "dragging": false } ], "edges": [ { "source": "openAI_1", "sourceHandle": "openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain", "target": "sqlDatabaseChain_0", "targetHandle": "sqlDatabaseChain_0-input-model-BaseLanguageModel", "type": "buttonedge", "id": "openAI_1-openAI_1-output-openAI-OpenAI|BaseLLM|BaseLanguageModel|BaseLangChain-sqlDatabaseChain_0-sqlDatabaseChain_0-input-model-BaseLanguageModel", "data": { "label": "" } } ] }