Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 6559819

Browse files
committed
fix: pgvector ingestion broken due to missing wait
1 parent e7b8cd3 commit 6559819

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/vectorstore/pgvector/pgvector.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ func (v VectorStore) AddDocuments(ctx context.Context, docs []vs.Document, colle
318318

319319
docs[docIdx] = doc
320320
}
321+
wg.Wait()
322+
323+
if sharedErr != nil {
324+
return nil, sharedErr
325+
}
321326

322327
return ids, v.conn.SendBatch(ctx, b).Close()
323328
}

0 commit comments

Comments
 (0)