Tutorials
How to Build a Local AI Writing Assistant That Respects Your Voice
Train a local model on your past writing, tune prompts, and build a writing assistant that sounds like you, not a generic bot.

How to Build a Local AI Writing Assistant That Respects Your Voice
Most AI writing tools produce generic output because they are trained on millions of writers and optimised to offend nobody. A local writing assistant can do better. By feeding it examples of your own writing and tuning prompts around your natural style, you get drafts that need less editing and sound more like you.
Step 1: Collect your voice samples
Gather ten to twenty pieces of writing that represent your natural voice. Blog posts, emails, client proposals, social updates, and personal notes all work. The goal is variety within a consistent style. Remove anything confidential before using it as material.
Arrange the samples in a folder that your assistant can reference. For organised document management, see How to Index Local Documents Safely on a Private Server.
Step 2: Choose the right model
Small models are faster and cheaper to run, but they may struggle to internalise a distinct voice. An 8B or 12B model at a moderate quantisation level usually strikes the best balance for writing tasks. Try the same prompt on two or three models to see which one best captures your tone.
For model selection help, read How to Choose the Right Local Model Size.
Step 3: Write a style prompt
A style prompt teaches the model about your writing preferences. Include:
- Typical sentence length and complexity
- Preferred vocabulary and words to avoid
- How you handle structure, headings, and lists
- Whether you prefer formal, conversational, or somewhere in between
This prompt should be saved and reused every time you use the assistant. Treat it like a configuration file, not a disposable instruction.
Step 4: Use few-shot examples in context
When the model needs to match a specific piece of your writing, include one or two relevant samples directly in the prompt. Format them as "Here is an example of my writing on this topic: [sample]. Now write a new piece in the same style about [topic]."
This few-shot approach is more reliable than hoping the model remembers your voice from earlier in the conversation.
Step 5: Review and refine
Run the assistant on a few test topics and compare the output with your own writing. Look for over-polished phrases, unnatural transitions, and words you would never use. Adjust the style prompt and few-shot examples until the output feels familiar.
For prompt refinement techniques, revisit Prompt Tuning for Local LLMs Without Overcomplicating Things.
Keeping the assistant private
Because the assistant uses your actual writing as reference material, keeping everything local is essential. Use Ollama or llama.cpp for the model backend and avoid any cloud-connected front end for writing-sensitive tasks.
Conclusion
A local writing assistant that knows your voice is one of the most practical applications of self-hosted AI. The setup takes an afternoon, and the result is a tool that produces first drafts you actually want to edit rather than rewrite entirely.
FAQ
Do I need fine-tuning for a voice model?
Not always. Good prompt engineering and few-shot examples are often sufficient.
Will a small model capture my voice well enough?
It depends on how distinctive your voice is. Try it with an 8B model first and only invest in a larger model if the output does not match.
Can I use the same assistant for different writing styles?
Yes, but maintain separate style prompts for each context — client proposals read differently from newsletter posts.


