How Generative AI Works — A Caseworker's Guide
A caseworker at a child protective services (CPS) unit finished a home visit on a Thursday afternoon, transcribed her notes, and handed them to an AI drafting tool to produce the official case note. The draft came back in three minutes: clean, professional, formatted for her agency's case-management system. She read it once, approved it, and uploaded it. It became part of the family's legal record. Two weeks later, during a court hearing on whether the children should be reunified with their mother, the opposing attorney pointed to a line in that case note: "Worker observed multiple empty alcohol containers in the kitchen." The caseworker had not observed any. She had not mentioned any. The AI, working from patterns of home-visit notes in its training data, had generated the kind of detail that is statistically common in case notes of this type, for this kind of family, in this kind of proceeding. The detail was plausible. It was fluent. And it was entirely invented. That fabricated sentence had been sitting in a court record for two weeks, shaping how everyone in the courtroom understood that family.
What a Generative AI Model Actually Is
To understand why that sentence appeared in the case note, you need to understand what a generative AI model actually does at a mechanical level. And the answer, once you see it, changes how you think about every AI tool you will ever use for documentation.
A generative AI model, specifically a large language model (LLM, a type of AI that reads and produces text), is a statistical system trained to predict what text should come next given the text that came before it. That sentence is worth reading again, slowly, because it contains the entire lesson. The model does not know what happened in your client's home. It does not know what the mother said during intake. It does not know whether the children were in school or at a relative's house. What it knows is language patterns: the statistical relationships between words, sentences, paragraphs, and document types that it learned from an enormous amount of text during training.
When you hand an AI tool a description of your visit and ask it to write a case note, the model is not retrieving facts from a database. A database lookup finds a record that exists. This is different: the model is generating text that is statistically consistent with what case notes of this type look like, what observations in this kind of situation tend to sound like, what details typically appear in notes about families in reunification proceedings. When the details it generates happen to match the facts of your visit, the note is accurate. When they do not match, the note sounds exactly the same. The model produces both with identical fluency and confidence. It has no internal flag, no warning color, no hesitation that marks one kind of output from the other.
This is not a bug. This is not a flaw that will be patched in the next version. This is the fundamental architecture of the technology. Understanding it is not optional if you work in a field where documents become legal records. A mistake in a lending credit memo costs money. A mistake in a child-welfare case note can separate a family.
The Token: The Smallest Unit
To understand how the model generates text, it helps to understand the basic unit it works with: the token. A token is roughly a word or a word fragment. In practice, most common English words are a single token, and longer or more technical words may be split into two or three tokens. The sentence "the child appeared well-nourished" might be six or seven tokens. The model processes your prompt as a sequence of tokens and generates a response one token at a time.
Each new token is chosen based on a probability calculation: given everything that came before (the prompt, plus all the tokens already generated in the response), which token is statistically most likely to come next? The model has an internal component called an attention mechanism that decides which earlier parts of the text are most relevant to predicting the next token, allowing it to maintain coherence across a long document. The attention mechanism is why the model can write a paragraph-length observation about a home visit that reads as coherent prose rather than a string of unrelated words.
Here is the critical point: the word "appeared" in "the child appeared well-nourished" is chosen because, in documents that match the pattern of what you gave the model (a CPS home-visit note, a family reunification context, a description of children), the word "appeared" followed by a developmental observation is statistically common. The model chose it because it fits the pattern of case notes. Not because your client's child appeared well-nourished or malnourished or anything else. It chose it because that is the kind of sentence that appears in notes of this type.
Now apply that same logic to "multiple empty alcohol containers in the kitchen." That phrase appears in many home-visit notes of a certain type. It is statistically associated with concerns about parental substance use. It is the kind of observation that appears in CPS documentation for families in certain risk categories. In a long sequence of token predictions, a model that was not grounded on what was actually observed will generate that sentence because it is the statistically expected continuation. Not because it was there. Because it fit.
How Training Shapes What the Model Generates
To understand why this happens, you need a working understanding of what happens during training. A large language model is trained by exposing it to vast amounts of text: books, articles, websites, professional documents, case studies, and in some specialized models, professional records. During training, the model processes billions of examples of text and adjusts its internal parameters (billions of numerical values, the model's "knowledge" in a sense) to improve its accuracy at predicting the next token. By the end of training, the model has developed a dense map of statistical relationships: which words follow which other words in which contexts, what kinds of sentences appear in what kinds of documents, what kinds of details are typical in what kinds of records.
This is an extraordinary capability. It is the reason a trained model can read a prompt and produce prose that sounds like a skilled human writer. It is the reason the model can understand context, maintain a professional tone, follow a document structure, and produce output that, at first reading, seems to be the work of someone who genuinely knows the field. The sophistication is real.
But training also creates a specific set of failure modes that matter deeply for casework documentation. The most important is this: the model learned from past text. If its training data included thousands of CPS home-visit notes from cases involving substance-use concerns, the model has a statistical model of what those notes tend to say. When you ask it to write a note in a similar context, it will write a note that sounds like those notes. Even if your specific visit looked nothing like them. The model cannot distinguish between "this is the kind of document where observations about alcohol use commonly appear" and "this specific visit included an observation about alcohol use." Both lead to the same output.
The Cutoff Problem
Training has a second important implication: the model's knowledge has a cutoff date. Every model is trained on text that existed up to a specific point in time. After that cutoff, the model knows nothing new unless the new information is provided to it directly in the prompt.
For casework, this matters in several practical ways. If your state's CCWIS (Comprehensive Child Welfare Information System, the integrated data and case-management system required by federal regulation) was updated with new intake fields after the model's training cutoff, the model will not know about those fields unless you describe them. If your agency adopted a new safety-assessment framework last year, the model will draft assessments using patterns from earlier frameworks unless you supply the current framework in the prompt. If federal policy governing SNAP (Supplemental Nutrition Assistance Program) eligibility changed in a recent farm bill, the model may apply out-of-date eligibility rules when helping you draft a denial explanation unless you ground it on the current policy text.
The model does not know what it does not know. If asked about a policy it has not seen, it will often produce a confident description of what that policy "would likely say" based on similar policies it did see. This is the same statistical prediction behavior described above, applied to policy knowledge. It produces a plausible-sounding answer. That answer may be wrong in exactly the ways that matter: the income thresholds, the exception categories, the procedural requirements.
The Model Is Not Lying
One point worth making explicitly, because it affects how you think about your own verification responsibility: the model is not lying. It is not choosing to deceive you. It does not have a fact that it is concealing. It has no concept of truth or falsehood. It is generating the statistically most likely continuation of your prompt, and the output it produces is the output that best matches the patterns in its training data for a document of this type. When that output happens to match reality, the note is accurate. When it does not, the model has no way to know, and will not tell you.
This matters because the usual human response to a written document that is wrong is "someone wrote this wrong." In human-generated documentation, an invented observation is a falsification, an ethical breach, a professional failure. In AI-generated documentation, an invented observation is the normal functioning of the system. The stakes are the same: a fabricated detail in a court record can harm a real family. But the mechanism is different, and the prevention strategy is different. You cannot appeal to the model's conscience. You can only verify the output against what actually happened.
Fine-Tuning, Instruction Following, and RAG
Most AI tools you encounter in a human-services context have been fine-tuned beyond the base model. Fine-tuning is a second round of training that takes a pre-trained LLM and trains it further on examples of helpful, appropriate responses to specific kinds of requests. The process is sometimes called RLHF (reinforcement learning from human feedback), in which human reviewers score model outputs and the model is adjusted to produce outputs that score better. The result is a model that follows instructions more reliably, maintains a professional tone, produces structurally appropriate documents, and is less likely to produce responses that are clearly off-topic or harmful.
Fine-tuning improves the user experience substantially. A fine-tuned model is better at understanding what you are asking for, better at formatting its output for the document type, and better at avoiding obviously wrong responses. But fine-tuning does not change the fundamental architecture. The model is still predicting tokens. It is still doing so without a truth-checking mechanism. Fine-tuning makes the model a more reliable generator. It does not make the model an accurate one in the sense that a database query is accurate. A well-fine-tuned model that is not grounded on the actual visit details will still generate plausible-sounding observations that were never made.
Retrieval-Augmented Generation: The Grounding Fix
The most important architectural improvement for documentation work in human services is called RAG, or retrieval-augmented generation. In a RAG system, before generating output, the AI tool automatically retrieves relevant documents from a connected data source (the case record, the family's history, the relevant policy document, the intake form) and includes that retrieved text in the prompt. The model then generates its response based on what the retrieved documents actually say, rather than from its general statistical memory.
RAG substantially reduces the hallucination problem for the retrieved domain. A model that has the actual home-visit notes from your voice memo, the intake assessment, and the case history in front of it when drafting the case note is far less likely to invent observations than a model working from a general description of the visit. Instead of generating "what goes in a case note for this kind of family," it is extracting and organizing "what is in these specific documents about this specific family." The difference is significant.
RAG is not a complete solution. A model with retrieved documents can still misread them, emphasize the wrong details, generate inferences that go beyond what the documents say, or produce text that blends accurate retrieved content with fabricated additions. Human verification is still required. But if you are evaluating an AI documentation tool for your agency, whether it uses RAG, which documents it retrieves, and how it keeps retrieved content separated from generated content are among the most important technical questions to ask. A tool that drafts from a transcribed voice memo (grounded generation) is fundamentally safer than one that drafts from a brief text description of the visit (ungrounded generation).
Why the Same Model That Helps Can Also Harm
Here is the paradox that makes this field-specific lesson necessary: the same capability that makes a generative AI model useful for documentation is the same capability that makes it dangerous when not properly supervised. The model is good at producing fluent, contextually appropriate, professionally formatted text. That is exactly what makes an AI-drafted case note look trustworthy. And it is exactly what makes an AI-invented observation hard to catch on a quick read.
Think about what a caseworker is doing when she reads a well-formatted case note. She is scanning for structure, completeness, and tone. The note says "Worker observed the following." The observations that follow sound like observations a caseworker makes. They are in the right format. They use the right language. There is nothing syntactically wrong. The only way to catch an invented observation is to compare each sentence against an independent record of what actually happened: your own notes, your memory, the audio if you recorded the visit. That comparison is the verification step, and it must be deliberate, because the fluency of the output actively works against it.
This is not a hypothetical risk. As AI transcription and summarization tools (sometimes called Magic Notes in the field, a pattern now among the most widely adopted AI tools in human services) become more common, the surface area for this specific failure mode increases. A caseworker using AI to draft five notes a day, reading them quickly before upload, is unlikely to catch every invented detail without a systematic verification practice. The tool returns hours. The verification practice is what keeps those hours from coming at a cost to families.
The Legal-Record Dimension
The reason this matters more in human services than in almost any other field is that a case note is not an internal working document. From the moment it is uploaded, it is part of a legal record. Courts rely on case notes. Attorneys review them. Child welfare hearings turn on the documented history. A wrong observation in a case note is not a memo that can be corrected. It is an entry in a legal record that becomes the baseline for every future proceeding involving that family.
Consider the full chain: a caseworker delegates note drafting to an AI, reads the draft once quickly, uploads it, and returns to the next visit on a 25-case caseload. Two weeks later, in a court proceeding, an attorney cites the invented observation. The caseworker, who does not clearly remember the specific details of that visit two weeks ago, cannot definitively contradict the note. The note wins, because it is the record. The family's reunification timeline changes.
Now consider the same scenario with a different outcome: the caseworker reads the draft, compares each observation against her field notes, and flags the fabricated sentence before uploading. The note is accurate. The family's reunification is not delayed by an invented detail. The documentation burden is still reduced by the AI, which handled the structure and most of the prose. The caseworker's time was spent on verification, not typing. That is the workflow that captures the benefit while eliminating the risk.
Due process, the legal requirement that decisions affecting people's rights be fair, transparent, and challengeable, governs every consequential human-services decision. A removal, a substantiation, a benefits denial: each must be supported by documented, accurate facts. When AI introduces invented facts into those records, it corrupts the due-process chain from its foundation. The caseworker, the supervisor, the court, and the family all deserve a record that reflects what actually happened.
The Equity Dimension of Statistical Generation
There is a second reason to think carefully about statistical generation in a human-services context, and it runs deeper than individual note accuracy. The statistical patterns an LLM learned from depend on the training data. If the training data was drawn from case records that reflect historical inequities in child-welfare practice, including documented racial disparities in investigation, removal, and substantiation rates, then the model's statistical "expectations" about what goes in a case note for a given family type may be shaped by those inequities.
A model that learned from case records in which Black families were disproportionately documented with safety concerns, not because of higher actual risk but because of systemic over-surveillance, will develop statistical patterns that reflect those disparities. When it generates a case note for a Black family, it may be statistically more likely to produce the kinds of language and observations that appeared in those historical records. This is not a hypothetical: it is the same mechanism by which predictive risk-screening tools trained on biased data produce biased outputs, applied to language generation rather than to numeric scores.
The verification step is therefore also an equity check. When you review an AI-drafted note, you are not only checking whether the observations match what you saw. You are checking whether the tone, the framing, and the specific language used are an accurate reflection of this family, or whether they are a statistical echo of how families like this family have been documented historically. That is a more demanding check. It is also a more important one.
What This Means for How You Work with AI Tools
Everything above leads to a set of practical habits that follow directly from the architecture. These are not optional refinements. They are the minimum discipline for using AI in a field where documentation is a legal record and mistakes harm real families.
Ground the model on what actually happened. Any prompt that asks an AI to draft or summarize a case note, a court report, an intake summary, or an assessment should include the actual source material: your field notes, the transcription of the visit, the client's own words from the intake, the previous case history. A model given the actual material will generate from that material. A model given only a brief description of the type of visit ("home visit for a family with substance-use history") will generate from statistical patterns about visits of that type. The difference between those two outputs is the difference between extraction and invention.
This is what the field-specific AI transcription tools (the Magic Notes pattern) do well: they capture the actual words of a visit, give those words to the model as grounding, and ask the model to organize them into a structured note. The model is still generating, but it is generating from a real record of real words. The failure mode shrinks substantially.
Treat every observation as unverified until checked. Every specific observation in an AI-drafted case note, every named detail, every behavioral descriptor, every factual claim about conditions in the home, should be treated as a claim to verify, not a fact to accept. This is not because the model is usually wrong. In a well-grounded system, most of the note will be accurate. It is because the cases where it is wrong are the ones that cannot be detected by reading fluently. The verification requires comparing each claim against an independent source: your field notes, your memory, a recording, or a colleague who was present. That comparison is the discipline that keeps an AI-drafted note from becoming a legal liability.
Apply extra scrutiny to high-stakes details. The details that matter most in a court context are the details the model is most likely to get wrong for the specific reasons described above. Observations about safety concerns (substance use, domestic violence, neglect indicators, environmental hazards) are exactly the kinds of details that appear commonly in case notes of similar risk categories. They are statistically expected. They are precisely what the model will generate when it fills in the space that a real observation should occupy. These details deserve the most careful verification, not a quick read.
Keep the decision yours, always. Nothing in the preceding description of how these models work changes the cardinal rule in this field: AI informs, humans decide. An AI tool that drafts a case note is not making an observation. It is generating text. You are making the observation, you witnessed the visit, and you are certifying the record. If an AI-generated note contains an observation you cannot verify, that observation must be removed or corrected before the note is submitted. "The AI put it there" is not a notation that belongs in a legal record. Your professional judgment, applied to what you actually witnessed, is the only foundation a case note has.
Understand the limits of the tool you are using. When your agency deploys an AI documentation tool, ask the vendor or your supervisor whether the tool uses RAG (grounding on the case record), what documents it draws on, and how it handles the boundary between retrieved content and generated content. A tool that is grounded on a transcription of the actual visit is operating in a fundamentally different risk profile than one that drafts from a brief description. You do not need to become a machine learning engineer to ask this question. You need to understand enough about the architecture to know which questions matter.
A Worked Example: The Same Visit, Two Ways
To make this concrete, consider a simple example. A caseworker completes a home visit for a family in a reunification case. She visits the mother and the two children, ages 6 and 9. The apartment is clean. The refrigerator is stocked. The children are visibly well. The mother is engaged, asks appropriate questions about the reunification timeline, and shows the worker recent report cards from both children. The visit lasts 45 minutes. There are no safety concerns.
Scenario One: Ungrounded Generation
The caseworker returns to the office and types a brief prompt into an AI drafting tool: "Write a case note for a home visit with a family in reunification. The visit was with the mother and two children, ages 6 and 9. The purpose was to assess conditions in the home." She does not include her field notes. She does not include a transcription of the visit. She approves the draft without detailed comparison to her memory of the visit.
The model generates a case note. The structural elements are correct. The opening line, the date, the purpose, the parties present, the closing: all are appropriate. The body of the note includes observations about the home conditions, the children's presentation, and the parent's engagement. Because the case is in a reunification context and the model has learned from many notes of this type, some of the body text includes language about protective factors being observed and appropriate parental supervision being noted. It also includes a sentence: "Worker observed no safety concerns noted during the visit, though ongoing monitoring is recommended given documented history."
The sentence about "documented history" is not based on anything the caseworker said. The model generated it because in notes of this type, references to documented history and ongoing monitoring are common. They are statistically expected. If the caseworker had a different family whose actual history was more complicated, and this sentence was applied to that family's note, it could imply concerns that do not exist or emphasize a history in a way that prejudices a court reader. Even in the best case, it reflects the statistical average of families in this category, not this specific family.
Scenario Two: Grounded Generation
The caseworker uses a transcription-based tool during the visit, or records a voice memo immediately after and uploads it to the tool. Her memo says: "Home visit Thursday 2:30 p.m. Apartment was clean, no visible hazards. Refrigerator stocked, saw fruit, vegetables, some leftovers. Kids looked good, healthy weight, engaged with me during the visit. The 9-year-old showed me a math test she got an 87 on. Mom showed me both their most recent report cards. Mom asked three or four specific questions about the timeline for the next court date and what she needs to have ready. She was calm, organized. Nothing concerned me. Visit lasted about 45 minutes. No safety concerns."
The model, grounded on that memo, drafts a note that reflects what the memo says. The observations in the draft are traceable to the actual content of the memo. The caseworker reviews the note and verifies that each observation matches her memory of the visit and the contents of the memo. She corrects one small formatting issue. She submits the note. The record reflects what actually happened.
The difference between these two scenarios is not the quality of the AI. It is the grounding discipline. The first scenario asks the model to invent a specific document from a general description. The second scenario asks the model to organize a specific record into a structured format. Both use the same technology. One creates legal risk. The other reduces the documentation burden while preserving accuracy.
The Verification Practice in Casework
The architectural understanding from this lesson leads directly to a verification practice. This is not a theoretical exercise. It is the professional habit that the architecture demands.
When you review an AI-drafted case note, safety assessment, court report, or intake summary, you are performing a different task than reading a document to understand it. You are performing a claim-by-claim check: does this specific observation match what I actually observed? Does this summary accurately reflect what the client actually said? Does this policy citation match the current policy text? Does this risk factor statement reflect what the assessment actually found?
That check requires an independent source. Reading the AI draft and asking "does this sound right?" is not the check. Fluent, professional text sounds right whether it is accurate or invented. The check requires your field notes, a recording, the original intake transcript, the case history, or your own detailed recall of a recent visit. The more specific the claim, the more important the independent source becomes.
For high-stakes documents, specifically court reports, safety assessments, and formal risk determinations, the verification step is the due-process safeguard. These documents can determine whether a child stays home, whether a parent's rights are terminated, whether a family receives services or is closed. Every factual claim in them must be traceable to a documented source. That traceability is not just professional good practice: it is the legal and ethical foundation of the decision the document supports.
Caseworkers who develop this verification habit early find that it takes less time than they expected, especially for well-grounded AI tools where most of the output is accurate. The check is most demanding when the tool is ungrounded and the caseworker has only a general memory of the visit to compare against. It is fastest when the caseworker has good field notes and can compare each claim directly to the written record of the visit. Building field-note habits supports AI verification habits: they are the same underlying discipline, applied at different points in the documentation workflow.
The field's hardest-won lesson, stated simply: the job has shifted. In the pre-AI workflow, the caseworker's documentation burden was producing the record. In the AI-assisted workflow, the AI produces a draft and the caseworker's job is to verify the draft. That is a real shift, and it is a better one. It is more accurate to say that the caseworker is now applying professional judgment to certify a record than that she is typing for two hours after a full day of visits. The shift is humane and efficient. It is only safe if the verification step is taken seriously.
Key Takeaways
- A large language model (LLM) is a statistical system that generates text by predicting the most likely next token given everything that came before it in the prompt and its own output. It does not look up facts, query a database, or verify claims. It produces accurate output and invented output with identical fluency and confidence.
- Hallucination (the generation of plausible but false text) is not a bug that will be fixed in a future version. It is a structural property of the architecture: the model generates what is statistically expected for a document of this type, and "statistically expected" and "factually present in this specific visit" are different things.
- The model's training has a cutoff date. It does not know about policy changes, new safety-assessment frameworks, updated CCWIS fields, or recent regulatory guidance after that cutoff unless the updated material is provided in the prompt.
- Case notes in human services are legal records from the moment they are submitted. An invented observation in a case note can mislead a court, affect a removal decision, delay reunification, or shape a family's documented history for years. The stakes of the legal-record dimension are among the highest of any documentation context.
- RAG (retrieval-augmented generation) substantially reduces hallucination by grounding the model on actual retrieved documents (a voice-memo transcription, the case history, the policy text) before generating. A grounded model is much less likely to invent observations than an ungrounded one. This is the most important architectural question to ask when evaluating any AI documentation tool.
- The verification step is the caseworker's professional and legal obligation, not an optional quality check. Every specific observation, every safety-concern statement, every behavioral descriptor in an AI-drafted document must be compared to an independent source before submission. "The AI put it there" is not a sufficient basis for a legal record.
- Statistical generation can carry equity risks: if the model's training data reflects historical disparities in how families have been documented, those patterns may shape what the model generates for families in similar demographic categories. The verification step is also an equity check on whether the language and framing reflect this family accurately.
- The shift from "produce the draft" to "verify the draft" is the defining change in professional practice. It is a more efficient and more accurate workflow when done properly, because the caseworker's professional judgment is applied where it matters most: certifying that the record reflects what actually happened, not typing prose for hours after a full day of visits.
Skill.re