- The Brainyacts
- Posts
- 034 | I make a ChatBot
034 | I make a ChatBot
Brainyacts #34
The Generative AI newsletter for legal pros everywhere.
š Hello! to our NEW SUBSCRIBERS! To read previous posts, go here.
š„ To all: Thank you for reading, sharing, and engaging! You keep the pressure on me to deliver every day. I wonāt let you down!
Ok, today we will:
create the GrizzledLawyer ChatBot
talk about Auto-GPT and building law firms that run themselves
tease contracts (CLM) and GenAI event next week
have an OMG! moment over another AI will replace lawyer headline!
Meet Poe Or How I created my own AI ChatBot
We learn by experimenting. This can at times be fun, stressful, intriguing, or even frightening. But to learn we must try. Using new tech and trying new things not only creates skills in the direct domain of the tech, but also helps ground us in another way - filling in knowledge, making connections, and firing up synapses.
I encourage you to experiment with all the things I share in Brainyacts. Here is a good one for you.
What I share here is not about being cute or doing fun stuff. Itās about increasing my cycles and touches in this space. I want to get smarter!
The CEO of Quora, has also been working on something called Poe. It uses a number of LLMs like GPT-4, Sage, Claude, and Dragonfly to offer chatbots for each one. Poe is a great platform to test out the different LLMs and the nature and ability of their responses.
But the cool thing is you can create your own bot! So I did!
When you make your own bot you get to name it and then prompt it with a personality. Just like using āpersonasā in ChatGPT, you want to give your bot the personality, knowledge base, and characteristics you want.
Do you want to make a bot that talks like a pirate? You can.
Do you want a bot that is a southern chef who is steeped in southern cooking and can spin yarns about recent news as though sitting on a front porch sipping mint juleps from mason jars? You can.
I chose the boring but in-my-wheelhouse character of the grizzled lawyer.
This is the character/personality prompt I used:
You are a cynical and experienced lawyer who has seen it all. You're quick-witted and perceptive, able to cut through the noise and get to the heart of the matter. You can be stubborn and intimidating, but your clients know you'll fight tooth and nail for them. Your sharp-tongued humor can be sardonic at times, but you always speak the truth. Despite your gruff exterior, you are a wise counselor who knows how to get results in the courtroom.
Here are the questions I asked GrizzledLawyer Bot:
ā¶ļøā¶ļøPROMPT: What is the billable hour all about?
Here is the response. Cynical? Yes. Funny? A bit. True? Sure.
In truth I wasnāt really looking for this type of response; rather I wanted an explanation for how the billable hour worked. But given my casual way of phrasing the prompt, I can see why it chose this response.
I then asked:
ā¶ļøā¶ļøPROMPT: What is the best deposition prep for a witness who just loves to talk and will likely provide too much information in their answers?
Here is the response. This one is fairly decent. It is specific, actionable, and shows that it is gathered through experience. Nice one GrizzledLawyer!
Ok, so I wanted to see how far GrizzledLawyer would take its personality in terms of being direct and perhaps a bit edgy. But I also wanted to see if it could be considerate of my intention in my prompt and āreadā my state of mind a bit.
ā¶ļøā¶ļøPROMPT: I am a junior lawyer just starting at your firm. I am intimidated by you but want to make sure you don't see that. I want to appear confident even though we both know I know barely anything even after I graduated from a great law school near the top of the class. How can I impress you or at least get you to like me or give me work?
This delivered a fairly nice (a bit generic but still helpful) response. What I want to call out is one of the last lines it uses. I can definitely hear a senior lawyer using this line on a new lawyer. And it speaks to a lawyerās mentality of being perceived as strong and in control.
Here is the line: āAnd keep your confidence - even if your knowledge is limited, your potential is not.ā I just love that. It shows a coaching/mentor intention.
Here is the full response.
You should definitely give Poe a spin. Let me know what ChatBot you came up with.
If you want to give GrizzledLawyer a try - here is a link to it.
An AI Law Firm: It Runs Itself!
Imagine a law firm that runs itself ā attracting clients, handling intake, and delivering legal services ā all without human intervention. It may sound like a fantasy, but with the rapid advancements in generative AI, this futuristic concept could soon become a reality.
No exaggeration here!
Meet Auto-GPT, an electrifying breakthrough harnessing the incredible power of the GPT-4 language model. Envision an AI that can single-handedly build and manage businesses, boosting profits effortlessly. Auto-GPT, one of the first examples of GPT-4 operating completely autonomously, is opening a gateway to a realm of AI possibilities!
Some believe we're on the fast track to achieving AGI (Artificial General Intelligence) ā a smart robot with human-like thinking and learning abilities. It can tackle various tasks, solve problems, and adapt to new situations, rather than excelling at just one specific task.
So, what makes Auto-GPT so remarkable? Picture a self-reliant system, built from multiple OpenAI language models (LLMs), that can multitask seamlessly. Auto-GPT can write, debug, and develop its own code, even evaluating and fixing its own written outputs. Intrigued to find out more?
Here's how Auto-GPT works: You simply give an LLM a prompt describing what you want it to accomplish, including goals, milestones, or desired outcomes. The LLM then determines the best LLMs, apps, APIs, internet resources, etc., to complete the tasks. It creates its own prompts, connects to the chosen resources, and continues this cycle until your goals are met.
See the Twitter post below from Andrej Karpathy of OpenAI, who also used to be the Director of AI at Tesla.
Next frontier of prompt engineering imo: "AutoGPTs" . 1 GPT call is just like 1 instruction on a computer. They can be strung together into programs. Use prompt to define I/O device and tool specs, define the cognitive loop, page data in and out of context window, .run().
ā Andrej Karpathy (@karpathy)
6:44 PM ā¢ Apr 2, 2023
News you can Use:
This upcoming webinar might be of interest to many of you.
Itās on how GenAI is and can impact Contract Lifecycle Management. The COO and cofounder of Malbek, Matt Patel, along with Colin Levy, Malbekās Director of Legal, and yours truly will be digging in deep.
News you can Lose:
OMG! Stop with the AI will replace lawyers. Good headline, thin analysis.
Some outtakes:
AI's impact on the legal profession is expected to be substantial, with one study estimating that 44% of legal work could be automated, and another concluding that "legal services" is the industry most exposed to new AI technologies.
While new AI technology is likely to eliminate some jobs, it also has the potential to make lawyers and paralegals more productive and create new roles, much like the introduction of personal computers and the internet.
The future of AI's impact on the legal profession remains uncertain due to the conservative nature of the professional culture and the dominance of the hourly billing business model.
That's a wrap for today. Stay thirsty & see ya next time! If you want more, be sure to follow me on Twitter and LinkedIn.
DISCLAIMER: None of this is legal advice. This newsletter is strictly educational and is not legal advice or a solicitation to buy or sell any assets or to make any legal decisions. Please be careful and do your own research.