ChatGPT continues to surprise me...
I discovered another powerful feature of ChatGPT and thought to share with all. During the holidays, I had multiple interactions with it to be able to understand it better. One of the thing that I was trying to find is "Can I write my own formula and have ChatGPT calculate the output based on that formula". Looks like it can, if we give the prompt like as below
INPUT = {input} -- within curly braces, mention the input variable name
OUTPUT = {output} -- within curly braces, mention the output variable name
{output} = {describe how you want your output}
Why was I trying to do this? I think many of us in the industry have worked with rules engine. I have personally worked on rules engine and developed some custom rules engine as well in my previous life. I have also made my hands dirty with DROOLs many times. Now, one of the use cases with rules engine is "Can we have business write the rule in plain english and then somehow we convert that into DSL in DROOLs syntax". There are ways some products enable this where business can write the rules in english in a excel, but a particular structure needs to be followed, it cannot be just plain human language. I thought, let me see if this is something ChatGPT can do. So, I created a formula as below and fed it to ChatGPT
INPUT = {rule}
OUTPUT = {description}
领英推荐
{description} = {rule in DROOLs}
After that I fed ChatGPT with an input as below and see what it provided as an output
This is actually amazing although ChatGPT at this time does not expose an API, but imagine when it will be enabled with API access, how easy will it be to generate the rules for a rules engine based on business users input. They can write the rules in plain english and ChatGPT can just convert int in DROOLs syntax
This feature can also unlock other capabilities, for example I can create a formula to generate a prompt for DALL-E to create images. The input can be an object name, the output a description of the object and the formula of the description can be parameterized so that using the formula, we can create a standard and consistent prompt for any object that we want DALL-E to create a picture of.
ChatGPT continues to surprise me and I think, if it is used in the right way, it can enable more automation and transform organizations to enable exponential growth leveraging technology.
Senior DBA | OCI OCP | Azure Data Engineer | MTI
1 年Awesome post.
Successful track record as an Advisor, CEO, Director of Sales & Recruiting for IT companies with international presence. Over two decades of experience in team building to deliver business critical solutions.
1 年Happy New Year! I have forwarded your post to a person who spent his New Year’s Eve on the drawing board.