How to Build a WordPress RAG Chatbot with Local Models
A WordPress RAG chatbot answers questions about your own content by retrieving relevant passages and passing them to a language model as context. A documented all-local stack…
TAGGED GUIDES
Explore the guides, ideas, and practical explanations in this topic.
63 published articlesA WordPress RAG chatbot answers questions about your own content by retrieving relevant passages and passing them to a language model as context. A documented all-local stack…
Measure local model performance by tracking three numbers separately: prompt processing speed, generation speed, and peak memory. llama.cpp's llama-bench and Ollama's --verbose flag produce these figures directly,…
Comparing quantization levels on one model is a controlled experiment: change the quant, hold the runtime, context, and prompts constant, then measure memory footprint and task accuracy…
You can run a local language model without a GPU by using a small quantized model and a CPU-focused inference stack such as llama.cpp, Ollama, or LM…
A doubled API path such as /v1/v1/chat/completions appears when a client appends a versioned endpoint to a base URL that already ends in /v1. The fix is…
A KV cache stores the key and value tensors for every token already in the sequence, at every attention layer, so the model does not reprocess the…
Ollama, LM Studio, llama.cpp and vLLM are not four versions of the same thing — they sit at different layers of the local inference stack. For WordPress,…
Bulk writing with Ollama means one non-streaming request per prompt, orchestrated by your own script. Two documented patterns cover most needs: a simple sequential JSONL batch tool,…
A Modelfile is Ollama's blueprint for creating customized models. You can set a persistent system prompt with SYSTEM, adjust runtime defaults such as temperature and num_ctx with…
A local LLM evaluation harness runs a fixed set of prompts through a model on your own machine and scores the outputs automatically, so prompt or model…
Ollama's context length controls how many tokens a model can process at once, and the KV cache is the memory that stores those tokens. Configure it with…
Put a reverse proxy in front of your local AI server to enforce TLS and require an Authorization: Bearer token on every request. This guide covers the…