Skip to content

Commit

Permalink
Updated readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 1, 2023
1 parent 11ed4cb commit acbc768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ while (my @row = $sth->fetchrow_array()) {
Add an approximate index

```perl
$dbh->do('CREATE INDEX my_index ON items USING ivfflat (embedding vector_l2_ops)');
$dbh->do('CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)');
# or
$dbh->do('CREATE INDEX my_index ON items USING hnsw (embedding vector_l2_ops)');
$dbh->do('CREATE INDEX ON items USING hnsw (embedding vector_l2_ops)');
```

Use `vector_ip_ops` for inner product and `vector_cosine_ops` for cosine distance
Expand Down

0 comments on commit acbc768

Please sign in to comment.