Quickstart with laya
To get started with laya. Laya is a free, open-source AI model designed for fast, focused text classification. It makes simple decisions—such as routing emails, prioritising tickets, or identifying refund requests—by choosing from predefined options and providing a confidence score. In short: Laya is built for fast, low-cost AI decisions rather than generating text. To get started, we have to install laya and creating your python environment. Next we going to use it to decide if the ticket belongs to which department. This is an approach where it uses the model with your local computing resources. import laya from laya import Router # Initialize router with preloading (avoids swap delay) router = Router ( preload = True ) # Define complex state ticket = { "ticket_id" : "TCK-8821" , "customer" : "enterprise_user" , "subject" : "System downtime and billing dispute" , "body" : "Our product...