Method and system for dynamic guardrails framework with plug-in for large language models (llms)
AssigneeTata Consultancy Services Limited
InventorsMRUNALI HINDESHWAR KAPASE, AMIT KALELE, JYOTI BHAT
Life of this patent
Estimating the term…
Loading patent…
AssigneeTata Consultancy Services Limited
InventorsMRUNALI HINDESHWAR KAPASE, AMIT KALELE, JYOTI BHAT
Estimating the term…
A method and system for dynamic guardrails framework with plug-in functionality for Large Language Model (LLM) application is disclosed. The user requirements stating validations, validation preferences and threshold, and actions on these validations received via configuration file are used to select experts using pretrained LLMs. A wrapper comprising the basic guard rail code based on config file is generated and then optimized over iterative process using prompt optimization for guardrail code generation. The prompt optimizer is configured to generate updated prompt by analyzing the reason for failure or earlier created wrapper against the checks. The guardrail framework comprises a group of infinite tools with pretrained LLMs for specific tasks. The LLM based expert selection in accordance the configuration file enables only required experts to be used. The deliverable guardrail code is a plug-in to be inserted into an LLM application treated as Blackbox without interfering with user prompt.
The processor implemented method for creating guardrails for Large Language Model (LLM) applications, the method comprising:
A system for creating guardrails for Large Language Model (LLM), the system comprising:
One or more non-transitory machine-readable information storage mediums comprising one or more instructions which when executed by one or more hardware processors cause:
Dependencies are inferred from the claim text.