mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Added ssl flag for postgres vectorstores
This commit is contained in:
@@ -52,6 +52,13 @@ class Postgres_Existing_VectorStores implements INode {
|
|||||||
name: 'database',
|
name: 'database',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'SSL Connection',
|
||||||
|
name: 'sslConnection',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
optional: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Port',
|
label: 'Port',
|
||||||
name: 'port',
|
name: 'port',
|
||||||
@@ -109,6 +116,7 @@ class Postgres_Existing_VectorStores implements INode {
|
|||||||
const output = nodeData.outputs?.output as string
|
const output = nodeData.outputs?.output as string
|
||||||
const topK = nodeData.inputs?.topK as string
|
const topK = nodeData.inputs?.topK as string
|
||||||
const k = topK ? parseFloat(topK) : 4
|
const k = topK ? parseFloat(topK) : 4
|
||||||
|
const sslConnection = nodeData.inputs?.sslConnection as boolean
|
||||||
|
|
||||||
let additionalConfiguration = {}
|
let additionalConfiguration = {}
|
||||||
if (additionalConfig) {
|
if (additionalConfig) {
|
||||||
@@ -126,7 +134,8 @@ class Postgres_Existing_VectorStores implements INode {
|
|||||||
port: nodeData.inputs?.port as number,
|
port: nodeData.inputs?.port as number,
|
||||||
username: user,
|
username: user,
|
||||||
password: password,
|
password: password,
|
||||||
database: nodeData.inputs?.database as string
|
database: nodeData.inputs?.database as string,
|
||||||
|
ssl: sslConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
const args = {
|
const args = {
|
||||||
|
|||||||
@@ -59,6 +59,13 @@ class PostgresUpsert_VectorStores implements INode {
|
|||||||
name: 'database',
|
name: 'database',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'SSL Connection',
|
||||||
|
name: 'sslConnection',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
optional: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Port',
|
label: 'Port',
|
||||||
name: 'port',
|
name: 'port',
|
||||||
@@ -117,6 +124,7 @@ class PostgresUpsert_VectorStores implements INode {
|
|||||||
const output = nodeData.outputs?.output as string
|
const output = nodeData.outputs?.output as string
|
||||||
const topK = nodeData.inputs?.topK as string
|
const topK = nodeData.inputs?.topK as string
|
||||||
const k = topK ? parseFloat(topK) : 4
|
const k = topK ? parseFloat(topK) : 4
|
||||||
|
const sslConnection = nodeData.inputs?.sslConnection as boolean
|
||||||
|
|
||||||
let additionalConfiguration = {}
|
let additionalConfiguration = {}
|
||||||
if (additionalConfig) {
|
if (additionalConfig) {
|
||||||
@@ -134,7 +142,8 @@ class PostgresUpsert_VectorStores implements INode {
|
|||||||
port: nodeData.inputs?.port as number,
|
port: nodeData.inputs?.port as number,
|
||||||
username: user,
|
username: user,
|
||||||
password: password,
|
password: password,
|
||||||
database: nodeData.inputs?.database as string
|
database: nodeData.inputs?.database as string,
|
||||||
|
ssl: sslConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
const args = {
|
const args = {
|
||||||
|
|||||||
Reference in New Issue
Block a user