MonkeybreadSoftware Posted October 7 Posted October 7 Did you know that macOS 26 (and iOS 26) come with a small local LLM from Apple? Since it runs local there is no cost involved and no network access. So why not tap into this resource when available to enhance your FileMaker solution? You could use the LLM for: Generate text based on key words Summarize texts Tone editing to make some text sound more professional. Translate text With the FoundationModels functions in MBS FileMaker Plugin, you can load a model and send in requests. Let us show you a sample script: Set Variable [ $session ; Value: MBS("FoundationModels.Initialize"; "General"; "PermissiveContentTransformations") ] Set Variable [ $r ; Value: MBS("FoundationModels.BeginSession"; $session; "Summarize the following text in 100 words.") ] # # now ask the model for an answer, which may take a few seconds Set Variable [ $answer ; Value: MBS("FoundationModels.Respond"; $session; Summarize::Text to Summerize) ] # # store answer Set Field [ Summarize::Summary ; $answer ] Commit Records/Requests [ With dialog: Off ] # Set Variable [ $r ; Value: MBS("FoundationModels.Release"; $session) ] This loads a model. When picking a model Apple let's you provide a use case. Either you pick the one for content tagging or the general model. Then there is the choice on whether to use guardrails for the model or the one for permissive content transformations. Then you can start a session and provide instructions. The idea is that instructions tell the LLM what to do and then provide the text to work on as prompt. You may run FoundationModels.Respond multiple times to ask questions within the session and refer to previous prompts and responses. Here is the summarize feature shown in our example database: Please try the new functions in 15.5 version and let us know. And always remember that Apple will probably improve the models over time, so this is the worst one shipping. We look forward to enhancements in upcoming macOS versions.
Recommended Posts