AI, Llm, Programming, Agents, Software Engineering.
encoder. encoder = OpenAIEncoder() from semantic_router.layer import RouteLayer route_layer = RouteLayer(encoder=encoder, routes=routes) Then, when apply our query against the router layer, it returns the route that should be used for query route_layer("don't you love politics?").name # ->