navarre.ai

ClarisTalk AI · the FileMaker AI podcast

Context: It's not what you think

March 21, 2024 · 56 min · Matt Navarre and Cris Ippolite

Jump to transcript ↓

In this episode, Matt and Cris talk about custom GPTs on ChatGPT Plus and how you can supply them with your own data. They explore that concept further and discuss how the idea of “context” in FileMaker is different from context in AI. They explore some ways of using “retrieval” to provide context in your API calls to AI language models. Then, they talk abut a new movie starring FileMaker: https:/

Apple PodcastsSpotifyYouTubeAll episodes

Transcript

Transcribed by machine (whisper, large model), 10,892 words. Names and product terms are sometimes misheard; the audio is the record.

Claris Talk AI. Hey, Chris, let's do another one. You know what? I love it. Let's do another one. So, Claris Talk AI, it's rolling. We've got video, we've got audio. Yes! Everything. Yeah, we're going to have this one on YouTube and on podcast. So for the folks that enjoy us in their ears, we'll have all sorts of good audio narration. But for those that like watching us on YouTube, we've even got a couple of visuals this week, visual audio stuff. So we'll have a multimedia experience for everybody. But first of all, excited to be here talking to you again, Matt. I really enjoyed our conversation last time around, and I look forward to continuing on that as far as the matters of Claris and AI are concerned.

So we've got some stuff to talk about specifically. let's see you've got a couple surprises coming which is exciting i want to talk about making custom gpt with chat gpt uh because it directly connects to some of the things we're talking about in the last episode we talked about prompt templates and today we're talking about context which as it turns out is exactly the same as context in filemaker pro there so we don't even have to cover it i think we're done that was a joke that was one of those joke things that i try to do but don't work it's it's completely different and i'll have you explain it well i actually you Now, what might be really interesting is for us to start with custom GPTs because the knowledge inside a GPT, and we can explain what these components are for those that haven't played around with it, is what is context.

And so why don't we talk a little bit first about custom GPTs, your experience, what you've created. I just created one that I'm really excited about that I think is really practical. And we can tell people how we're inserting our own proprietary information into those so that it's not just a normal chat GPT experience. And I think that'll be a great launching point for us to explain what context and retrieval is as it pertains to, like, API integrations into your custom business applications. Yeah, exactly. So I'm going to talk about mine. Please. So if you have the account, the one you paid $20 a month for. ChatGPT Plus. Yeah, ChatGPT Plus. Or there's, like, team accounts, too, that you can buy at enterprise levels.

But, yeah, basically the paid accounts. Yeah, get it if you don't have it. So I am a newish dog owner. I think under a year. have two rescue dogs dog one two no way okay well we should rehearse more often wow okay cool you go with your dog i've been having problems like one of our dogs pulls like crazy she's just pulls so much and the other one barks a lot so they'll just and i just want to be a really really good dog dad right because i love them i give them all kinds of attention i gotta figure and i'm trying to figure out like how do i feed them how to so i made a custom gpt and i put in this is what i want i want i am a 72 year old no i said dog i said i'm a dog ears i said i'm an adult who has two rescue dogs living in rural crete and that right there is a ton of information for like stuff going on right yep um i live in the middle of nowhere for yeah anybody who cares uh and like these are my dogs these are their ages uh these are the kind of problems i'm having these are the kind of things that i want so i put like a description like a paragraph of what i want and then specific questions that i might ask by the way that those things you just described or what we talked about in our those are great examples what we talked about in the last episode that's you were creating a prompt template and part of a prompt template is describing who you

are and what matters to you right that's what we talked about last week in the user persona you guys can go check out last week's episode uh or two weeks ago's episode but what you just described there is so important because the we are in so much control over the quality of the answers that we get out of these out of like things like chat gpt and what you just did there like really narrowed what the possible responses could be to whatever question will follow so i just wanted to point out that that's an excellent example of how you should do this yep so um uh so then i put some questions in like how do i know if i'm feeding my dog too much um how do i you know how many times of the day, should I walk them to make sure they're getting enough exercise, stuff like that.

And then now when I ask questions, it's much smarter. I did a separate one unrelated to that, by the way. I have to throw a little piece of candy in here for a specific FileMaker project. And you can load an XML. You can load the XML of a FileMaker database. The FMXML? The FMXML. It's a lot of tokens, by the way. Yeah. But you can put the whole thing into a custom GPT as a document, and then you can ask questions of it, which is kind of cool. So let's, so first of all, I'm talking about DDRX. Yeah. Oh, there we go. Yeah. The FMXML honestly is like, you would need a token window above 200,000 tokens to fit like one simple files worth of FMXML. But the DDR is perfect, especially like the XML version.

Cause it's, it's described within the tags or the HTML for that matter would work too. So then you could ask questions of it. I think that's a brilliant use case. Now, a couple of things, just for those that aren't familiar with GPTs, what this is, is a like a a developer like you just described and i'll give a couple examples in a minute too can go in and create the two things the instruction or or the like what you just described i am a pet owner this is where i am and give it some instructions on what to do and what not to do and then you can also provide what chat gbt plus uh describes as knowledge which are documents mostly pdfs it really likes pdfs um or you know whatever it is i'll give some examples of some of the knowledge too but you put that knowledge in and so what and then you can choose on the gpt whether or not you also want to allow things like code interpreter and if you're doing code yeah web browsing or even dolly you could actually have images so my one of the things i mentioned in our last episode was that I don't think GPTs that have web browsing are super useful.

