Skip to content

Commit 1ebd011

Browse files
committed
Improved example [skip ci]
1 parent 28a5ed8 commit 1ebd011

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ await Item.create({embedding: [1, 2, 3]});
311311
Get the nearest neighbors to a vector
312312

313313
```javascript
314+
import { l2Distance } from 'pgvector/sequelize';
315+
314316
const items = await Item.findAll({
315317
order: l2Distance('embedding', [1, 1, 1], sequelize),
316318
limit: 5

0 commit comments

Comments
 (0)