style: format

This commit is contained in:
Andy Lee
2025-08-22 13:50:57 -07:00
parent 26d961bfc5
commit ed72232bab
7 changed files with 28 additions and 32 deletions

View File

@@ -482,7 +482,7 @@ class FinanceBenchEvaluator:
self, generated_answer: str, ground_truth: str, question: str
) -> bool:
"""Check if generated answer matches ground truth using LLM as judge"""
judge_prompt = f"""You are an expert judge evaluating financial question answering.
judge_prompt = f"""You are an expert judge evaluating financial question answering.
Question: {question}

View File

@@ -1 +1 @@
data/
data/

View File

@@ -166,4 +166,4 @@ benchmarks/laion/
- For real LAION data, implement actual download logic in `setup_laion.py`
- CLIP embeddings are randomly generated - replace with real CLIP model for production
- Adjust `num_samples` and `num_queries` based on available resources
- Consider using `--num-samples` during evaluation for faster testing
- Consider using `--num-samples` during evaluation for faster testing

View File

@@ -323,7 +323,10 @@ class LAIONEvaluator:
f" Storage saving by compact: {timing_metrics.get('storage_saving_percent', 0):.1f}%"
)
# Show excluded components for reference if available
if any(k in non_compact for k in ("passages_text_mb", "passages_index_mb", "metadata_mb")):
if any(
k in non_compact
for k in ("passages_text_mb", "passages_index_mb", "metadata_mb")
):
print(" (passages excluded in totals, shown for reference):")
print(
f" - Passages text: {non_compact.get('passages_text_mb', 0):.1f} MB, "
@@ -333,7 +336,9 @@ class LAIONEvaluator:
else:
# Fallback to legacy totals if running with older metrics
print("\n📏 Index Comparison Analysis:")
print(f" Compact index (current): {current.get('total_with_embeddings', 0):.1f} MB")
print(
f" Compact index (current): {current.get('total_with_embeddings', 0):.1f} MB"
)
print(
f" Non-compact index (with embeddings): {non_compact.get('total_with_embeddings', 0):.1f} MB"
)