What I meant by that, and now give us a chance to clarify that, is that you don't, the person using, the person authoring the GPT has really almost no control then over what is coming back. If you want full control over what the, what the user of your system, especially if it's just you, can do is do exactly like what you just described, but only upload documents that you want the user of your GPT to chat against and turn off web browsing. That way there's no noise. All the information and truth comes from your document. And by the way, that's going to set up our conversation about context coming up here after our discussion about GPTs. So hopefully that makes sense.

Signal to noise ratio. Oh my God. That's literally what... So that's what my issue is with turning on web browsing is noise. It's just a tremendous amount of noise. Now, if you're using GPTs for search as an alternative to googling things then welcome to like the present times you should be doing that because google is just fraught with noise so you can narrow down like you can literally trigger it to browse by saying can you go browse for this information like i was doing some research this morning and i actually wanted to see different citations in places i could go click through to look at but when i'm building a gpt i just want to talk against my data like so for example i am working on i have sort of a draft of a gpt called ask chris about filemaker which is um not browsing the internet because i don't care because you can just use gpt chat gpt for that that what people are actually doing is asking my 25 years of transcripts of sessions and all the videos i've ever done like i have all those the problem is those are 2.5 million tokens worth of information and you can't fit that much into a gpt so i had to take just a small amount of it but when people are using that gpt like which is publicly available and you can

just search for ask chris about filemaker if you want or you can go to ask chris dot training where i'll have a couple of those on there yeah okay then what you're doing is just asking questions of my knowledge base which is very similar to this retrieval concept i don't want people to think it's me saying something when it's really the inner some internet search that i have no control over so that that's one example now tell me about my dog that's exactly what i was going ask okay all right so first of all my dog uh liberty who's sitting at my feet right now she she's always in the booth here when i'm in here um unfortunately i don't want to bring everybody down here but um she's a young pup and we just found out that she has congestive heart failure which is super sad and yeah um so really to be a good dog dad and i'm not taking all the responsibility for this my wife and i are in this together it was really important for us to be managing her health and what instructions were given like managing it in the best way that we possibly can right so we go in we had to take her in after an episode she had a few weeks ago and you know people are throwing paperwork at you and do this and here's a bunch of information on these medicines and this is the procedure we recommended it's super overwhelming right and so then we went into the cardiologist um just last friday and i said to them because like in our in

at work at iSolutions during my daily routine, everything is recorded. Everything is recorded. So just know you're being recorded when you're talking with one of us, we tell you, but the point is we're AI transcribing every single conversation we have internally or with customers or whatever. So I did the same thing with the vet. So I pulled up my phone and I pulled up Otter AI and I just said, look, I'm recording this because I don't want to miss any of it. So we had about a 45 minute conversation with the vet. They read through all the results of the echocardiogram, you know, what, where she's at, what some of the observations of the x-rays were like a bunch of stuff that I would have just been like, I'm not paying attention. And then I got a stack of papers and they gave us the stack of papers Saturday morning. I took the transcription of our entire conversation with the cardiologist, every single document that we had, even her blood work.

And I scanned all of them as PDFs and I put them into a custom GPT called Libby RX. And, uh, tomorrow her um respiratory rate and heart uh what what is it called how much your heart rate uh monitor bluetooth heart monitor shows up and i can actually um there's an api you can download it as csv but there's an api so in your custom gpts there's a little thing called actions where you can actually set up yeah so an example of that is you can set up an a uh an api endpoint so i'm going to be collecting data on her respiratory rate and her heart rate and i'm to be able to have this, like be able to refresh it however often I want to into my GPT. So I can literally say, how's Libby's heart rate, you know, for the past few days, is she trending up and, you know, or, you know, can, then I can actually turn on code interpreter and say, well, we've increased her medication. Is that having any effect on whatever? Like, so I'm not going to publicize it so people can have it. But for me, it's just a great way. Like literally the next morning after I finished it, I, I showed my wife and I just said, how's Libby? And then we ended up having like a 25 minute conversation with this gpt you know what the voice stuff turned on like we had our own personal cardiologist so anyways that's my dog dad gpt version and so

in that case just to carry forward what we're learning here the knowledge it's chat gpt and its amazing ability to talk like a human but the information it's using is not its corpus of data It doesn't know anything about my dog, Libby, or her condition, but all these documents do. So now I can actually ask very pointed questions of the knowledge base. That's the context within my conversation with ChatGPT that we're having. So I think it's a really great, these GPTs are a great way to get started, you know, creating your own fun ones if you want to. Yeah, you can understand stuff. Okay, okay. Context, but before we get there. Yes. You had a fun thing. You had a fun thing.

You teased me with something Clarity, something FileMaker-y. Yeah, let's, okay, totally random. I'm going to, hold on one second. So, did you know that there is a movie out right now where, like, FileMaker is pretty much a character? The Barbie movie, right? That is correct. No, it's actually called, hold on, let me share with you. That's a strange title. Yes, it is a strange title. So for those of you that are watching us on YouTube, I'm going to share a YouTube here. But for those of you that are listening, I'm going to play you a clip from the movie. And the movie is called Problemista. Let's take a listen to this little clip where FileMaker Pro is mentioned.

