HF RL Explorer

Locate the argument under the cursor in a search query

Locate the argument under the cursor in a search query: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). The search query editor needs to know which argument the user's caret is currently sitting on so it can offer the right autocomplete suggestions and replace the…

The task

The search query editor needs to know which argument the user's caret is currently sitting on so it can offer the right autocomplete suggestions and replace the correct span of text. We already have a helper that splits a raw query string into its arguments, but nothing tells us *where* a given caret offset lands.

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.