AskPK

David Bourne david@boomer.org
Find my other Apps, eBooks and an AppleTV app at https://www.pharmpk.com/MyeBooks.html
Privacy Policy Link
v1.0 A work in progress - TestPilot access may be available by request: Email david@boomer.org
Start Pages waiting for a question The Opening page on the Mac. The prompt is entered in the first textfield (Type your question here). If this is a new topic either button, Get the Answer or New Chat can be pressed to get a response. The response; the Answer will be displayed, along with the prompt and temperature in the next field. When the topic is explored further additional responses will also be displayed in the Session History field.

NOTE: All answers are generated by an LLM and should be checked for accuracy.

The Request Source checkbox adds 'Provide Sources to Support your Answer' to your prompt and often results in formatted links to mostly good (and some bad) sources.

Provide source added to the prompt With Show Source checked the answer is similar but now there are two Sources provided with clickable links. In this case the links appear to be appropriate and could be useful for further research on the topic.

Screenshot A follow-up question(s) can be asked for more information by clicking the Get the Answer button. Notice the Session History will include the previous answers from the same session as well as the new information. The Answer or the Session History fields can be selected in part or total and Copied for pasting into a text document. On the iPhone a long press with select the textfield and bring up a option to copy the contents of either text field.

Technologies Used:
SwiftUI
Apple's built-in Foundation model is required
A web search tool is included using Tavily

For the web search tool a required Tavily API key can be obtained via the webpage. Various plans are available. Be careful to set an appropriate monthly limit and avoid auto upgrade.

Screenshot The API key and a temperature value can be set from the Settings page. Click on the gear symbol in the top right of the Start page to access the settings page. The temperature value from 0.0 to 1.0 is common to (many) LLM models and specifies how creative the model should be. When asking about specific, more technical issues a value close to 0.0 works best. For more creative questions, maybe asking for help outlining a fictional short story a value close to 1.0 should be more useful.

David Bourne (david@boomer.org)