Here we go, Matt. Problemista. You don't want to sponsor me anymore? I'm actually from El Salvador. Oh, El Salvador. Pupusas. Yes. And those nuns they killed in the 80s, yes. Right. So now I'm looking for a new job. Oh, you are? That will maybe sponsor me. Oh, well, I'm not sure I could offer anything formal, but maybe freelance, and then we could see. Here it comes. Did you use FileMaker Pro at the facility? No, we use Google Sheets. You can't compare that to FileMaker Pro. It's basically the same, except FileMaker is harder to use and not free. Okay, that's not a fair representation. Wait, what? Yeah. All right. I know you're thinking, wait, what is going on here?

Okay, first of all, so that was Tilda Swinton, by the way. Whoa. So I saw this movie last weekend and honestly, it was a great movie. I watched it out of duty to kind of see what was going on after this clip, you know, came out a couple of weeks ago. So that was actually a tweet from Claris where they were highlighting that. That was the actor who I think is the writer to Julio Torres. I admittedly didn't know who Julio Torres was, but he's a writer on SNL and he does these like really super clever bits that I've come to learn. And pretty much all his funny bits from SNL over the past years have been folded into this movie. You know how they do that with SNL, like they take a character writer and they give them their own thing.

So in that scene, we all have these experiences in our in our file maker lives. In that scene, he's getting a job. And the woman, Tilda Swinton, is saying, well, I it's she's an art. She has an art collection and her previous assistant insisted that she use FileMaker Pro because all the other galleries were using FileMaker Pro. So the assistant built the database for her and then the assistant left. And so she's saying, does this sound familiar to you and all our listeners? Hey, my last person built this in FileMaker and they left. Do you know FileMaker? Can you take it over from here? So I thought maybe it was just that scene. Matt, the entire movie is about this dilemma with getting her FileMaker Pro databases.

That's crazy. Even the final scene, like this kind of heartwarming, sort of cute resolution of the movie. Like the final words that come out of the main character's mouth are about the FileMaker Pro databases. So I would say, now my wife and I have different tastes in movies. She came out of that movie saying this is one of the best movies she's seen in a long time. I found it to be, you know, fun. I'm mostly like super tripped out about the FileMaker thing. By the way, Matt, as trainers online, there are two scenes in there where the lead character does a Google search for FileMaker training and fake results show up, which is probably good. Actually, my wife turns to me in the theater and she's like, are those your websites?

And I'm like, oh, how cute. She thinks I actually, you know, have some control over Google. but it would have been hilarious there's another page where like there's a huge screen it says file maker pro training page you know it's like i guess supposed to be like the custom map academy or something so yeah um again that is uh julio torres um who i think had a lot to do with writing the movie had to it like it's like just all got all this stuff in it and the movie is called problemista i'm in something the los angeles area so i was able to find it in theater um i think uh And Andy LaCates, our friend at Claris, he texted me the other day telling me he also saw it in theater out in Atlanta.

So I think it's in those big markets. I'm not sure when it gets to Crete. But, you know, at the very least, by the end of the year, you'll be able to stream that. So I haven't actually seen I've lived here for almost two years and I've yet to see a movie in the country. Oh, so if there's a movie theater, maybe there's one in the 45 minute town away from me. wrap them now but i don't know i got that i got the tv and i've got netflix so i just wait yeah it'll it'll be streaming probably by the end of the year but definitely check it out i mean it's it's just crazy see i mean like the the last point i'll make on it is you know as as file maker people over the years like how many times when you're when they like show the screen on a tv or movie and you're like and they're like showing the software and you're like part of you in your mind is like oh is it file maker you know you're like looking at the the chrome and trying to see maybe a menu or something and we just never when you walk back from the bathroom on a plane and you're looking at people with their notebook like who's using file maker or as a matter of fact i speaking of dog dad we were getting um we were getting one of our dogs a photo oh my god a photo session with one of the dogs and the woman had her laptop out and she's taking all our customer information and i peeked at it in the same manner we talked about and it was file maker and i'm like oh my god you use file maker and she's like it was basically like

that scene you just saw she's like oh my god my last assistant i don't can't figure this out she's like i'll swap you some photo session credits for helping me out with this thing so i was like great so keep keep looking at people's laptops just in case you never know yeah true okay context yes which gears uh so as obviously as trainers and file maker we teach the importance of the concept of context a ton um little tips like as you're writing a script that changes layouts and changes context always have the always have the layout behind the script workspace on the same layout that you're actually working with so the context is the same so that when you do set fields at variable it's getting information from the place that's correct without you having to change context okay yeah and i think probably for all the young kids out there you know because um um you know we're just a couple of the old generation and with the thousands of 20 somethings are out there in our community who probably don't even know what why context is a thing in FileMaker it actually i mean just as a for curiosity's sake it really wasn't a thing when we when FileMaker was flat file right because whatever file you're in that was the context one you had one table so that's what your table it really if you put the word table in front of context probably makes

