The Lake Norman Brief · Carolina history, Lake Norman & North Carolina law · from Adkins Law, PLLCCall 704-274-5677
LKN LawThe Lake Norman Brief

The Lake Norman Brief · from Adkins Law

History, the lake & the law.

Carolina and World War II history, Lake Norman stories, and practical North Carolina legal guidance.

Photo: Christopher Sheridan, CC BY-SA 4.0

Build Your Own AI Carefully: Open Models, Safeguards, and Automations That Earn Their Authority

The Lake Norman Brief / The Commonplace / Essay

The Lake Norman Brief · Essay

Build Your Own AI Carefully: Open Models, Safeguards, and Automations That Earn Their Authority

In this article
  1. First separate four different projects
  2. What “free” leaves out
  3. A realistic first build
  4. Safeguards are layers, not a magic sentence
  5. What jailbreaking and prompt injection mean
  6. Build the automation around a narrow job
  7. Authority should be earned in stages
  8. Evaluate the ordinary cases and the awkward ones
  9. Calculate the value honestly
  10. Keep judgment in the system
  11. Primary technical sources

The most useful question about artificial intelligence is often smaller than the advertising. What specific job should the system do? What evidence does it need? Which actions may it take? How will we recognize a mistake before that mistake becomes expensive?

Those questions matter whether a person uses a hosted assistant, downloads an open-weight model, or builds an automation around several services. Ownership of the computer does not make an answer correct. A persuasive demonstration does not establish a dependable workflow.

First separate four different projects

Using an existing model locally, connecting it to documents, fine-tuning it, and training a foundation model from scratch are different undertakings. The first can be accessible to an individual with appropriate hardware. The last requires data, infrastructure, expertise, and resources on a very different scale.

An open-weight model makes its trained parameters available under specified terms. “Open-weight” does not automatically mean that the training data, development process, code, and license all meet every definition of open source. Nor does it mean unlimited commercial permission. Read the actual license and acceptable-use terms for the model and the software around it.

ApproachWhat changesTypical reason to choose it
Hosted modelInference runs through a providerConvenience and access to managed capabilities
Local open-weight modelInference runs on your hardwareControl over deployment and some data flows
Retrieval over documentsRelevant passages are supplied at query timeSource-grounded work with changing information
Fine-tuningModel behavior is adapted through additional trainingA demonstrated recurring behavior need
Training from scratchA new model is trained from initial parametersResearch or specialized large-scale development

What “free” leaves out

A downloadable model may have no purchase price. Running it still uses hardware, memory, electricity, storage, and maintenance. A system used professionally also needs evaluation, updates, access control, backups, and someone responsible for failures.

Memory requirements depend on architecture, parameter count, numerical precision, context length, and the software used. A rough weight-only illustration is useful: seven billion parameters at four bits each occupy about 3.5 billion bytes before additional runtime memory. That arithmetic is not a promise that a particular seven-billion-parameter model will run acceptably in 3.5 GB. Context storage and overhead can change the requirement substantially.

Quantization reduces numerical precision to lower some resource costs. It can alter performance. A model small enough to run is not necessarily strong enough for the intended task.

2023 Płyta główna ASRock A320M-DVS
2023 Płyta główna ASRock A320M-DVS · Jacek Halicki · CC BY-SA 4.0

A realistic first build

Begin with a modest local assistant that summarizes a small collection of non-sensitive documents. Choose software with maintained official documentation, obtain the model from a verified distribution, record its version and license, and keep the service on the local machine while learning how it behaves.

Before adding tools, create a test set. Include questions the documents answer, questions they do not answer, contradictory passages, missing dates, and requests that would tempt the model to invent a citation. Record the expected behavior. “Say the source does not establish this” is often the most valuable correct answer.

A retrieval system can improve access to evidence, but it does not guarantee faithful use of that evidence. The application should retain document identifiers, passages, and dates so a reviewer can inspect the actual support rather than admire a decorative citation.

Safeguards are layers, not a magic sentence

There are several different boundaries to manage: what the model may say, what data it may see, which tools it can call, what those tools may do, and who is authorized to approve consequential actions. A prompt belongs to only part of that arrangement.

NIST's AI Risk Management Framework organizes work around governance, mapping, measurement, and management. Its value is the discipline of treating reliability as an ongoing responsibility rather than a property conferred by a successful demonstration.

