How to Evaluate Hallucinations in Local Language Models
Evaluating hallucinations in a local model splits into two different problems: grounded checks against a source you supply, and open-world checks against reality. A small local model…
TAGGED GUIDES
Explore the guides, ideas, and practical explanations in this topic.
32 published articlesEvaluating hallucinations in a local model splits into two different problems: grounded checks against a source you supply, and open-world checks against reality. A small local model…
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…
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 a customized model: it names the base model, sets runtime parameters, and injects a system prompt. This guide walks through writing…
A personal knowledge base with local AI and Obsidian combines a folder of plain Markdown notes, a local model runtime such as Ollama, and a plugin that…
Ollama can constrain a local model's reply to a JSON schema you supply, so responses arrive as parseable data instead of prose. This guide covers the difference…
You can diagnose most local model failures using metadata instead of message content: request IDs, model and runtime versions, token counts, retries, fallbacks, error categories, and hashes…
Open WebUI with Ollama is a two-part local AI stack: Ollama runs the models and Open WebUI supplies the browser interface. The project's own quick start treats…
At 4-bit quantization, budget roughly 2 GB for a 3B model, 5 GB for a 7–8B model, 8 GB for a 13–14B model, and 40 GB for…
Guardrails for a local chatbot are the checks that inspect a request before it reaches the model and inspect the response before it reaches the user. This…
Ollama performance comes down to two settings: how many tokens the model can hold in memory (context length) and how many of its layers run on the…
Running several local models on one GPU is mostly a scheduling decision. If the models fit in VRAM together, load them together; if they do not, make…