From 0532dce4f73157fc73ead7037d17e9f4df231112 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 1 Oct 2023 21:24:14 -0700 Subject: [PATCH] Updated example [skip ci] --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2fa6931..b76b096 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,8 @@ Get the nearest neighbors to a vector ```go var items []Item err := db.NewSelect(). - Model(&items).OrderExpr("embedding <-> ?", pgvector.NewVector([]float32{1, 2, 3})). + Model(&items). + OrderExpr("embedding <-> ?", pgvector.NewVector([]float32{1, 2, 3})). Limit(5). Scan(ctx) ```