Update to EF 9.0 and use Vector Search capability
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
No files or tests are named. Start with the EF 9.0 vector similarity documentation and the provider's model-building and SQL-generation entry points; compare the IsVector configuration, Cloud Spanner DDL, and EF.Functions.VectorDistance example. Done means vector columns and vector-search queries produce the requested schema and SQL.
Written by the indexing model from the issue text.
Description
Thanks for stopping by to let us know something could be better!
Is your feature request related to a problem? Please describe.
Cloud Spanner has introduced Vector Search capabilities; which EF 9.0 now has native support for with the IsVector extension methods.
Describe the solution you'd like
Be able to define a column as a Vector type using EF and the DDL created for Cloud Spanner marks up the ARRAY type as a Vector index.
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Blog>()
.Property(b => b.Embeddings)
.IsVector(DistanceFunction.Cosine, dimensions: 1536);
}
When using the Where predicate, if the operator is a Vector Search, the translated SQL statements generated are vector searches:
var blogs = await context.Blogs
.OrderBy(s => EF.Functions.VectorDistance(s.Vector, vector))
.Take(5)
.ToListAsync();
- Dominant language
- C#
- Stars
- 34
- Forks
- 13
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/dotnet-spanner-entity-framework
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
googleapis/dotnet-spanner-entity-framework#775 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
googleapis/dotnet-spanner-entity-framework#777 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
googleapis/dotnet-spanner-entity-framework#767 ·
Maintainers usually reply within 1 day
-
priority: p2 samples type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
googleapis/dotnet-spanner-entity-framework#722 ·
Maintainers usually reply within 1 day
-
priority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
googleapis/dotnet-spanner-entity-framework#712 ·
Maintainers usually reply within 1 day
All issues in googleapis/dotnet-spanner-entity-framework
Similar issues
-
Backend enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
UI: money shows the minus sign next to the number, not before the currency (IL -3.0m, not -IL 3.0m)Openarea: sim area: unity enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eyalgolan/statecraft-israel#1107 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
dimitar-radenkov/Pointframe#271 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
qew21/Genshin-Subtitles#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HoffmanEngineering/3d-print-log-api#274 ·
Maintainers usually reply within 1 day