From c0df33591262da5ba2c8f8c2bc41026732471f66 Mon Sep 17 00:00:00 2001 From: Chime Ogbuji Date: Thu, 23 Nov 2023 13:58:18 -0500 Subject: [PATCH] Fixed insert_many (permission regression) --- pylib/embedding/pgvector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/embedding/pgvector.py b/pylib/embedding/pgvector.py index 13e1a22..29d794d 100644 --- a/pylib/embedding/pgvector.py +++ b/pylib/embedding/pgvector.py @@ -333,8 +333,8 @@ async def insert_many( await self.conn.executemany( INSERT_DOCS.format(table_name=self.table_name), [ - (self._embedding_model.encode(content), content, permission, title, page_numbers, tags) - for content, permission, title, page_numbers, tags in content_list + (self._embedding_model.encode(content), content, title, page_numbers, tags) + for content, title, page_numbers, tags in content_list ] )