sense in FileMaker yeah that's true but then when we went with uh FileMaker 7 and like many tables one file but you still just had one interface component you have to establish where you are basically where are you in the relationship graph in any given time is really what context is context now in fairness scripts have context like where am i what layout context layout am i currently on uh calculations have context if you're defining calculations that have related values and even um uh so uh the layouts themselves do of course um but really we're talking it's it's mostly so anyways that part is super important for just file make people understand so for the next 15 minutes or so forget everything you know about context because this is different so put that compartmentalize it over put it over here and we're switching context oh my god we're getting so meta uh oh my god in meta it makes language just keep going it just keeps spiraling down the rabbit hole that's not what i mean so let's so let's let's back up to uh again we won't rehash the details what we talked about in our last episode but it

was a really important uh starting point for communicating with language models whether it be through apis or just through a chat interface or something we talked about prompt templates last week and a prompt template is much like you talked about like defining who you are why the question you're about to pose is meaningful what constraints you can add to it examples of the type of the output in the format or the tone that you're looking for maybe like tons of guidelines to follow whatever it is tons of stuff so the whole takeaway was there's a bunch of stuff that you put in there and the main point is you as the person writing the prompt are in complete control over how good of an answer you get back and how truthful that answer is, right?

The number one thing we talked about last week and that I continue to pound the podium on when I'm talking to people about AI for business, not dog dad stuff or any of the stuff that we just talked about before, but business implementations, which is what our community is all about, right, is not relying on the language model for truth, right? So, no one who has tried ChatGPT once and then says, oh, forget this AI thing, I'm not interested, it's dumb. No one of those people are listening to us right now because you have to foster a curiosity about what this could do. So, for the people that are, the main takeaway is if you're building a business application, and then I'm going to propose the problem, and then we're going to unravel how context is the answer.

The problem is if you're building a business application where you've integrated one of the language models, GPT-4, let's say, and all you're doing is asking it a question and it's supplying answers back to you, like from the general corpus of chat GPT-ness, like you're doing it wrong. I'm just going to make a bold statement that that's not how you should be using language models for business. What you should, in fact, do is ask questions of your data, get that answer, and then send your question or your prompt template, your question and that data over to the language model for it to do its thing. Now, we'll just put on the shelf that doing its thing means, and it's a big deal, talking like a human, carrying on a conversation, managing conversational memory.

There's a lot that it's doing, but we don't care what it knows about our topic. In our last episode, you were talking about hepatitis trends over a certain number of years. And I had posed to you, when you ask that question of your FileMaker database, the data to answer that question lives in your FileMaker database. You can create a found set of data by querying your FileMaker database that has those answers, but it's not written in a cool paragraph with maybe visualizations and in a summary statement. The summary statement, cool paragraph visualizations part, the language model can do that. but the truth to answer your question comes from your data right so to linger on that it's very similar to what we just talked about before where we were building gpts and we're saying don't go look out into your corpus of data or on the internet focus on these lab reports of this you know cardiologist report only and find the answer there that is what is called context so if you make a custom gpt so you can put the questions in you can put the background in where does context fit into that context in the in the in the framework of the custom gpt for those have used it or who are about to is what they refer to as knowledge it's literally a little section

that's knowledge and you can upload the documents got it got it got it but i'll additionally so that's one way that you can introduce context the second way to introduce context that in the gpt is in those actions i just described i can do an api call so that's where i'm getting the heart rate monitor and breathing rates from the api of the bluetooth caller for the dog so i'm actually doing two different what are called retrieval techniques one is providing documents and then the second is api calls and that is exclusively where the answers to the questions i'll be asking that gbt are coming from that is context in that the verb is retrieval all right light bulb moment because everything about this that we talk about, the thing going off in my head is, okay, great, how do I connect it to FileMaker? Okay, great, how do I connect it to FileMaker?

Okay, if we used a custom GPT, which we've been talking about, and it's really, really easy to understand, and you use an action and you make an API call to your FileMaker database, would then you be able to ask a question and have it actually construct an API request to go get the answer? Absolutely. Oh, man. So the question that's bouncing around in your head about how do we make this relevant to FileMaker and for our deployments is absolutely what everybody should be thinking. Yes. That's what we do. We build applications for business. Our answers, our truth, as I like to say, I know it sounds a little esoteric, but truth is really important to me when I'm working with our clients on AI implementations.

Well, I know you well, so I know that the only truth that matters to you is the lowercase T kind. but we'll just move along. I was waiting for that. But when we have a responsibility, okay, well, let's put it this way. You and I had this conversation in another podcast about dashboards. Remember when I was like, oh, I hate dashboards, right? Oh, yeah. But there's something I think people get, like when you're looking at a dashboard in your FileMaker application or whatever application it is, you do you have any issues about is this information true or believable and i'm baiting and the answer is no you don't like most people just look at the dashboard and go oh well all this stuff happened already right so why would i question whether or not it's truthful like all i'm looking at is like last year's invoices and what my totals were in trends or today's things i'm supposed to be doing or yeah today's all of it is truth because why because we know where the source of that data comes from generally as the constructors of those systems we are also responsible for having built them so you know we we take on the responsibility for truth all the time so you know some people could say like garbage in garbage out but i think we're all

