Skip to content

refactor!: Refactor PostgresVectorStore to depend on PGVectorstore#319

Merged
dishaprakash merged 12 commits intorefactor-enginefrom
refactor-vs
Aug 13, 2025
Merged

refactor!: Refactor PostgresVectorStore to depend on PGVectorstore#319
dishaprakash merged 12 commits intorefactor-enginefrom
refactor-vs

Conversation

@dishaprakash
Copy link
Copy Markdown
Contributor

refactor!: Refactor PostgresVectorStore to depend on PGVectorstore

AsyncPostgresVectorStore and PostgresVectorStore are refactored to depend on the AsyncPGVectorStore and PGVectorStore respectively.

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

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 August 12, 2025 09:18
@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 12, 2025
@dishaprakash dishaprakash merged commit ab54592 into refactor-engine Aug 13, 2025
8 checks passed
@dishaprakash dishaprakash deleted the refactor-vs branch August 13, 2025 15:44
averikitsch added a commit that referenced this pull request Aug 13, 2025
…on PGVectorstore and PGEngine respectively (#316)

* refactor: Refactor PostgresEngine to depend on PGEngine

* update deps

* update deps

* Linter fix

* fix tests

* linter fix

* refactor!: Refactor PostgresVectorStore to depend on PGVectorstore (#319)

* 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

---------

Co-authored-by: Averi Kitsch <akitsch@google.com>
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.

2 participants