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

Commit a00a862

Browse files
authored
Update Collection.md
Changed the error type from ValueError to DuplicateIDError for add function in collections
1 parent 0ed1bcd commit a00a862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/Collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Add embeddings to the data store.
5252
- `ValueError` - If the length of ids, embeddings, metadatas, or documents don't match
5353
- `ValueError` - If you don't provide an embedding function and don't provide embeddings
5454
- `ValueError` - If you provide both embeddings and documents
55-
- `ValueError` - If you provide an id that already exists
55+
- `DuplicateIDError` - If you provide an id that already exists
5656

5757
### get
5858

0 commit comments

Comments
 (0)