diff --git a/benchmarks/financebench/evaluate_financebench.py b/benchmarks/financebench/evaluate_financebench.py index 948b355..77758c9 100755 --- a/benchmarks/financebench/evaluate_financebench.py +++ b/benchmarks/financebench/evaluate_financebench.py @@ -322,7 +322,7 @@ class FinanceBenchEvaluator: for query in test_queries: start_time = time.time() - search_results = non_compact_searcher.search( + _ = non_compact_searcher.search( query, top_k=3, complexity=complexity, recompute_embeddings=False ) search_time = time.time() - start_time @@ -334,7 +334,7 @@ class FinanceBenchEvaluator: for query in test_queries: start_time = time.time() - search_results = compact_searcher.search( + _ = compact_searcher.search( query, top_k=3, complexity=complexity, recompute_embeddings=True ) search_time = time.time() - start_time @@ -802,7 +802,7 @@ def main(): print( f" Non-compact index: {non_compact_size_metrics['total_with_embeddings']:.1f} MB" ) - size_increase = ( + _ = ( ( non_compact_size_metrics["total_with_embeddings"] - compact_size_metrics["total_with_embeddings"] diff --git a/benchmarks/laion/evaluate_laion.py b/benchmarks/laion/evaluate_laion.py index 3b68480..1383ae5 100644 --- a/benchmarks/laion/evaluate_laion.py +++ b/benchmarks/laion/evaluate_laion.py @@ -259,7 +259,7 @@ class LAIONEvaluator: for caption in test_queries: start_time = time.time() - search_results = non_compact_searcher.search( + _ = non_compact_searcher.search( caption, top_k=3, complexity=complexity, recompute_embeddings=False ) search_time = time.time() - start_time @@ -271,7 +271,7 @@ class LAIONEvaluator: for caption in test_queries: start_time = time.time() - search_results = compact_searcher.search( + _ = compact_searcher.search( caption, top_k=3, complexity=complexity, recompute_embeddings=True ) search_time = time.time() - start_time diff --git a/benchmarks/laion/setup_laion.py b/benchmarks/laion/setup_laion.py index 64f01d9..849e7e6 100644 --- a/benchmarks/laion/setup_laion.py +++ b/benchmarks/laion/setup_laion.py @@ -76,7 +76,7 @@ class LAIONSetup: # Collect sample metadata first (fast) print("📋 Collecting sample metadata...") candidates = [] - for i, sample in enumerate(dataset): + for sample in dataset: if len(candidates) >= num_samples * 3: # Get 3x more candidates in case some fail break @@ -377,7 +377,7 @@ class LAIONSetup: def _add_passages_with_embeddings(self, builder, passages_file: Path, embeddings: np.ndarray): """Helper to add passages with pre-computed CLIP embeddings""" with open(passages_file, encoding="utf-8") as f: - for i, line in enumerate(tqdm(f, desc="Adding passages")): + for line in tqdm(f, desc="Adding passages"): if line.strip(): passage = json.loads(line)