@@ -38,7 +38,6 @@ describe("collection operations", () => {
38
38
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ;
39
39
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 10 ) ;
40
40
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 20 ) ;
41
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBe ( 2 ) ;
42
41
} ) ;
43
42
44
43
test ( "it should get a collection with configuration" , async ( ) => {
@@ -67,7 +66,6 @@ describe("collection operations", () => {
67
66
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 150 ) ;
68
67
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 15 ) ;
69
68
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ;
70
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ;
71
69
} ) ;
72
70
73
71
test ( "it should update a collection configuration" , async ( ) => {
@@ -84,7 +82,6 @@ describe("collection operations", () => {
84
82
} ) ;
85
83
86
84
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 10 ) ;
87
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBe ( 1 ) ;
88
85
89
86
// Update configuration
90
87
const updateConfig : UpdateCollectionConfiguration = {
@@ -108,7 +105,6 @@ describe("collection operations", () => {
108
105
expect ( updatedCollection . configuration ) . toBeDefined ( ) ;
109
106
expect ( updatedCollection . configuration ) . toHaveProperty ( "hnsw" ) ;
110
107
expect ( updatedCollection . configuration ?. hnsw ?. ef_search ) . toBe ( 20 ) ;
111
- expect ( updatedCollection . configuration ?. hnsw ?. num_threads ) . toBe ( 2 ) ;
112
108
expect ( updatedCollection . configuration ?. hnsw ?. space ) . toBe ( "cosine" ) ;
113
109
expect ( updatedCollection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ;
114
110
expect ( updatedCollection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ;
@@ -145,7 +141,6 @@ describe("collection operations", () => {
145
141
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ; // Default
146
142
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ; // Default
147
143
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ; // Default
148
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ; // Default > 0
149
144
} ) ;
150
145
151
146
test ( "it should apply defaults for unspecified hnsw params (space)" , async ( ) => {
@@ -160,7 +155,6 @@ describe("collection operations", () => {
160
155
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ; // Default
161
156
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ; // Default
162
157
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ; // Default
163
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ; // Default > 0
164
158
} ) ;
165
159
166
160
test ( "it should apply defaults for unspecified hnsw params (ef_construction)" , async ( ) => {
@@ -175,7 +169,6 @@ describe("collection operations", () => {
175
169
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 200 ) ; // Specified
176
170
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ; // Default
177
171
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ; // Default
178
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ; // Default > 0
179
172
} ) ;
180
173
181
174
test ( "it should apply defaults for unspecified hnsw params (max_neighbors)" , async ( ) => {
@@ -190,7 +183,6 @@ describe("collection operations", () => {
190
183
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ; // Default
191
184
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 32 ) ; // Specified
192
185
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ; // Default
193
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ; // Default > 0
194
186
} ) ;
195
187
196
188
test ( "it should apply defaults for unspecified hnsw params (ef_search)" , async ( ) => {
@@ -205,7 +197,6 @@ describe("collection operations", () => {
205
197
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ; // Default
206
198
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ; // Default
207
199
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 50 ) ; // Specified
208
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBeGreaterThan ( 0 ) ; // Default > 0
209
200
} ) ;
210
201
211
202
test ( "it should apply defaults for unspecified hnsw params (num_threads)" , async ( ) => {
@@ -220,6 +211,5 @@ describe("collection operations", () => {
220
211
expect ( collection . configuration ?. hnsw ?. ef_construction ) . toBe ( 100 ) ; // Default
221
212
expect ( collection . configuration ?. hnsw ?. max_neighbors ) . toBe ( 16 ) ; // Default
222
213
expect ( collection . configuration ?. hnsw ?. ef_search ) . toBe ( 100 ) ; // Default
223
- expect ( collection . configuration ?. hnsw ?. num_threads ) . toBe ( 4 ) ; // Specified
224
214
} ) ;
225
215
} ) ;
0 commit comments