Revert "Checks the pgvector test issue"
This reverts commit 0d27371467.
This commit is contained in:
parent
0d27371467
commit
d3fdddaa52
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class PGVectorAdapter(SQLAlchemyAdapter, VectorDBInterface):
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
self.embedding_engine = embedding_engine
|
self.embedding_engine = embedding_engine
|
||||||
self.db_uri: str = connection_string
|
self.db_uri: str = connection_string
|
||||||
self.engine = create_async_engine(self.db_uri, connect_args={"timeout": 100})
|
self.engine = create_async_engine(self.db_uri)
|
||||||
self.sessionmaker = async_sessionmaker(bind=self.engine, expire_on_commit=False)
|
self.sessionmaker = async_sessionmaker(bind=self.engine, expire_on_commit=False)
|
||||||
|
|
||||||
async def embed_data(self, data: list[str]) -> list[list[float]]:
|
async def embed_data(self, data: list[str]) -> list[list[float]]:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue