What is an LLM? How AI chatbots work, for lab people: a best guesser, not a calculator

Prisma LIMS blog. What is an LLM? How AI chatbots work, for lab people: a best guesser, not a calculator

In short

An LLM (large language model) is the engine inside chatbots such as ChatGPT and Claude. It learned patterns from a huge amount of text. It writes by predicting what is likely to come next. So it can sound sure and still be wrong, and on its own it is not a calculator. Let it draft words from documents your lab has approved for it, and don’t let it produce a reported number.

Example (made up for this post): a QA (quality assurance) manager at a wastewater lab in the United States is writing to a client. QA is how a lab plans, checks and improves its work so it meets quality standards (EPA).

The email is about a wastewater sample the lab was asked to test for nitrate. The QA manager asks a chatbot for the nitrate hold time in Table II of 40 CFR 136.3. That is a federal Clean Water Act rule in force. The answer comes back right away, with a number and a rule citation. It sounds sure.

The number is wrong. It is the limit in the next row of the table, the row for nitrate-nitrite. That row has its own preservation rules and its own time limit (Clean Water Act rule). In this example, the QA manager checks the table and catches it.

Why a sure answer can still be wrong

A hold time is a time limit for a sample, or for what the lab prepares from it. One test can have several, each tied to a step such as preparing the sample or analyzing it (Clean Water Act rule). Which limits apply, and when each clock starts, depend on the rules for your sample and program.

For common limits, see the guide to sample holding times on this site. For your own sample, first confirm which program and rules apply. If Table II applies, check its row and footnotes for your test.

In a lab, a wrong number does not stay in the chat. It can end up in a client email or on a report, with your name on it. In this example, the chatbot gave no warning. Its wrong answer sounded as sure as a right one.

Knowing how a chatbot works tells you where to use it. Use it to draft words from documents your lab has approved for it. Check any number or rule it gives you against the source before you use it.

How ChatGPT and other chatbots work: a very good guesser

ChatGPT and Claude are chatbots. Each one runs on an LLM. Anthropic says LLMs are “trained on vast amounts of text data and can generate human-like text, answer questions, summarize information, and more” (Anthropic).

Pretraining is an early stage of training. In it, models behind ChatGPT and Claude learn to predict the next piece of text (OpenAI, Anthropic).

When you ask a question, the model uses the text so far to predict what could come next (OpenAI Help Center). It works with small pieces of text called tokens. A token can be a word, part of a word or a punctuation mark (OpenAI Help Center).

Think of an LLM as a very good guesser. It writes what is likely to fit what you typed. That is what makes it useful. It is also why it can be wrong.

Give the chatbot your lab’s approved version

A chatbot learned from a huge amount of text. That does not tell you whether it has seen your lab’s documents, or which version.

Take an SOP (standard operating procedure): a written document that sets out how a routine task is done (EPA). Before you ask a chatbot about an SOP, check which version your lab has approved for the work. Give the chatbot that one through an approved tool. Check its answer against that version before you use it. If it shows a passage, check that the passage comes from that version and supports the answer.

The same care applies to client documents. Share a client contract only if your lab’s approval covers it and the contract allows it.

Picture a new analyst from another lab. They know chemistry, but they need your lab’s approved SOP to see how your lab does the work. Give the chatbot that same approved source. Then a qualified person checks the draft against it before anyone uses or sends it.

Why AI chatbots make things up (hallucinations)

When a chatbot lacks the facts, it can still write an answer that sounds right. OpenAI calls these hallucinations: “plausible but false statements generated by language models” (OpenAI). Its researchers argue that standard training and testing “reward guessing over acknowledging uncertainty” (OpenAI). In plain words, when a test gives points only for right answers, a guess might earn a point. Saying “I don’t know” earns none.

Without the source document, a chatbot has less to go on. Ask about “the nitrate hold time” without giving it the table from the rule, and it may write an answer that only sounds likely.

The source document can help, but no model is right every time. In September 2025, OpenAI said its GPT-5 model still made these errors: “they still occur” (OpenAI). That is why a qualified person checks every fact and every number.

Why a chatbot may be too quick to agree with you

In April 2025, OpenAI said it used “thumbs-up / thumbs-down feedback” on ChatGPT replies when it taught its models (OpenAI). That month, it took back an update to its GPT-4o model. It said the update was “overly flattering or agreeable” and that OpenAI had “focused too much on short-term feedback” (OpenAI).

So don’t put the answer in your question. Ask what the attached table says for nitrate. Don’t ask it to confirm the number you expect. If it agrees too fast, push back once. Ask what in your document supports the answer.

A chatbot on its own is not a calculator

A number in a chatbot reply can look exact and still be wrong.

Some chat tools can write and run a short program to do the math. OpenAI says that for some data tasks, ChatGPT “writes and runs Python code” (OpenAI Help Center). Anthropic’s developer docs say its code execution tool lets Claude “perform complex calculations” (Anthropic). That helps, but check the calculation and the number shown in the reply. It still does not make the number a reported result.

Don’t let AI produce a reported number. For reported results, use the lab’s approved calculations.

If AI drafts a formula, the lab tests and approves it under its procedures before it is used for reported results.

In its 2002 guidance (QA/G-8), EPA recommends checking new calculations when they are added to a LIMS (laboratory information management system). It says the lab’s SOPs should set how and when to check them (EPA).

A LIMS is a central place for much of a lab’s information about sample analyses (EPA). To see what a LIMS keeps, read what a LIMS is.

Why long chats can miss details

A chatbot has a limit on how much text it can handle at once. Anthropic calls this the context window: “all the text a language model can reference when generating a response, including the response itself” (Anthropic). It also says that as the amount of text grows, “accuracy and recall degrade” (Anthropic). So in a long chat, the model can miss earlier details.

Picture checking a long stack of bench sheets in a hurry. A note on the first page is easy to miss.

Anthropic has a help page for paid Claude plans. On those plans, with code execution on, Claude “summarizes earlier messages to make room for new content” near the limit. It says the full chat history is kept so Claude can still refer to it (Claude Help Center).

One problem, one chat. When the task changes, start a new chat and bring over the approved details it needs.

Thinking models and answers from your documents

Some models are built to work through a request before they answer. In September 2024, OpenAI said a new series of its models was built “to spend more time thinking before they respond” (OpenAI). No model makes the answer right every time. You may try one in an approved tool on a long approved document such as an SOP. Check its answer against the document the same way.

Some tools search documents you give them and use the passages they find to write a reply. That approach is called retrieval augmented generation, or RAG. Anthropic says it helps “ground the model’s response in evidence” (Anthropic). Ask the tool to show the passage it used. Then check that each quote is exact and that it supports the answer to what you asked. It can still misread a passage.

How to use a chatbot in the lab

  1. Before real documents go in, your lab approves the tool, the account, its data settings and the records it may see. Until then, use made-up examples.
  2. Give it the approved document. Ask it to quote the passage behind every statement, or to write NOT IN SOURCE. Then check that each quote is exact and that it supports the answer to what you asked.
  3. Ask it to list what evidence is missing, instead of asking how sure it is. A list of gaps tells you what to check.
  4. Ask neutral questions. If it agrees too fast, ask what in your document supports the answer.
  5. Keep one problem in one chat. Start a new chat when the task changes, and bring over the approved details the new task needs.
  6. Have a qualified person check every fact and every number. Don’t let AI produce a reported number.
Where a chatbot can help, and where to keep it away
Let it draft, with an approved tool and documents (a person checks)Keep it away from
Words for a document, in your templateAny result you report. An AI-drafted formula is not used for reported results until the lab tests and approves it.
A summary of a long rule or method, with the page for each pointA rule or limit quoted from memory
A plain-words explanation of a method, checked against the methodDeciding whether a group of samples and its quality checks meet the rules for that test
A clearer version of an email you wrote, if the client’s contract allows itAnything signed, released or sent before a qualified person checks it against the lab’s approved records

What the QA manager’s check shows

In this example, the QA manager caught the chatbot’s wrong answer by checking the table in the rule. A sure answer from a chatbot is a starting point, not a source. Check any hold time it gives you against the rule and the sample record, under your SOP. See the guide to sample holding times.

Questions about AI chatbots in the lab

What is an LLM good at, and what is it bad at?

An LLM is good with words. Use it on a tool your lab has approved, with documents approved for it. There it can draft from a template, sum up a long document and explain a method. It can make a client email clearer if the contract allows it. It can give a wrong fact, number or rule citation, even when it sounds sure. Have a qualified person check every fact and every number.

Is ChatGPT an LLM? What does GPT stand for?

GPT stands for generative pre-trained transformer. ChatGPT is OpenAI’s chatbot, and it runs on OpenAI’s large language models. OpenAI says its text models are often called generative pre-trained transformers, or GPT for short (OpenAI). Generative means the model writes new text. Pre-trained means it first learned from a huge amount of text, before anyone chats with it. Anthropic says the model under Claude is also pretrained this way (Anthropic).

Why does AI make things up?

A chatbot predicts what is likely to come next. When it lacks the facts, it can still write an answer that sounds right. OpenAI calls these hallucinations. Its researchers argue that standard training and testing reward guessing over saying “I don’t know” (OpenAI). Approved documents help, but the model can still be wrong. Ask it to quote the passage behind each statement. Then check that each quote is exact and that it supports the answer to what you asked.

Can I use AI to do the math on lab results?

Not for reported results. A number in a chatbot reply can look exact and still be wrong. Use the lab’s approved calculations instead. If AI drafts a formula, the lab tests and approves it under its procedures before it is used for reported results.

What is inside an LLM, in plain words?

Inside, an LLM holds a very large set of numbers called parameters. OpenAI says that during training, these values are “adjusted slightly to reflect patterns” in the text (OpenAI Help Center). So an LLM holds patterns, not a binder of checked facts. Some tools add web search, with links to relevant sources (OpenAI Help Center). Open the links and check them.

What does it mean when AI answers from my own documents?

Some chat tools look for relevant parts of the documents you give them and use those parts to write an answer (Anthropic). Ask the tool to show the passage it used. Then check that each quote is exact and that it supports the answer to what you asked. The tool can still misread a passage. Give it only documents your lab has approved for that tool.

New to AI in the lab? Start with AI for environmental testing labs: what it can do for your team, and how to start safely.

About the author
Dacian Florea
Founder & CEO

Sources (14)

This post was drafted with AI help. Each source below shows the day it was checked.

  1. Electronic Code of Federal Regulations: 40 CFR 136.3, Table II (US Clean Water Act rule, in force; checked 5 December 2026). ecfr.gov
  2. Anthropic: Glossary (checked 4 December 2026). platform.claude.com
  3. OpenAI: Why language models hallucinate, September 5, 2025 (checked 4 December 2026). openai.com
  4. US EPA: QA Glossary, Environmental Monitoring and Assessment Program, archived page (checked 4 and 5 December 2026). archive.epa.gov
  5. OpenAI: Sycophancy in GPT-4o: what happened and what we’re doing about it, April 29, 2025 (checked 4 and 5 December 2026). openai.com
  6. OpenAI Help Center: Data analysis with ChatGPT (checked 4 December 2026). help.openai.com
  7. Anthropic: Code execution tool (checked 4 December 2026). platform.claude.com
  8. Anthropic: Context windows (checked 4 December 2026). platform.claude.com
  9. Claude Help Center: How large is the context window on paid Claude plans? (checked 4 December 2026). support.claude.com
  10. OpenAI: Introducing OpenAI o1-preview, September 12, 2024 (checked 4 December 2026). openai.com
  11. OpenAI: Key concepts, API documentation (checked 4 December 2026). developers.openai.com
  12. OpenAI Help Center: How ChatGPT and our foundation models are developed (checked 4 and 5 December 2026). help.openai.com
  13. OpenAI Help Center: Searching the web with ChatGPT (checked 4 December 2026). help.openai.com
  14. US EPA: Guidance on Environmental Data Verification and Data Validation (EPA QA/G-8), November 2002 (checked 5 December 2026). epa.gov

Schedule an online demo

The first call is a 30-minute Lab Systems Diagnostic. Then we show Prisma LIMS on your own files.

Schedule an online demo