Skip to content

Commit

Permalink
tuple instead of list?
Browse files Browse the repository at this point in the history
  • Loading branch information
choccccy committed Nov 24, 2023
1 parent f7a75aa commit 26b8254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/embedding/test_pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ async def test_PGv_embed_many_pacer():
assert await vDB.table_exists() is True, Exception("Table does not exist after creation")

# Insert data using insert_many()
documents = [
documents = (
{
'content': text,
'title': f'Pacer Copypasta line {index}',
'page_numbers': [1, 2, 3],
'tags': ['fitness', 'pacer', 'copypasta']
}
for index, text in enumerate(pacer_copypasta)
]
)
await vDB.insert_many(documents)

assert await vDB.count_items() == len(pacer_copypasta), Exception("Not all documents inserted")
Expand Down

0 comments on commit 26b8254

Please sign in to comment.