How to Use Local Embedding Models for Private RAG
Local embedding models let you convert and search your documents entirely on your own hardware, so the text never has to leave the machine. This guide explains…
FROM THE AUTHOR
Explore the published guides and contributions from John C. Mullen.
204 published articlesLocal embedding models let you convert and search your documents entirely on your own hardware, so the text never has to leave the machine. This guide explains…
A title gate is a short similarity check that runs against your existing titles before the model is invoked, so a duplicate costs a directory read instead…
Ollama runs in Docker with a single command, and GPU acceleration is a host-configuration problem rather than a different image. On NVIDIA hardware you install the NVIDIA…
Streaming an AI response over server-sent events means sending model output incrementally instead of waiting for the full completion. Enabling it is usually a single request flag;…
Duplicate AI calls are usually a caching problem, not a model problem. WordPress core exposes a PSR-16 cache hook through AiClient::setCache(), and you can add a versioned…
Securing an LLM-backed API means treating every model input as untrusted, keeping authentication outside the model context, and never letting instructions and external data share one channel.…
A prompt regression test suite combines a versioned JSONL prompt set, a deterministic scorer, a validated baseline, and a pass/fail gate. This guide walks through building one…
WordPress plugins that manage AI provider keys usually store them per site, so a multisite network ends up with duplicate credentials on every subsite. You can share…
Open weight is not open source, and a public download tells you nothing about whether your commercial use is permitted. This guide sets out a repeatable procedure…
Connecting a local model to WordPress automation means registering a self-hosted inference server as an AI provider so any feature built on the WordPress AI Client can…
Monitoring cost across a multi-step AI workflow requires three things: usage recorded at every model and tool step, consistent identifiers so those records roll up into traces…
Agent cost control rests on three enforcement points: a run budget over provider calls, tokens, money, and wall clock; rate limiting with disciplined retry and full-jitter backoff;…