@@ -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, self . default_knn_index )
179+ . get_collection_with_segments ( collection_id)
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, self . default_knn_index )
191+ . get_collection_with_segments ( collection_id)
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 ( self . default_knn_index )
384+ . reconcile_schema_for_read ( )
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 ( self . default_knn_index )
428+ . reconcile_schema_for_read ( )
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 ( self . default_knn_index )
453+ . reconcile_schema_for_read ( )
454454 . map_err ( GetCollectionByCrnError :: InvalidSchema ) ?;
455455 }
456456 Ok ( collection)
@@ -630,9 +630,10 @@ impl ServiceBasedFrontend {
630630 // that was retrieved from sysdb, rather than the one that was passed in
631631 if self . enable_schema {
632632 collection
633- . reconcile_schema_with_config ( self . default_knn_index )
633+ . reconcile_schema_for_read ( )
634634 . map_err ( CreateCollectionError :: InvalidSchema ) ?;
635635 }
636+
636637 Ok ( collection)
637638 }
638639
@@ -735,7 +736,7 @@ impl ServiceBasedFrontend {
735736 . await ?;
736737 collection_and_segments
737738 . collection
738- . reconcile_schema_with_config ( self . default_knn_index )
739+ . reconcile_schema_for_read ( )
739740 . map_err ( ForkCollectionError :: InvalidSchema ) ?;
740741 let collection = collection_and_segments. collection . clone ( ) ;
741742 let latest_collection_logical_size_bytes = collection_and_segments
@@ -1099,7 +1100,7 @@ impl ServiceBasedFrontend {
10991100 let read_event = if let Some ( where_clause) = r#where {
11001101 let collection_and_segments = self
11011102 . collections_with_segments_provider
1102- . get_collection_with_segments ( collection_id, self . default_knn_index )
1103+ . get_collection_with_segments ( collection_id)
11031104 . await
11041105 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
11051106 if self . enable_schema {
@@ -1309,7 +1310,7 @@ impl ServiceBasedFrontend {
13091310 ) -> Result < CountResponse , QueryError > {
13101311 let collection_and_segments = self
13111312 . collections_with_segments_provider
1312- . get_collection_with_segments ( collection_id, self . default_knn_index )
1313+ . get_collection_with_segments ( collection_id)
13131314 . await
13141315 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
13151316 let latest_collection_logical_size_bytes = collection_and_segments
@@ -1424,7 +1425,7 @@ impl ServiceBasedFrontend {
14241425 ) -> Result < GetResponse , QueryError > {
14251426 let collection_and_segments = self
14261427 . collections_with_segments_provider
1427- . get_collection_with_segments ( collection_id, self . default_knn_index )
1428+ . get_collection_with_segments ( collection_id)
14281429 . await
14291430 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
14301431 if self . enable_schema {
@@ -1569,7 +1570,7 @@ impl ServiceBasedFrontend {
15691570 ) -> Result < QueryResponse , QueryError > {
15701571 let collection_and_segments = self
15711572 . collections_with_segments_provider
1572- . get_collection_with_segments ( collection_id, self . default_knn_index )
1573+ . get_collection_with_segments ( collection_id)
15731574 . await
15741575 . map_err ( |err| Box :: new ( err) as Box < dyn ChromaError > ) ?;
15751576 if self . enable_schema {
@@ -1726,7 +1727,7 @@ impl ServiceBasedFrontend {
17261727 // Get collection and segments once for all queries
17271728 let collection_and_segments = self
17281729 . collections_with_segments_provider
1729- . get_collection_with_segments ( request. collection_id , self . default_knn_index )
1730+ . get_collection_with_segments ( request. collection_id )
17301731 . await
17311732 . map_err ( |err| QueryError :: Other ( Box :: new ( err) as Box < dyn ChromaError > ) ) ?;
17321733 if self . enable_schema {
0 commit comments