Skip to content

Conversation

@dishaprakash
Copy link
Contributor

@dishaprakash dishaprakash commented Aug 11, 2025

refactor!: Refactor PostgresVectorStore and PostgresEngine to depend on PGVectorstore and PGEngine respectively

AsyncPostgresVectorStore and PostgresVectorStore are refactored to depend on the AsyncPGVectorStore and PGVectorStore respectively as well as PostgresEngine to depend on PGEngine.

Hybrid search is now supported in PostgresVectorStore. Tests for hybrid search have been added.

VectorIndexes also are directly linked to the ones in LangChain Postgres

BREAKING CHANGE:
The support for text filters in similiarity searches has been removed, and we support only dictionary filters now.

The dependency on langchain-core and pgvector is based on LangChain-Postgres's specifications.

@dishaprakash dishaprakash requested review from a team as code owners August 11, 2025 11:09
@product-auto-label product-auto-label bot added the api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API. label Aug 11, 2025
averikitsch
averikitsch previously approved these changes Aug 11, 2025
averikitsch
averikitsch previously approved these changes Aug 12, 2025
averikitsch and others added 2 commits August 12, 2025 15:02
)

* refactor!: Refactor PostgresVectorStore to depend on PGVectorstore

* Liter fix

* fix tests

* re-expose hybrid search config

* header fix

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* expose hybrid search config through init
@dishaprakash dishaprakash changed the title refactor: Refactor PostgresEngine to depend on PGEngine refactor: Refactor PostgresVectorStore and PostgresEngine to depend on PGVectorstore and PGEngine respectively Aug 13, 2025
@dishaprakash dishaprakash changed the title refactor: Refactor PostgresVectorStore and PostgresEngine to depend on PGVectorstore and PGEngine respectively refactor!: Refactor PostgresVectorStore and PostgresEngine to depend on PGVectorstore and PGEngine respectively Aug 13, 2025
@averikitsch averikitsch merged commit 7917d62 into main Aug 13, 2025
12 checks passed
@averikitsch averikitsch deleted the refactor-engine branch August 13, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants