-
Notifications
You must be signed in to change notification settings - Fork 4.3k
.Net: [MEVD] [SQLite] Integrate with new sqlite_vec nuget package #11977
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
Changes from 4 commits
8d888a5
bdc8e3e
b19df98
e6c44a8
4970221
f41000e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,6 @@ namespace SqliteVecIntegrationTests.Support; | |
|
|
||
| internal static class SqliteTestEnvironment | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've not removed this class because I was not able to test it on Full Framework because I can't even load the sqlite itself on Full Framework (not the extension):
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh... OK... I'm hoping this is somehow related to the test environment/xunit... Can I ask you to do a quick test from a full framework console program, with Microsoft.Data.Sqlite and the new nuget package, to make sure it actually works for users? Otherwise we might have an actual issue here (we specifically worked on making the nuget on full framework, but I no longer remember the exact details...)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've reported the bug: dotnet/efcore#36069 |
||
| { | ||
| /// <summary> | ||
| /// SQLite extension name for vector search. | ||
| /// More information here: <see href="https://github.com/asg017/sqlite-vec"/>. | ||
| /// </summary> | ||
| private const string VectorSearchExtensionName = "vec0"; | ||
|
|
||
| private static bool? s_isSqliteVecInstalled; | ||
|
|
||
| internal static bool TryLoadSqliteVec(SqliteConnection connection) | ||
|
|
@@ -26,7 +20,7 @@ internal static bool TryLoadSqliteVec(SqliteConnection connection) | |
|
|
||
| try | ||
| { | ||
| connection.LoadExtension(VectorSearchExtensionName); | ||
| connection.LoadVector(); | ||
adamsitnik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| s_isSqliteVecInstalled = true; | ||
| } | ||
| catch (SqliteException) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.