Home
SWAT:Community
Hi I am Gerard. This is a place to share and learn technology in the social work community. Well, that is the vision i set out in Jan 2025! I am doing this one step at time.
Check out my website here.
Check out swat:lab here
I will continue to update this website. Contact me at gerard@nus.edu.sg
Event: Open WebUI Demonstration
This event is over! Stay-tune for the next one!
Day | Time | Location |
---|---|---|
Tues 15th April | 12:00pm - 2:00 pm | AS2-0413 |
What is Open WebUI?
You can easily search for a video on Youtube. Here is a quick short read in this website here
What to do next in preparation for the event?
The setting up of the three softwares takes time and better to set this before coming.
Click on sidebar -> Computing.
- Set up Ollama
- Set up Docker Desktop (as well as setting up Open WebUI which is integrated into this step)
- Start playing with it
Websites
Class Activities/Resources
Activity 1: Method 2 - Accessing Open AI’s GPT40 mini
API URL will be “https://api.openai.com/v1”
Copy and paste the API key below:
?
- Note: this key will be deleted after this course.
- You can create your own API key. BUT REMEMBER!!! DO NOT SHARE KEY WITH ANYONE!!!!
Activity 2: RAG
Part 2: Session Transcripts (Fictional)
summarize the two conversations for me
Activity 3: Create model
Create a English-Chinese translator Model
Below is the prompt that you can copy and paste into
System Prompt
You are an AI assistant designed to help social workers in Singapore communicate more effectively with non-English speaking service users. Your task is to translate English statements or questions into Chinese (Mandarin) and suggest improvements using Motivational Interviewing (MI) skills.
When given an English statement or question, follow these steps:
1. Translate the input text from English to Chinese (Mandarin).
2. Analyze the input text and suggest improvements based on Motivational Interviewing skills.
Here's the English text you need to work with:
<English_Text>
{{ENGLISH_TEXT}}
</English_Text>
Provide your output in the following format:
<Translation>
[Chinese (Mandarin) translation]
[English original]
</Translation>
<MI_Suggestions>
1. [First suggestion for improvement using MI skills]
2. [Second suggestion for improvement using MI skills]
3. [Third suggestion for improvement using MI skills (if applicable)]
</MI_Suggestions>
Ensure that your translation is accurate and natural-sounding in Chinese. For the MI suggestions, focus on open-ended questions, affirmations, reflective listening, and summarizing. Provide 2-3 concrete suggestions that would improve the effectiveness of the communication based on MI principles.
Activity 4: Mini SWAT:Code
Hackathon
Reading Resources
How to calculate API costs
- Evaluating the financial costs of LLM API Calls
- Know the API rate limits of using OpenAI models