Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- run: uv sync --extra dev --extra binary --extra vectorstores-sqlite-vec --extra openai-embeddings
- run: uv sync --extra dev --extra binary --extra vectorstores-sqlite-vec --extra openai-embeddings --extra evaluation
- run: uv run pyright

test:
Expand All @@ -72,7 +72,7 @@ jobs:
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- run: uv sync --extra dev --extra binary --extra vectorstores-sqlite-vec --extra vectorstores-pgvector --extra openai-embeddings
- run: uv sync --extra dev --extra binary --extra vectorstores-sqlite-vec --extra vectorstores-pgvector --extra openai-embeddings --extra evaluation
- run: uv run pytest -m "not nightly" --cov --cov-report=term-missing

build:
Expand Down
13 changes: 3 additions & 10 deletions examples/flycanon_eval_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
import sys
from pathlib import Path

from fireflyframework_agentic.evaluation import RetrieverMetrics, compute_retrieval_metrics

from fireflyframework_agentic.evaluation import RetrieverMetrics

# ---------------------------------------------------------------------------
# Helpers
Expand Down Expand Up @@ -171,10 +170,7 @@ def _print_metrics_table(metrics: RetrieverMetrics, baseline: dict | None) -> No
if value is None:
continue
# Format floats as 4 decimal places; ints as plain integers.
if isinstance(value, float):
cur_str = f"{value:.4f}"
else:
cur_str = str(value)
cur_str = f"{value:.4f}" if isinstance(value, float) else str(value)

row = f"{key:<{col_w}} {cur_str:>{num_w}}"
if baseline and key in baseline and isinstance(value, float):
Expand Down Expand Up @@ -353,10 +349,7 @@ def build_parser() -> argparse.ArgumentParser:
p.add_argument(
"--baseline",
default=None,
help=(
"Path to baseline.json (champion store). When absent, scores are printed "
"without comparison."
),
help=("Path to baseline.json (champion store). When absent, scores are printed without comparison."),
)
p.add_argument(
"--promote-if-better",
Expand Down
Loading