MRKL (Karpas et al., 2022) routes a language model's request to specialized modules, such as a calculator or a knowledge base. The router is the first step: decide which module should handle the query.
Implement route_query(query, experts), returning the expert whose keyword appears in the query.
Lowercase the query, then scan the keyword list in order for the first keyword contained in it.
No results yet
Run your code to check it against the examples, or submit to run every test.