Closed shavejshaikh closed 10 months ago
@shavejshaikh I think you just need to update your fork to the latest code in this main repo. Your stacktrace shows the error coming from async with self._async_session() as session:
on line 43 of pg_vector.py
. As you can see in the latest code here, we've since added a call to self._initialize()
that sets up these session variables. Let me know if that fixes your error!
@sourabhdesai After update pg_vector.py
getting error
AttributeError: 'CustomPGVectorStore' object has no attribute '_initialize'
@sourabhdesai , now getting DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory. Created env using conda and install dependency using poetry
Any idea ?
Found the solution since pgvector isn't install along with postgres (Ubuntu).
Check postgres version
postgres=# SHOW SERVER_VERSION;
Install pgvector based on above postgres version
sudo apt install postgresql-16-pgvector
Change 16 based on your postgres version
While running a application getting attributeError
After set the value of _async_session getting below error