Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Add vector search to Postgres connector #10213

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

lossyrob
Copy link
Contributor

Motivation and Context

Following up on #8951, this PR adds an implementation of VectorSearchBase to PostgresCollection. This implementation provides vectorized search and does not implement text search or vectorizable text search.

Unit and integration tests are added, and the python/samples/getting_started/third_party/postgres-memory.ipynb notebook was expanded to include vector search in the example.

Contribution Checklist

@lossyrob lossyrob requested a review from a team as a code owner January 16, 2025 20:20
@markwallace-microsoft markwallace-microsoft added python Pull requests for the Python Semantic Kernel memory labels Jan 16, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jan 16, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL17078185989% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
3047 4 💤 0 ❌ 0 🔥 1m 28s ⏱️

Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, thanks for adding, left a couple of notes!

@lossyrob
Copy link
Contributor Author

@eavanvalkenburg thanks for the review! I believe I addressed all your comments.

Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of small notes, really close!

@lossyrob
Copy link
Contributor Author

@eavanvalkenburg thanks - ready for re-review!

Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit, but looking good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants