So apparently TypeORMVectorStore requires the field 'username' while Pool expects it to be 'user'. Need to populate both to avoid error messages.

This commit is contained in:
Darien Kindlund 2024-02-08 11:26:45 -05:00
parent 9af4eaaa8c
commit 4a75396325
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ class Postgres_VectorStores implements INode {
type: 'postgres',
host: nodeData.inputs?.host as string,
port: nodeData.inputs?.port as number,
username: user,
username: user, // Required by TypeORMVectorStore
user: user, // Required by Pool in similaritySearchVectorWithScore
password: password,
database: nodeData.inputs?.database as string
}