Application design should assume that model output can be wrong. Validate structured fields with ordinary code. Enforce permissions outside the model. Use narrow tool scopes. Keep credentials out of prompts and retrieved documents. Record consequential actions in a form that can be reviewed independently.

What jailbreaking and prompt injection mean

Jailbreaking generally describes attempts to make a model disregard intended behavioral restrictions. Prompt injection concerns instructions introduced through inputs the system processes, including untrusted documents or webpages, that attempt to redirect the application's behavior. The terms overlap in public discussion but do not describe every failure in the same way.

The important engineering lesson is that text encountered during a task is not automatically authorized to command the task. A webpage may be evidence to summarize. It should not acquire the authority to request secret data, alter an account, or redirect a payment merely because its words were included in a model's context.

Responsible testing uses systems and data one is authorized to test. It can examine whether the application resists conflicting instructions and protects boundaries without publishing a recipe for abusing someone else's service. A refusal from a hosted platform is not evidence that its restrictions may lawfully or ethically be bypassed.

Removing a model's behavioral safeguards also does not remove the user's responsibility for the resulting conduct. The freedom to run software is not an exemption from privacy, copyright, contracts, or law.

Build the automation around a narrow job

Consider a local-events workflow: collect source pages, extract dates and locations, compare duplicates, create a draft, and flag entries with missing or conflicting information. The model helps interpret the pages. Ordinary code validates dates, preserves source links, prevents duplicate publication, and limits the output destination.

The workflow should have an explicit stopping condition. If the source fails, the date conflicts, or a required field is missing, the system should create a review item rather than inventing the missing information.

StageModel contributionControl outside the model
CollectIdentify potentially relevant textApproved sources, rate limits, and recorded fetch times
ExtractPropose structured fieldsSchema validation and date checks
CompareExplain possible duplicatesStable identifiers and deterministic matching
DraftProduce readable copySource retention and prohibited-field checks
Publish or actPropose the next actionExplicit permissions and review appropriate to the consequence
MonitorSummarize anomaliesLogs, alerts, retries, and a working stop switch

Authority should be earned in stages

Start with read-only work. Move to drafts when the system is dependable enough to inspect. Permit reversible actions after testing the failure modes. Reserve consequential actions for a control structure proportionate to what can go wrong.

A system allowed to format a public calendar does not thereby need access to a law firm's client files. A tool that drafts a reply does not automatically need permission to send it. Least privilege is a practical way to reduce the size of an error.

Privacy requires examining actual data flows. A local model may run offline while a plugin, telemetry service, document connector, or external tool still sends information elsewhere. “Local” is a deployment description, not a completed privacy assessment.

Evaluate the ordinary cases and the awkward ones

Useful measures include factual accuracy, unsupported-claim rate, valid-citation rate, duplicate rate, processing cost, review time, and the frequency with which the system correctly stops. A single aggregate score can conceal a failure that matters more than the average.

Keep a small regression set and rerun it after changing the model, prompt, retrieval method, or tool permissions. Updates can improve one behavior while damaging another. Version records make the difference discoverable.

Human review also needs design. A reviewer who receives a polished paragraph without the source, uncertainty, or change history may simply approve the model's confidence. Show the evidence next to the decision.

Calculate the value honestly

Suppose an automation saves 20 minutes on a task performed ten times per month. That is 200 minutes, or roughly 3.3 hours. At an illustrative $40 per hour, the gross time value is about $133 per month. If subscriptions, maintenance, and review cost $150, the system has not yet justified itself through time savings alone.

The calculation is deliberately simple. Quality improvements, faster service, reduced omissions, and the pleasure of learning may add value. Failed runs and supervision subtract it. A good business case counts both sides.

Keep judgment in the system

The ambition should be a dependable assistant within a well-designed process. An AI can make useful work faster and make bad assumptions harder to notice. The difference depends on the questions, evidence, permissions, and tests that surround it.

Build something small enough to understand. Measure what it does. Give it only the authority it needs. Expand when the evidence supports expansion. That is less theatrical than announcing an autonomous digital employee, and considerably more likely to produce something worth keeping.

Primary technical sources

The Commonplace · Literature & Movies · Original Fiction · World War I · The Civil War · The Revolution

About the Author

Christopher Adkins is an attorney, mediator, and U.S. Army veteran in Huntersville, North Carolina. He founded Adkins Law and writes The Commonplace, a collection of essays on history, books, public service, and the things people learn by paying attention.