Skip to content

Commit 9737141

Browse files
committed
Improved example
1 parent 5483787 commit 9737141

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Get the nearest neighbors
4343
Add an approximate index
4444

4545
```lisp
46-
(query (:create-index 'my-index :on 'items :using hnsw :fields embedding\ vector_l2_ops))
46+
(query (:create-index 'my-index :on 'items :using hnsw :fields "embedding vector_l2_ops"))
4747
;; or
4848
(query "CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)")
4949
```

postmodern.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
(doquery (:limit (:order-by (:select 'id 'embedding :from 'items) (:<-> 'embedding "[1,1,1]")) 5) (id embedding)
1616
(format t "~A: ~A~%" id embedding))
1717

18-
(query (:create-index 'my-index :on 'items :using hnsw :fields embedding\ vector_l2_ops))
18+
(query (:create-index 'my-index :on 'items :using hnsw :fields "embedding vector_l2_ops"))

0 commit comments

Comments
 (0)