Spaces:
Running
Running
Update search_utils.py
Browse files- search_utils.py +1 -1
search_utils.py
CHANGED
@@ -272,7 +272,7 @@ class SemanticSearch:
|
|
272 |
except Exception as e:
|
273 |
self.logger.error(f"Error loading index {shard_path}: {str(e)}")
|
274 |
self.total_vectors = sum(self.shard_sizes)
|
275 |
-
self.logger.info(f"Total loaded vectors: {
|
276 |
self.cumulative_offsets = np.cumsum([0] + self.shard_sizes)
|
277 |
|
278 |
def _load_single_index(self, shard_path):
|
|
|
272 |
except Exception as e:
|
273 |
self.logger.error(f"Error loading index {shard_path}: {str(e)}")
|
274 |
self.total_vectors = sum(self.shard_sizes)
|
275 |
+
self.logger.info(f"Total loaded vectors: {self.total_vectors} across {len(self.index_shards)} shards")
|
276 |
self.cumulative_offsets = np.cumsum([0] + self.shard_sizes)
|
277 |
|
278 |
def _load_single_index(self, shard_path):
|