pretty mature in our development efforts that we're not putting garbage in right so whatever's in that database we feel comfortable that there's truth there right yeah yeah i agree so in the context of sending an api call to a language model if i was going to ask something like um write a description for a product okay let's say i tried that without context and in my prompt i literally just say write me a description for a product i'm being silly and overly simple because the language model would go description for a product you mean any product i can just make up any product that i want and and then it just writes back and it comes back with like a toy um like in that problem we used to movie he's a toy designer and he has a toy called you said barbie um and it's a barbie that that has her fingers crossed behind her back i know there's a joke in there somewhere right so let's say you get the description of a toy a barbie with and you're like no i make industrial helmets like why are you giving me a barbie description so then you go well let me explain to it i make industrial helmets right this is the product And so then like for those on YouTube, I'm sharing on screen here, an example of creating something that would be similar to like a let function in your, you know, in your curl

request that you're sending along with your API called the language model, you can send it a bunch of information. So for example, let's say you have a product identifier, a description, or some keywords that are involved with a product description, go do a search of your FileMaker database for the product you want to write a description for, pull the values from those fields over And send those along with your prompt template and your question or your command, write me a product description. Now, you're not going to get the Barbie with her fingers crossed behind her. You're going to get the actual product description for the thing. For your, yeah, for your product.

And so, you have control over which product you send over. You know, you can do a whole found set, whatever it is. The verb in that case is you need to retrieve the correct information to answer your question. If in fact you're asking a question or even if it's a command, go create a product description isn't a question, but I want to send the answers to it. So let's, let's pause for a moment there and make sure that that makes sense. Yeah, it totally does. As I, the thing that I'm thinking about is basically you're using the chat GPT as an engine to get, to, to get information from your data in a way that you couldn't do it before. Is that oversimplified?

Well, no, I think, I think, no, I think I can even make it. simpler than that it doesn't even have to do any of the retrieval itself we're searching the file maker database for those fields in that one product record before we even communicate with the language model yeah so this i guess this would be if you do it like the traditional api method where you have a script like a button and file maker that you click that does something and then you type something into a field to say come up with a description for this product category whatever and you're on a product now we're back into file maker context you're on a product record and in your curl request like i'm showing to the youtube folks i can say go to these five different fields and go grab the data in those fields and send that along with my command that says write a product description right and then the rest of like who who i am what persona i have i'm in a marketing department and i did it all that information gets sent over now do we so the question would be as a thought experiment if we send all that information over and all the prompt template stuff over do we expect that we're going to get a better answer than if we just said write me a product description? No. Of course. Of course. No more thought experiments. Yeah, yeah, yeah. Uh, yeah, obviously. Uh, and I think what, I think what we all have to discover is how much better, right? How magic better. Yeah. Well, yes. Um, the other part, right. So

in short, send it all the information. I, I, I used a, uh, I use the terminology in a lot of my presentations where i say uh context like this this retrieval process is like a student uh taking an open book exam like if you if you're just trying to give the language model an exam like you're testing it with your question it do you think it's going to do better if you give it the resources with all the answers in it or do you think it's going to do better if it's just you know guessing from its own memory so my point is always make it open book exams um the the the other part matt that is super important is um is that like so in the for the youtube folks i'm showing something called retrieval so i mentioned that this verb of going and getting the information before you send your api call to language model this is called retrieval in the ai space it is specifically referred to as retrieval augmented generation which means you go and retrieve something and then you are asking the language model to generate something but you're augmenting it with your data i don't love retrieval augmented generation that came about yeah years after we've been doing this but not a good acronym either it's the acronym sucks it's rag and i'm saying that because that's what everybody calls it out there so if you see rag somewhere in the context of ai

that's what they're talking about but let's just call it retrieval all right so the idea of asking a question let me just pose to you this matt you're a company you have your own hr policies and you go ask a language model, let's say it's ChatGPT or Claude, which by the way is my new, Claude 3 Opus is my new favorite. LLM, by the way. You ask it, what is our vacation policy? What would you expect to come back? Junk, if it's only going to go to the internet. There's no possible way that it could know. Exactly. So if I work for like a really big company and the vacation policy is online, you know, I could say, what is my vacation policy? i work at hp you know then it might actually be able to yes but you don't might be not yours yeah well even if you work at hp and it is online you have no idea which version of that one is in the corpus of data like a lot of these have a cutoff point like it could even if it's just last october 2023 or something right it still might not be your policy as of today so instead don't let it go ask questions of the internet or its corpus of data that it was trained on the data that a language models this is a profound statement i want to make the data that a language model is trained on has nothing to do with what a language model does that's just how it learned to learn

that's literally it and that's how it learned how to talk like humans and yes of course by accident it got a bunch of intelligence and it can write cool things for you and help you write papers and stuff and maybe actually answer some questions with truth but when it comes to your business yeah it's a fool's errand i mean i think it do way more than that well and so by the way it can translate and speak every language and understand things you can look up etymology and can compare things it's yeah it does it does way more than that based on like the you know knowledge out in the world that you would that that you wouldn't live or die if it was wrong you know correct well and by the way that's why for creative endeavors like um writing screenplays or short stories or poems or whatever or creating imagery there's no truth is there a right or wrong answer when you're writing a poem no yeah it's just be creative there are wrong answers actually let's not explore any of those man like my favorite my favorite dickery dock yeah well i mean my favorite teacher says like if you're there's there's there's uh there's no one right answer to like something in music or something like that but there's a lot of wrong answers. I love that. Okay. So, you know, perfect. You just, thank you for making that example. I

