How to Version and Maintain Reusable AI Prompts and Workflows
Prompts and the workflows around them should be managed as versioned software artifacts, not as text files pasted into application code. This guide explains the mechanisms —…
FROM THE AUTHOR
Explore the published guides and contributions from John C. Mullen.
226 published articlesPrompts and the workflows around them should be managed as versioned software artifacts, not as text files pasted into application code. This guide explains the mechanisms —…
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…
Local document summarization in Python splits into two practical routes: extractive scoring with TF-IDF or LexRank, which needs no language model and cannot hallucinate, and abstractive summarization…
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,…
Privacy claims cannot be verified by reading them. Verification means mapping the data flow for the exact product, plan and feature you intend to use, then checking…
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,…
RAG answers can look correct while the retriever quietly returns the wrong context. Evaluate the retrieval stage directly with recall@k, precision@k, and rank-aware metrics on a labeled…
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…
VRAM usage is not one number. Device-level tools such as nvidia-smi, per-process NVML queries, framework allocator stats, and breakdown tools like LLM Inspector each answer a different…
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…