Skip to content

Commit

Permalink
Fixed insert_many (permission regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimezie committed Nov 23, 2023
1 parent d8ca9c7 commit c0df335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylib/embedding/pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
)

Expand Down

1 comment on commit c0df335

@chimezie
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes #54

Please sign in to comment.