refactor: Add formatting to create_vector_engine
Added formatting for PGVector part of create_vector_engine Refactor #COG-170
This commit is contained in:
parent
2cd255768e
commit
7f7b015ea3
1 changed files with 4 additions and 2 deletions
|
|
@ -38,8 +38,10 @@ def create_vector_engine(config: VectorConfig, embedding_engine):
|
|||
db_host = relational_config.db_host
|
||||
db_port = relational_config.db_port
|
||||
db_name = relational_config.db_name
|
||||
|
||||
connection_string: str = f"postgresql+asyncpg://{db_username}:{db_password}@{db_host}:{db_port}/{db_name}"
|
||||
|
||||
connection_string: str = (
|
||||
f"postgresql+asyncpg://{db_username}:{db_password}@{db_host}:{db_port}/{db_name}"
|
||||
)
|
||||
|
||||
return PGVectorAdapter(connection_string,
|
||||
config["vector_db_key"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue