Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit cb17cce

Browse files
authored
Merge pull request #142 from sourishkrout/fix_distance_method_signature
Mistakenly Pythonic
2 parents 127891f + dbdb1ac commit cb17cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ await collection.count() // returns the number of items in the collection
295295
`createCollection` also takes an optional `metadata` argument which can be used to customize the distance method of the embedding space by setting the value of `hnsw:space`
296296
297297
```js
298-
let collection = client.createCollection("collection_name", undefined, metadata={ "hnsw:space": "cosine" })
298+
let collection = client.createCollection({ name: "collection_name", metadata: { "hnsw:space": "cosine" } })
299299
```
300300
301301
</TabItem>

0 commit comments

Comments
 (0)