Voyager does not put its whole skill library into the prompt. For each new task it retrieves the few skills most relevant to the task description, which keeps the context short as the library grows.
Implement retrieve_skill(library, query, score), returning the name of the best-matching skill.
Take the name with the maximum relevance score using max with a key function.
No results yet
Run your code to check it against the examples, or submit to run every test.