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:
parent
9af4eaaa8c
commit
4a75396325
|
|
@ -189,7 +189,8 @@ class Postgres_VectorStores implements INode {
|
||||||
type: 'postgres',
|
type: 'postgres',
|
||||||
host: nodeData.inputs?.host as string,
|
host: nodeData.inputs?.host as string,
|
||||||
port: nodeData.inputs?.port as number,
|
port: nodeData.inputs?.port as number,
|
||||||
username: user,
|
username: user, // Required by TypeORMVectorStore
|
||||||
|
user: user, // Required by Pool in similaritySearchVectorWithScore
|
||||||
password: password,
|
password: password,
|
||||||
database: nodeData.inputs?.database as string
|
database: nodeData.inputs?.database as string
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue