File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -475,10 +475,6 @@ def validate_create_hnsw_config(
475
475
if config ["batch_size" ] > config ["sync_threshold" ]:
476
476
raise ValueError ("batch_size must be less than or equal to sync_threshold" )
477
477
if "num_threads" in config :
478
- if config ["num_threads" ] > cpu_count ():
479
- raise ValueError (
480
- "num_threads must be less than or equal to the number of available threads"
481
- )
482
478
if config ["num_threads" ] <= 0 :
483
479
raise ValueError ("num_threads must be greater than 0" )
484
480
if "resize_factor" in config :
@@ -535,10 +531,6 @@ def validate_update_hnsw_config(
535
531
if config ["ef_search" ] <= 0 :
536
532
raise ValueError ("ef_search must be greater than 0" )
537
533
if "num_threads" in config :
538
- if config ["num_threads" ] > cpu_count ():
539
- raise ValueError (
540
- "num_threads must be less than or equal to the number of available threads"
541
- )
542
534
if config ["num_threads" ] <= 0 :
543
535
raise ValueError ("num_threads must be greater than 0" )
544
536
if "batch_size" in config and "sync_threshold" in config :
Original file line number Diff line number Diff line change 16
16
from chromadb .serde import BaseModelJSONSerializable
17
17
from chromadb .api .collection_configuration import (
18
18
CollectionConfiguration ,
19
+ HNSWConfiguration ,
20
+ SpannConfiguration ,
19
21
collection_configuration_to_json ,
20
22
load_collection_configuration_from_json ,
21
23
)
@@ -153,7 +155,8 @@ def get_configuration(self) -> CollectionConfiguration:
153
155
stacklevel = 2 ,
154
156
)
155
157
return CollectionConfiguration (
156
- hnsw = {},
158
+ hnsw = HNSWConfiguration (),
159
+ spann = SpannConfiguration (),
157
160
embedding_function = None ,
158
161
)
159
162
You can’t perform that action at this time.
0 commit comments