galapagos
DocsHubLeaderboardPlaygroundNews
galapagos

six blocks · any task ·
better solutions emerge.

Platform

  • Hub
  • Leaderboard
  • Playground

Resources

  • Docs
  • API reference
  • Card spec

Community

  • GitHub
  • Contribute

Updates

  • News
  • Releases

© 2026 Galapagos. Licensed under Apache-2.0.

Build your own scaffold.

Hub/Scaffolds/default/Top-K

default/topk

Top-K

Always expand the single best program, with the next K as context. Pure greedy elitism.

Test-time searchApache-2.0
Scaffold cardFiles and versions
topk/evaluator.py
10 lines · 391 BpythonDownload
"""Top-K Evaluator component — supplied by the TASK.

In Galapagos the Evaluator comes from the task (``task.evaluator``), not the scaffold; Top-K uses the
task's SubprocessEvaluator. Re-exported so the scaffold directory carries one module per component.
"""
from __future__ import annotations

from ...components.evaluator import SubprocessEvaluator

TopKEvaluator = SubprocessEvaluator