gave even smarter and more relevant. So in the creative endeavors, the model doesn't use any of its data. It's truth doesn't matter, but learning how, how humans talk and what they think is funny and what they think is beautiful. Like that, that is what that a massive amount of data, why it actually mattered. But if you go ask a question, what is my vacation policy? And for those on YouTube, you can actually see I'm sharing, I'll narrate this, but there's four different cells here in this thing I'm showing. And I've asked that question, what is our vacation policy to Chachapiti, Bard, and Anthropic Claw? Not Claw 3, my new favorite, but the previous version. And then down in the bottom right-hand corner, Matt, I asked that question to Mistral, which is an open source model. The three, the big guys, the Chachapiti, the Bard, and the anthropic this is kind of important too did they matt you interpret to the the audio users on the podcast what they said they didn't give an answer instead they what i'm sorry i don't have access to your vacation policy i do not have that information about your company your company's vacation or any company's vacation i'm an ai assistant so they're basically saying why are you asking me i don't know anything about your company but then i love it's like you know i apologize here's what you can do though search your company's knowledge base look at your employee handbook it's like

wow i hadn't thought of that ask your hr department so what that is is actually like human reinforced like fine tuning that these model operate now sometimes this can go awry we're not going to get into that but that is definitely part of the discourse right now when it goes wrong but this is just saying look we don't want to hallucinate that's this concept of hallucination right which by the way is the bottom right corner cell that says oh your company vacation policy as follows and it just goes on and answers a question that is not the right vacation yeah vacation must be taken within the calendar year so that is actually kind of interesting because the open source models like mistral they don't have this like kind of uh reinforcement training or like the big guys saying hey if somebody asks this question tell them we don't have the answer they don't have that as much as the big ones do so the problem all of these are problematic right so instead what if you did something like um and by the way this is uh this is another example of um that last the bottom right one looked like it to me it looked like it was trained i mean that was legit hallucination you'd that was a legit hallucination here's another example of trouble if that's the one you followed yeah that in that and i'm showing another example of of that what is our vacation policy in the bot in the right hand side is also looks like the right answer but it's not so now

this is a example matt um just showing you what is our vacation policy i'm actually asking mistrawl and i'm just going to tell you that what we're seeing on screen for those that are watching on youtube is the correct answer with the citation to the most recent employee handbook where it found that answer so what the difference there is is instead of asking the corpus of data that the language model was trained on what the answer is I am searching through a bunch of documents that we've vectorized and I'm coming up with the right answer now granted it doesn't have this paragraph this paragraph is not coming back as a search results as a matter of fact what's coming back in the search results is just like a bunch of non sequiturs that might be the correct answer that's what vector databases do this is a concept of embeddings and so I am just feeding to the language model the question and a bunch of things where the answer is probably in there that a human's not going to find very useful then i go hey language model you go make this sound good so it goes and makes it into this paragraph that we're seeing on screen that is what the job of the language model really is in our business integrations is to talk to humans and do fantastical things like you mentioned before but not provide truth right yeah this is also kind of bad. And I think it probably had some things wrong. Right. I was just reading through and it

said, like, you could take up to 10 days. They could be consecutive or not. And then it said something and it's like, you can only ask for vacation up to 30 days in advance. And I'm thinking, I don't think that's right. I don't think there would be a company that would not allow you to schedule a vacation six months in advance. I think that would be really, really dumb policy. Well, probably why you would want it to actually search your employee handbooks, not like the the general internet at large right exactly yeah yeah and so i think to kind of pause for a moment here and like talk about what we've what we've learned so far is that if you tried using ai once and you got the wrong answer and then you just left satisfied that this is one more thing i don't have to learn sorry to inform you but you did you were doing it right and you have a lot to learn and retrieval is the thing that you should be concentrating on okay um now Now, real quick to just fly through a couple of these concepts.

Retrieval, we talked about searching your FileMaker database. You can do an actual search, come back with found sets, grab the data, and send that on your curl request with your API call to a language model. You can be in the context of a record and just make reference to some fields that are on the record that you have established context and send your API call with that in your curl request to the language model from that record context. Or you can do like a SQL query or you can do a vector database search, which is a huge concept here. This is something we should talk about in the next episode because we're running out of time here. Let's talk about vector databases in our next episode because it is such an important part of retrieval.

Yeah, the last thing that we'll just say is that another method of retrieval is simply API calls. Just like I was talking about in my dog's heart monitor, I'm making an API call to the data, and that is being used as context. I'm retrieving that data and using it as context so it can answer my questions properly. All right. What I love about our conversations is I have three or four things to go try until we talk again. Awesome. So it's going to be really fun. apologies but then also super awesome at the same time there's nothing to i mean uh i'm really happy to be at a time when you have a great tool for learning things and there's a reason to learn new things especially at my advanced age of 30 something or amen 50 something i uh i i mostly am learning when i'm interacting with ai on a personal level right um and so and not just the on the nose stuff like teaching myself python and now i can do notebooks and all that kind of stuff and i'm way too old and irrelevant of a guy to be learning new things from a tech standpoint but just increasing my knowledge or at the very least but you're not you said you learned you learned

