Skip to content

Commit

Permalink
Added HNSW to docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 1, 2023
1 parent 78d028e commit 7e71829
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ columntable(result)
Add an approximate index

```julia
execute(conn, "CREATE INDEX my_index ON items USING ivfflat (embedding vector_l2_ops)")
execute(conn, "CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)")
# or
execute(conn, "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 7e71829

Please sign in to comment.