Skip to content

Conversation

@dishaprakash
Copy link
Contributor

This PR updates the Postgres VectorStore to the updated expectations from LangChain.

The changes are:

  • Documents added or retrieved from the vectorstore can now support the ID property
  • Support for de-duplication of ID by implementing upsert to add documents
  • Enabled support for DB Agnostic filtering (metadata filtering)
  • The (a)get_by_ids function is now supported
  • The LangChain standard suite testing is now enabled
* chore: Add Langchain vectorstore standard suite tests * fix test
…#274) * chore: support ids in Documents and update insert SQL query to upsert * chore: Add Langchain vectorstore standard suite tests (#272) * chore: Add Langchain vectorstore standard suite tests * fix test * Newline * remove Newline * Review changes
* feat: Add get_by_ids and aget_by_ids to vectorstore * Review changes * Add sync test in async vectorstore
chore: Convert id field in document to str
* feat: Enable DB-Agnostic metadata filtering in vectorstores * minor change * minor change * minor change * minor change * Add negative tests for code coverager
@dishaprakash dishaprakash requested review from a team as code owners March 18, 2025 15:51
@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 Mar 18, 2025
@dishaprakash dishaprakash merged commit 605c31d into main Mar 19, 2025
11 checks passed
@dishaprakash dishaprakash deleted the std-tests branch March 19, 2025 06:46
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.

3 participants