python that's a new thing from a tech standpoint hello no it no it totally is but like outside of having these tools at my disposal i absolutely want to have done that matt like um right a great example i'll give you is i was just talking to one of my co-workers and i go and i was like showing him this use case i was using ai for and i go yeah i don't really read much anymore and and he laughs at me and i go no actually it's true i don't really read anything anymore but i consume written materials at a level more than i've ever done in my entire like like professional and personal life like what i used to do all the time is just put a book on a list you know put it on my audible and never listen to it or read it or in my by the way i don't want my my wife to watch this because i think she's like you she reads constantly and she's always talking to me about how like reading on my ipad doesn't count as reading and but but nowadays i she reads on her ipad too just well i mean but if you're reading text that's reading and if you're listening to an audio book that's reading in my opinion okay i'm gonna play this i'll play this back for her the next time she accuses me of not reading but the important part is like 80 to 100 books a year on audible or actually i use libby now because it's free and great oh it's my dog's

name well so but i consume information at a rate that i've i i wasn't even able to do so when i was in my 20s and i had like a fresh brain that i hadn't killed half of it already so yeah that is what ai is also not true so your brain can keep learning into your yeah thank god i can tell you some books to read but i know you wouldn't read them no what i would do is i would summarize them and then have conversations with them so for example at my uh devcon or my engage presentation i took the entire transcript and my speaker notes from my session and i built the gpt and i put those in as knowledge and so what i was telling people is you could watch my go watch the video or listen to me talk or just ask questions of it, like sit and have a conversation with it.

So like, for example, for me, a paper came out that I thought was really important recently. I mean, this happens, I do this literally all the time. I didn't get a chance to read the paper. The paper was like, I'm going to show you something that's actually really trippy in a second because I want our listeners to see it. We'll finish with that. Who reads papers, by the way? I think this is actually an important thing, right? Because this is science, right? This is absolutely data science in a way that hasn't really impacted the lives of FileMaker developers much. There hasn't been books that you could read that actually made your development life that much better.

But now actually understanding the research that's happening in papers, I think is legit. And especially with simple titles like this. Yeah, so like for example, automated unit testing improvement using large language models at Meta. It's hard enough to read the title, let alone the entire paper. I'm not going to read this paper. I'll maybe read the abstract or whatever. But instead, what I did the other day, this was back in February. Oh, yeah, here it is. Oh, Valentine's. It wasn't on that day. Ancient news, last month. Yeah, it's so old school. But what I did is I fed this in to, we have a sort of proprietary AI retrieval system here. I fed it in to it, and I go, all right.

And then I popped it up on my iPad, and I turned on the voice part of it. And I said, okay, well, I'm going to make dinner, but I'm going to have a conversation with this paper. Tell me what the top line things are, da-da-da-da-da-da. And then I go, would I be able to use this in this project? Or does this mean blah-blah-blah when they talk about that? Matt, I'm having a conversation with the paper. I'm learning all about it. And next thing I know, it's like 44 minutes later, I've had this conversation with a paper. So I guess that's what I'm talking about when I say about consuming information, right? By the way, are you ready for something? I think this might be a fun way to...

Maybe. Maybe. Hopefully not terrify everybody. Okay. All right. So look at what just came out. Yep, we're going to wrap. Look at what just came out this past week. Can you see this here? Make inferences with computer vision model. Okay, so this is two minutes. We're going to let this person describe what's happening. And for those that are watching on YouTube, they can watch it. But then we're going to talk about what this means as FileMaker folks and just software engineers ourself. And then we're going to sign off and let people ruminate on this. Before we do that, though, I'm going to make one plug. You are doing something on April 10th. I'm doing something on April 10th, the Claris AI webinar hosted by Ronnie Rios.

And I think they're going to announce, I think by the time people are making their way to this podcast, they will have announced it already. So you can go to, I think, claris.com and events or something along those lines, or you'll probably all get an email, but check it out on April 10th. I look forward to people checking that out. So our last thing is, um, Devin, the AI software assistant. And what we're about to hear is the, a person narrating the experience where Devin took a job posting for a software engineer off of upwork.com and it performed the task. So let's take a listen real quick. Okay. Here at Cognition AI, we were playing around with whether or not Devin could start a side hustle on Upwork.

So here's an actual real job from Upwork where the client wants to set up this computer vision model, which actually looks quite interesting. It's a repo. Very difficult to set up. I'm not sure how I would start doing this. But, you know, you give the task to Devin and ask Devin to figure it out. So he has fed it a post from Upwork.com and he has given it a GitHub repo. It is now going and forking the repo, reading through the requirements of the project on Upwork, and now creating its own code. Let's listen in. It continues with this, loading and importing packages. You can see that actually downloads images from the internet to run through the model. But you can see here that there are actually some issues that come across.

So it's using coding models like Codex, which is available from GPT-4 or Lama code, which is the open source version to be actually do coding. Now it encounters errors. - Where Devin is adding these statements to track where the data flows. And Devin continues to do this until Devin understands how everything's working and actually then updates the code. - So what it did was it did testing, problem solving, updated its own code, and then fixed the code, now it goes on to find examples on the internet of other images it can use for testing. - It runs the image model across all these roads across the world. And we can ask for a report from Devin. At which point, Devin sends over some sample images of roads with damage marked out.

