diff --git a/README.md b/README.md index bfd4bc9..7c7817b 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,11 @@ Get the nearest neighbors ```csharp var embedding = new Vector(new float[] { 1, 1, 1 }); -var items = await ctx.Items.OrderBy(x => x.Embedding!.L2Distance(embedding)).Take(5).ToListAsync(); +var items = await ctx.Items + .OrderBy(x => x.Embedding!.L2Distance(embedding)) + .Take(5) + .ToListAsync(); + foreach (Item item in items) { if (item.Embedding != null)