FAQ and Glossary
12 real answers + 30 plain-language terms
Frequently asked questionsfaq
Q1 — how good with computers do I need to be to follow this manual?
A "real user" level, not a programmer level — you should be comfortable with a terminal, SSH and copying commands accurately, roughly understand what Docker is (packing programs into boxes), and not be afraid of a config file line by line. The manual walks chapter by chapter with most commands pre-selected; if you get stuck anywhere, chapter 16 has the help ladder
Q2 — how much does it cost, and when does it pay back?
Our real starter kit: Mac Mini M4 Pro 48GB ~$2,000 (≈ 66,000 baht) + a VPS at ~$10–15/month + optional extras. Against the cloud bill we used to pay (~$50/day ≈ 1,700 baht), saving ~$46.5/day means payback in ~6 weeks. If your cloud bill is lower, run the numbers on your own real totals first
Q3 — no Mac, can I use the PC I already own?
It "runs", but it is not the same — the main brain of this recipe is designed around Apple Silicon (MLX + 48GB unified memory). A single 16GB PC GPU cannot hold a 27B model; you would have to shrink the model and trade away quality. We recommend using the PC as the "image/audio kitchen" (chapter 11) instead and letting a Mac stay the brain, as in the main recipe
Q4 — if the Mac goes down, do the bots die?
No — the 3-tier ladder (chapter 1): Tier 2, a small model on the VPS, takes over immediately (slower but still answering); if things break harder, Tier 3 cloud is pulled in under a $5/day cap. Real spend on the days it happened was only $0.31–2.76
Q5 — is the Thai really good enough?
Good enough to genuinely replace the cloud we used to pay for: in a real 50-case test (graded independently by two judges) the overall score was 7.24 vs 6.02 for the former cloud, a decisive win on LINE-style Q&A at 8.93 vs 6.33, with answers ~7x faster. Full details are in chapter 12
Q6 — why do Chinese characters sometimes slip in, and can it be fixed?
It is a frank limitation of this model family — the Config G recipe (chapter 12) cuts the leakage from 43 to 15 occurrences per 100 answers, but not to zero. To reduce it further: filter the output one more layer on the bot side, or send strict mixed-language JSON cases to Tier 3. We choose to tell the truth about this in the manual
Q7 — does customer data or chat ever leave the house?
Not in normal use — everything is processed on our machines and chat data lives in Postgres on our VPS. Only two cases touch the outside world: (1) the Tier 3 cloud during emergencies, which can be disabled entirely, and (2) the web-search feature that goes out to fetch results. Configuration details are in chapters 7 and 15
Q8 — can it trade automatically for me?
No, and that is not the goal of this project — the MT5 bridge is a read-only panel; the entire source code contains not a single order-sending command (chapter 14). Every answer is educational material, not investment advice
Q9 — what is the real electricity bill per month?
The whole fleet (Mac + i9 + NAS + a share of network gear), measured from a real meter, is ~3.67 kWh/day ≈ ~18 baht/day ~ $0.54, about 530 baht/month (your utility rate may differ slightly). The detailed measurement method and the calculation script are in chapters 1 and 3
Q10 — new models keep coming out; how do you keep up?
We do not chase fashion — there is a protocol: a challenger model must pass the same Thai test set (bench_thai.py in the repo) and beat the reigning champion with a statistically non-zero margin before promotion. Software upgrades around the machine follow the 6 rules in chapter 16
Q11 — can I invite friends or customers onto the same system?
Yes — the web chat is invite-only (self sign-up closed); an admin creates accounts one by one, each user sees only the curated models, and budgets are separated per channel key (chapters 8–9). This system is designed for a single organization, not a public service
Q12 — after installing, the model returns empty answers; what now?
The classic "thinking budget" symptom — the model burns the answer ceiling (num_predict) on hidden thinking and sends back an empty reply. Fix: turn think off on the bot route + size the ceiling to the job (1024 bots / 2048 chat / 8192 long writing) and check num_ctx is at least 32768 — summarized in chapter 12, with the checking procedure in chapter 16
Glossaryglossary · 30 terms
| Term | Meaning |
|---|---|
| LLM | Large Language Model — the big language model that is the brain of the system (ours is 27B-parameter class) |
| Ollama | The program that runs LLMs locally — on the Mac we use the MLX backend, the fastest on Apple Silicon |
| MLX | Apple's AI framework for M-series chips — ~4x faster than GGUF on the same machine (30.2 vs 7.9 tok/s) |
| nvfp4 | A 4-bit model-weight format — ~18GB on disk but ~23GB resident including the KV cache |
| Docker | Technology that packs programs into containers — the whole storefront runs as 6 containers |
| LiteLLM | The central API proxy — every call in the system passes through it: key checks, budgets, routing, fallback and spend logging |
| Open WebUI | The system's web chat — the storefront users see (chapter 9) |
| Virtual key | A secondary key issued per channel — limits models and daily budget, revocable one at a time (chapter 8) |
| Token | The small unit of text the model reads and writes in (~1 Thai word ≈ 1-3 tokens) — what time and money are measured in |
| MT5 | MetaTrader 5 — the popular trading software; our bridge is a read-only panel (chapter 14) |
| EA | Expert Advisor — a plugin program on MT5; ours is a read-only indicator with no order-sending commands |
| num_ctx | The context window the model can read — ours is set to 32768; lower and long jobs get cut |
| num_predict | The answer-length ceiling — safety floor values: 1024 bots / 2048 chat / 8192 writing |
| think | The reasoning model's "hidden thinking" mode — must be off on bot routes or you risk empty answers |
| Config G | Our Thai system-prompt recipe: Thai only + no Chinese characters + 2 example pairs (chapter 12) |
| thai_ratio | Thai-purity metric = Thai characters divided by all letters in the answer (counting only Thai and Latin letters, excluding spaces and punctuation) — the higher, the more genuinely Thai |
| Tailscale | A private mesh VPN — connects all the machines over an encrypted tunnel with no open ports (chapter 4) |
| Cloudflare Tunnel | A tunnel that exposes HTTPS to the internet without opening router ports — the system's single public gate |
| VPS | A rented cloud machine — acts as the storefront of the system (chapter 6) |
| NAS | The home storage + automation machine (Synology DS725+) — the back-office manager of the system |
| n8n | A drag-and-drop automation tool — the brain of all bots and schedules (runs on the NAS) |
| Webhook | A platform (LINE/Telegram) firing data at our URL when an event happens |
| ComfyUI | Node-graph AI image generation — the image kitchen of the system (chapter 11) |
| GPULAW | Our image-rendering time window 17:30–19:30 — outside the window the GPU must stay free |
| RAG | Retrieval-Augmented Generation — pulls knowledge from our document store to support answers (chapter 9) |
| bge-m3 | The embedding model that turns text into vectors — the heart of RAG, runs free on the Mac |
| Qdrant | The vector database storing the RAG knowledge base — bound to localhost only |
| SearXNG | The web-search engine running on our own machine — instead of paying for a search API |
| Postgres | The main database — stores user accounts and the LiteLLM_SpendLogs spend tables |
| Valkey | The in-memory cache database — takes repeat work off the storefront (valkey-server, the open branch of Redis) |