semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Add Mssql Server connector, using vector search with plain tables

Open kbeaugrand opened this issue 1 year ago • 4 comments

Motivation and Context

Adding MSSQL Server connector.

Description

SQL server connector works when vector search capability is enabled in SQL server (In azure it works), but in on prem scenarios, vector search is not accessible. This PR uses plain tables to provide vector search using SQL features.

Contribution Checklist

kbeaugrand avatar Jun 02 '24 08:06 kbeaugrand

Since we also have a connector using the native vector functions (here: https://github.com/microsoft/semantic-kernel/tree/main/dotnet/src/Connectors/Connectors.Memory.SqlServer) can we call this connector Microsoft.SemanticKernel.Connectors.SqlServer.Classic instead of Microsoft.SemanticKernel.Connectors.MssqlServer.

That would help to bring clarity and have a clear differentiation between the one supporting native vectors functions and the one using a "classic" approach.

yorek avatar Jun 04 '24 23:06 yorek

@RogerBarreto and @yorek as discussed internally, I renamed the connector to "classic" to match the clarity objectives regarding native approach...

Thank you!

kbeaugrand avatar Jun 05 '24 15:06 kbeaugrand

@kbeaugrand Can you run dotnet format and commit the resulting changes

markwallace-microsoft avatar Jun 19 '24 10:06 markwallace-microsoft

@kbeaugrand Can you run dotnet format and commit the resulting changes

yes done !

kbeaugrand avatar Jun 19 '24 17:06 kbeaugrand

@RogerBarreto @cincuranet @markwallace-microsoft just checking if we're ready to release this PR. Looking forward to blog about this

yorek avatar Aug 27 '24 21:08 yorek

I think we are (minus the failures from CI).

cincuranet avatar Aug 28 '24 06:08 cincuranet

@kbeaugrand Apologies for the delay in getting back to you. Can you resolve the merge conflict and run dotnet format. I'll do a second review early next week with the plan to get this merged soonest.

markwallace-microsoft avatar Sep 20 '24 14:09 markwallace-microsoft

@kbeaugrand we recently announced support for the new Microsoft.Extensions.VectorData.Abstractions. Our plan is to obsolete the old memory store abstractions so we're closing PR's that use those. If you are interested in updating to use the new Microsoft.Extensions.VectorData.Abstractions, we can consider this for additional the Semantic Kernel.

markwallace-microsoft avatar Nov 20 '24 17:11 markwallace-microsoft