Add Postgres vector store using pgvector

This commit is contained in:
fabiovalencio
2023-08-16 11:59:50 +01:00
parent 8034076361
commit 44bac07b90
8 changed files with 418 additions and 27 deletions
@@ -0,0 +1,31 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class PostgresApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Postgres API'
this.name = 'PostgresApi'
this.version = 1.0
this.inputs = [
{
label: 'User',
name: 'user',
type: 'string',
placeholder: '<POSTGRES_USERNAME>'
},
{
label: 'Password',
name: 'password',
type: 'password',
placeholder: '<POSTGRES_PASSWORD>'
}
]
}
}
module.exports = { credClass: PostgresApi }