Examples
Real queries, real ranks
The rank of the correct function among all functions with BM25 (1 is best). These four are picked by hand from rule based lists, so treat them as illustrations. The browser below holds every test query.
Win
| Original | how to check if a path is writeable python | 77 |
| Prompted 3B | how to check if a path is writeable in Python | 94 |
| Trained (combined) | check if path is writeable - os.access | 3 |
Win
| Original | python sklearn onehotencoder string values | 943 |
| Prompted 3B | python sklearn onehotencoder string values encode | 136 |
| Trained (combined) | sklearn OneHotEncoder string values | 1 |
Repair
| Original | python substring index of | 1 |
| Prompted 3B | python string find | 406 |
| Trained (combined) | substring index of index | 1 |
Loss
| Original | python default menuitem select | 2 |
| Prompted 3B | python tkinter menuitem select | 3 |
| Trained (combined) | default menuitem select select_menu_item | 48 |
Browse all 1,500 test queries
Loading…
Win: the combined model puts the correct function in the top 3 while the original query and the prompted 3B both miss the top 10. Repair: the original was in the top 10, prompting lost it, training brought it back to the top 3. Loss: the original was in the top 3, the trained model misses the top 10.