RAVEN NEIL [01] TAWIR
LAUNCH APP

Tawir: A Conversational Agent for Pangasinan

Our thesis project: a chat assistant that answers in Pangasinan, built on a fine-tuned Llama 3.1 model, with spoken replies from a Pangasinan text-to-speech voice.

Category NLP · Thesis
Model / Runtime Fine-tuned Llama 3.1 8B · Flutter
Host tawir.ravenneil.com
Status
ONLINE
SYSTEM DIAGRAM · /apps/tawir PIPELINE STAGE [01] Your message Any language in STAGE [02] Fine-tuned Llama 3.1 Pangasinan system prompt STAGE [03] Reply and voice MMS-TTS Pangasinan CLIENT AND SERVER Flutter app · OpenAI-style chat API · Streaming agent with web search
FIGURE 1 · TAWIR PIPELINE

[01] Overview

Pangasinan (Salitan Pangasinan) is the language of the province of Pangasinan in northern Luzon. General-purpose chat models handle it poorly: they drift into Tagalog or English, borrow Tagalog roots and affixes, and make up words that sound plausible but aren't real Pangasinan.

Tawir is our thesis project on this problem. The app is a fork of an earlier open-source TAWIR client, connected to our own fine-tuned model.

Goal

A conversational agent that replies in fluent Pangasinan whatever language you write in, and can say its answers out loud.

[02] How It Works

The model is Llama 3.1 8B, fine-tuned for Pangasinan and served as a quantized GGUF build. Most of the behavior that keeps it on track comes from a detailed system prompt and conservative decoding settings.

Part What it does
System prompt Keeps every reply in Pangasinan, rules out Tagalog and Ilocano roots and affixes, and tells the model to say when it is unsure of a word instead of inventing one.
Translations Answers directly in the form Say patalos to et "…" without echoing the original words.
Conversation window Sends the system prompt with the most recent turns, and adds a short note in Pangasinan when older turns were dropped.
Agent endpoint Streams the reply as it is generated and can run a web search, with the current date and time in Lingayen added to the request.
Voice Reads replies aloud with Meta's MMS text-to-speech voice for Pangasinan, falling back to the device's own speech engine.

[03] Implementation

The client is a Flutter app, so the same code builds for the web, Android, Windows, macOS, Linux, and iOS. It talks to the server through OpenAI-style endpoints for chat and the agent, plus a separate endpoint for speech.

The beta build adds a developer panel that shows the target model, sampling settings, streaming state, and voice setting for each request.

[04] Deployment & Console

The app runs at ravenneil.com/tawir, with a beta build at /tawir/beta/. The model and the voice run on a cloud GPU server.

Service status and maintenance notices come from the Raven Neil Console.