And a nice TXT file explaining Devin's work and the different kinds of outputs of the model. Okay, so AI software engineer. This really caused some people to freak out in the AI world this past week. And maybe we're inducing the same reaction within the FileMaker community, but essentially what we just saw there in about two minutes, it was a scrubbed up maybe 10 minutes, was feed an AI model a project in a software engineering project, and it completed it. And frankly, it did it better than most humans do because it actually tested it and provided a readme report showing that it actually worked. I mean, we saw a human still feed it a lot of stuff. Oh, that human fed it the description on the Upwork page.

That was all that was fed to it. Yeah. So, which makes me wonder why Upwork, you know, maybe they should just have this as part of their service. Like, if you post something, we automatically run it through AI and see if it can solve it so you don't have to put it out there. It was funny because that's a company called Cognition that came out with that tool and they're trying to get people to subscribe to it. It's not yet available for subscription. But a lot of the people on Twitter were saying, why don't you just have it do all the Upwork jobs? You'll probably make more money doing that. So the concept is AI as a programmer. Also, there was a really, really clear spec for that project.

Yes. And it wasn't like a 50-page blueprint. So, you know, just so we're clear, that was a pretty clear, very clear. and it was a github repo so it was very obvious where it can find all the information and do all that but it created it in you know 10 minutes right as opposed to even a really good programmer who's intended to be who's probably valuability and otherwise they wouldn't do it very quick anyways um so that would probably take at least hours right uh more than 10 minutes so right But the first thought is that I don't think this should worry FileMaker people as much because, and this is not to be reductive, but we don't code in FileMaker, right?

So I don't think we have to worry. We used that same joke last time, I think. Yeah, we actually did. So anyways, just a little food for thought. This is what's going on in the AI community. i think it's a zygote of things to come um but there's no question so in case people aren't aware there are models codex and llama code are just two examples of them that are finely tuned just for coding purposes mostly for like javascript web python like all that kind of stuff like not filemaker but it should be noted that like this isn't like a crypto thing that's just going to go away. Like this is the beginning of it. And that paper I was, by the way, that I was talking about was a testing mechanism that actually creates tons and tons of testing use cases for coding purposes and for going through your testing process. So all these things are becoming automated at a breakneck speed. I think we need to be aware of them just for the fact that programming might be different, meaning we will all have our own assistant and we'll be able to be that much more productive in our efforts in the future. I can definitely visualize. I mean, before we started i was working on a really hairy script i can absolutely visualize ai doing that instead of me doing it um because you say that filemaker is not coding but filemaker script

languages it's xml right you can copy and paste that yep and there's other tools to to do that where you can actually see it you could put on the clipboard and say you know redo this and make it xml that's compatible with filemaker and then you could paste it in as script steps and you have a have a script that does the thing i predict that doesn't do that yet no i predict though the speculation that we're having on this topic right now is going to seem silly and trivial in about a year yeah yeah yeah and calculations same thing right i mean it can already do pretty pretty well now but it does a lot of hallucination because we haven't i haven't fed it like the file maker user manual and to say this is what you can do this is what you can't correct um which is why um for example you know maybe we'll get that well maybe clarious or someone will feed all of these things into a a finely tuned model that that actually was previously tuned for coding and will actually be the companion that we all need so in upcoming episodes amongst other things we're going to be talking about well we actually mentioned earlier that we'll talk about vector databases and embeddings later i think as um june approaches we'll also probably talk about what we expect to see from apple and i think there's a pretty good bet that um xcode is going to have some sort of a co-pilot flavor to it as well and so that way now we're finally starting to see

these co-pilot or these coding assistants move into our apple paradigms and maybe even into a subsidiary so who knows what might be coming soon um as far as tools to make what we're doing faster but the takeaway is so in case everyone's freaking out this is just about building iron man suits that make that embellish human capabilities and give us superpowers this isn't about robots replacing humans in my in my estimation it's all about the analogy i give is this first old timers matt when email first came out okay kids earmuffs uh when email first came out the promise was you're gonna you know those four calls you make all day you know the four communications you have all day at work you're gonna be able to do those before 9 a.m and then you can go golfing no the reality of it is now you do 40 or 50 communications with all the messaging that you have it's just what's expected of one individual has just that expectation has grown as far as productivity didn't put us out of a job i think it's the exact same thing when it comes to coding that what we're able to accomplish in a single day that expectation and the reality of it is just going to increase uh somewhat exponentially it'll amplify what you can do as a human amplify love it we did it so uh number two is in the books uh in an upcoming episode we will likely be talking about uh

vectorization embeddings all sorts of cool uh techniques and semantic matching some amazing stuff along those lines and then whatever the latest and greatest stuff is and yeah for those um interested uh i'll look forward to having you join a webinar on uh april 10th on behalf of clarice and uh hopefully we'll have a bunch of other cool stuff that people can join in and check us out on as well too but we'll be having a sample download too on your website of downloadable files that you can actually get kind of kick-started on this because that's one of the other difficult things that a lot of founders are facing that's a good call i think um we will probably do a better job as time goes by of putting links to things like that in our in uh as they call them show notes on the podcast and then the descriptions on youtube right so for those that have us in your ears go check us out on youtube we put a bunch of visuals in there for those that checked us out on youtube next time you're walking the dog or making dinner put us in your ears we'd love to keep you company so um and that is another flair is talky eye in the books coming at you all right i'll talk to you soon fun as always thanks matt

Back to top ↑

Have something to share?

Join me for a conversation on ClarisTalk AI.

Schedule a recording →