langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Added support for adding PGVector (Vector database for Postgres)

Open AksAman opened this issue 2 years ago • 3 comments

Added support for adding PGVector (Vector database for Postgres)

PGVector PGVector Python

The integration test can be run using

poetry run pytest tests/integration_tests/vectorstores/test_pgvector.py

Make sure you setup a postgres database with pgvector extension installed PGVector Installation Steps before running the integration tests.

AksAman avatar Mar 13 '23 11:03 AksAman

@hwchase17 I had to add

pgvector = {version = "^0.1.6", optional = true}
psycopg2-binary = {version = "^2.9.5", optional = true}

as optional dependencies to pyproject.toml, which led to change in the poetry.lock on running

poetry lock --no-update

causing the conflict. Should i remove the dependencies and revert these two files to the master branch or how should i resolve them? I don't have much experience with poetry, so can you please guide here?

AksAman avatar Mar 13 '23 13:03 AksAman

@hwchase17 I had to add

pgvector = {version = "^0.1.6", optional = true}
psycopg2-binary = {version = "^2.9.5", optional = true}

as optional dependencies to pyproject.toml, which led to change in the poetry.lock on running

poetry lock --no-update

causing the conflict. Should i remove the dependencies and revert these two files to the master branch or how should i resolve them? I don't have much experience with poetry, so can you please guide here?

i can work to resolve!

hwchase17 avatar Mar 13 '23 14:03 hwchase17

will take a look at imports tmrw if i ahve time!

hwchase17 avatar Mar 14 '23 06:03 hwchase17

Thanks for the merge! Any timeline on when it will be available in the PyPI release?

AksAman avatar Mar 15 '23 12:03 AksAman

Thanks for the merge! Any timeline on when it will be available in the PyPI release?

as soon as i finish drafting the tweets :)

hwchase17 avatar Mar 15 '23 20:03 hwchase17