Skip to content

Conversation

lingsongzeng
Copy link

Description:

  1. uncomment and use pgvector so that key column from 'upsertion_records' table will match the id column from 'documents' table.
  2. However, above will result in increasing db connections. Release connections in proper places.

@@ -247,20 +203,28 @@ class Postgres_VectorStores implements INode {

try {
if (recordManager) {
const vectorStore = await vectorStoreDriver.instanciate()
const vectorStore: any = await vectorStoreDriver.instanciate()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this call creates new connection every time

maybe we could cache it by tableName?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants