@@ -176,7 +176,7 @@ impl ServiceBasedFrontend {
176176 ) -> Result < Collection , GetCollectionError > {
177177 Ok ( self
178178 . collections_with_segments_provider
179- . get_collection_with_segments ( collection_id)
179+ . get_collection_with_segments ( collection_id, self . default_knn_index )
180180 . await
181181 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?
182182 . collection )
@@ -188,7 +188,7 @@ impl ServiceBasedFrontend {
188188 ) -> Result < Option < u32 > , GetCollectionError > {
189189 Ok ( self
190190 . collections_with_segments_provider
191- . get_collection_with_segments ( collection_id)
191+ . get_collection_with_segments ( collection_id, self . default_knn_index )
192192 . await
193193 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?
194194 . collection
@@ -381,7 +381,7 @@ impl ServiceBasedFrontend {
381381 if self . enable_schema {
382382 for collection in collections. iter_mut ( ) {
383383 collection
384- . reconcile_schema_with_config ( )
384+ . reconcile_schema_with_config ( self . default_knn_index )
385385 . map_err ( GetCollectionsError :: InvalidSchema ) ?;
386386 }
387387 }
@@ -425,7 +425,7 @@ impl ServiceBasedFrontend {
425425 if self . enable_schema {
426426 for collection in & mut collections {
427427 collection
428- . reconcile_schema_with_config ( )
428+ . reconcile_schema_with_config ( self . default_knn_index )
429429 . map_err ( GetCollectionError :: InvalidSchema ) ?;
430430 }
431431 }
@@ -450,7 +450,7 @@ impl ServiceBasedFrontend {
450450
451451 if self . enable_schema {
452452 collection
453- . reconcile_schema_with_config ( )
453+ . reconcile_schema_with_config ( self . default_knn_index )
454454 . map_err ( GetCollectionByCrnError :: InvalidSchema ) ?;
455455 }
456456 Ok ( collection)
@@ -517,6 +517,7 @@ impl ServiceBasedFrontend {
517517 match Schema :: reconcile_schema_and_config (
518518 schema. as_ref ( ) ,
519519 config_for_reconcile. as_ref ( ) ,
520+ self . default_knn_index ,
520521 ) {
521522 Ok ( schema) => Some ( schema) ,
522523 Err ( e) => {
@@ -616,7 +617,7 @@ impl ServiceBasedFrontend {
616617 // that was retrieved from sysdb, rather than the one that was passed in
617618 if self . enable_schema {
618619 collection
619- . reconcile_schema_with_config ( )
620+ . reconcile_schema_with_config ( self . default_knn_index )
620621 . map_err ( CreateCollectionError :: InvalidSchema ) ?;
621622 }
622623 Ok ( collection)
@@ -721,7 +722,7 @@ impl ServiceBasedFrontend {
721722 . await ?;
722723 collection_and_segments
723724 . collection
724- . reconcile_schema_with_config ( )
725+ . reconcile_schema_with_config ( self . default_knn_index )
725726 . map_err ( ForkCollectionError :: InvalidSchema ) ?;
726727 let collection = collection_and_segments. collection . clone ( ) ;
727728 let latest_collection_logical_size_bytes = collection_and_segments
@@ -1085,7 +1086,7 @@ impl ServiceBasedFrontend {
10851086 let read_event = if let Some ( where_clause) = r#where {
10861087 let collection_and_segments = self
10871088 . collections_with_segments_provider
1088- . get_collection_with_segments ( collection_id)
1089+ . get_collection_with_segments ( collection_id, self . default_knn_index )
10891090 . await
10901091 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
10911092 if self . enable_schema {
@@ -1295,7 +1296,7 @@ impl ServiceBasedFrontend {
12951296 ) -> Result < CountResponse , QueryError > {
12961297 let collection_and_segments = self
12971298 . collections_with_segments_provider
1298- . get_collection_with_segments ( collection_id)
1299+ . get_collection_with_segments ( collection_id, self . default_knn_index )
12991300 . await
13001301 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
13011302 let latest_collection_logical_size_bytes = collection_and_segments
@@ -1410,7 +1411,7 @@ impl ServiceBasedFrontend {
14101411 ) -> Result < GetResponse , QueryError > {
14111412 let collection_and_segments = self
14121413 . collections_with_segments_provider
1413- . get_collection_with_segments ( collection_id)
1414+ . get_collection_with_segments ( collection_id, self . default_knn_index )
14141415 . await
14151416 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
14161417 if self . enable_schema {
@@ -1555,7 +1556,7 @@ impl ServiceBasedFrontend {
15551556 ) -> Result < QueryResponse , QueryError > {
15561557 let collection_and_segments = self
15571558 . collections_with_segments_provider
1558- . get_collection_with_segments ( collection_id)
1559+ . get_collection_with_segments ( collection_id, self . default_knn_index )
15591560 . await
15601561 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
15611562 if self . enable_schema {
@@ -1712,7 +1713,7 @@ impl ServiceBasedFrontend {
17121713 // Get collection and segments once for all queries
17131714 let collection_and_segments = self
17141715 . collections_with_segments_provider
1715- . get_collection_with_segments ( request. collection_id )
1716+ . get_collection_with_segments ( request. collection_id , self . default_knn_index )
17161717 . await
17171718 . map_err ( |err| QueryError :: Other ( Box :: new ( err) as Box < dyn ChromaError > ) ) ?;
17181719 if self . enable_schema {
0 commit comments