bm25_search_go
mediumruntimeGo
results
Measured by wall-clock runtime in seconds — lower is better.
2.1s0.03s
sota
Usage
Run the reference answer to verify your environment is set up correctly
$ harbor run -p tasks/bm25_search_go
Test model
$ harbor run -p tasks/bm25_search_go \ -a claude-code -m claude-opus-4-6
Description
Optimize a Go search engine that computes exact BM25 top-10 results for each query over a deterministic synthetic corpus. Both corpus generation and query execution are included in the measured time. Goroutines are allowed but only standard library packages may be used.
Files
path
permission
/app/engine.go✎ Edit/app/tokenize.go✎ Edit/app/score.go✎ Edit/app/rank.go✎ Edit/app/batch.go✎ Edit/app/corpus.go✎ Edit/app/types.go✎ Edit/app/main.goRead-onlyRules
- 01Standard library only. No external modules.
- 02Single-process only. Goroutines are allowed.
- 03Wrong checksum or hit count = score 0.
Tags
gosearchbm25inverted-indexranking
Model Results
Click a row to view its trajectory in Live Lab
model
reward
score
0.830
Kimi-K2.6
0.640
DeepSeek-V4-Pro
0.600
Qwen-3.6-Plus
0.560
0.540
MiMo-V2.5-Pro
0.510
0.510
Grok-4-20
0.510
0.500
0.500
Hunyuan-3-Preview
0.320