Skip to content

Commit

Permalink
Updated example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 2, 2023
1 parent 5ad9671 commit 0532dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down

0 comments on commit 0532dce

Please sign in to comment.