Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/usage-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ await collection.count() // returns the number of items in the collection
`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`

```js
let collection = client.createCollection("collection_name", undefined, metadata={ "hnsw:space": "cosine" })
let collection = client.createCollection({ name: "collection_name", metadata: { "hnsw:space": "cosine" } })
```

</TabItem>
Expand Down