Skip to content

Commit

Permalink
fix: Add missing await to create_database (#162)
Browse files Browse the repository at this point in the history
Added missing await for database creation in PGVectorAdapter

Fix #COG-170
  • Loading branch information
dexters1 authored Oct 22, 2024
1 parent b329d50 commit 1088b58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async def create_db_and_tables():
vector_engine = get_vector_engine()

if vector_config.vector_db_provider == "pgvector":
vector_engine.create_database()
await vector_engine.create_database()
async with vector_engine.engine.begin() as connection:
await connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;"))

Expand Down

0 comments on commit 1088b58

Please sign in to comment.