BlogKaltec Voices
What document-search AI misses when you feed it SDS and TDS
- Type
- Kaltec Voices
- Published
- 24 November 2026
- Prepared by
- Byunghoon So
- Role
- ML / AI Engineer
Document-search AI answers with citations, but it knows whether a document is the current revision, and under what conditions a value was measured, only as far as someone recorded it when the document went in. A citation you can trust comes from a chunk indexed together with its revision number, issue date, measurement conditions and the revision it replaces.
Background
I once stared at a single answer screen for a long time. The question to a document-search AI loaded with a few hundred TDS and SDS from suppliers was "How low a temperature can this high-temperature grease be used at?", and the answer was "It can be used down to -30 °C." Under the answer, one row of the table on page 2 of the TDS was attached as the citation, and when I clicked it, the number was right there. But the date at the bottom of the document was several years old. In the same folder sat the new revision the supplier had issued after changing the base oil, in a file whose name differed by only a character or two. The new revision's minimum service temperature was -20 °C.
The answer matched the cited document exactly. The model and the search both did their jobs. What was missing was a record of whether that chunk was still the valid revision. Retrieval-augmented generation, which answers with evidence from documents you load in, has become a common shape for in-house AI, and an answer with a citation looks trustworthy. I think that trust is most dangerous with chemical documents, where values change while file names stay the same. A document-search AI knows only what was recorded alongside the documents when they went in. Unless each chunk carries its revision number, its date and the conditions its value was measured under, even an answer with a citation becomes a wrong answer.
Revisions and conditions lost at chunking
Retrieval-augmented generation first finds the document chunks closest to the question and places them in front of the model, which writes its answer from those chunks (Lewis et al., 2020). In practice, documents are cut into pieces of a few hundred characters when they go in, and each chunk's meaning is stored as a numeric vector. The problem starts at the moment of cutting. Once the line "Service temperature range -30 to 150 °C" from the table on page 2 of a TDS becomes a chunk, it no longer knows which product, which revision or which grade it belongs to. The product name was in the header on page 1, and the revision date at the foot of the last page.
Anthropic gave the example of a chunk from a company filing saying "revenue grew by 3% over the previous quarter" that does not know which company or which quarter it refers to, and reported a method that prepends to each chunk a short context written by a language model that has read the whole document, then reindexes. The rate at which the right chunk missed the top 20 was 5.7%. Vector search with the added context alone cut it to 3.7%, a 35% drop. Adding text search with the same context brought it to 2.9%, a 49% drop, and adding a reranking step brought it to 1.9%, a 67% drop (Anthropic, 2024). The reason to run text search alongside is clear too. Search by meaning often did worse than old word-matching search on documents from fields it was not trained on (Thakur et al., 2021), and product codes or grade marks such as "EP2" are caught only by searching for the characters, not the meaning.
In chemical documents, the context to prepend to a chunk is nearly fixed: product name and grade, document type, revision number or revision date, and the conditions the value depends on. Values on a TDS are usually typical values for production lots, not guaranteed specification values, and the test method used to measure them is part of the value's conditions too. When I build chunks, I extract these fields from the document first and attach them to every chunk, and I leave fields I cannot extract blank for a person to fill. Let the model fill a blank with a plausible value, and the error from the opening scene comes back in another form.
Tables keep their values only when cut by row
An SDS has 16 sections in a fixed order, and the last, section 16, is where information on preparation and revision goes (UN, 2025). Cut by section, and each chunk knows where it belongs. A TDS has no such frame. Each maker names and orders its tables differently, and most of the values sit inside tables. Tables are also what the default setting of cutting by character count breaks most.
A common failure is losing the column headers. When a TDS that lays out the ISO VG 32, 46 and 68 grades side by side in one table is cut by character count, the header row with the grade names and the rows of numbers land in different chunks. A model given only the number rows guesses by position which one is grade 46, and if columns shifted when a scanned document was read, it answers with the next grade's value. On a cutting fluid TDS, the pH of the concentrate and of a 5% dilution sit side by side in two columns of one table, and once the headers drop away, a question about concentrate pH gets the dilution's value.
So I cut tables by row and reattach the table title and column headers to every row, so that each row makes sense read alone, like "Product A, ISO VG 46, kinematic viscosity, 40 °C, 46.0 mm²/s, 2023 revision." I also align units at this point. cSt and mm²/s are the same size, but as text neither finds the other. °F in an American maker's document, or the decimal comma "0,86" in a German one, turns into a wrong value in number comparisons if left as is. I keep the aligned numbers in a separate field for comparison and show the original row in the answer as it is. A converted number has been copied one more time, so a person has to be able to check it against the original.
Record the revision outside the document
An SDS lets you read the revision from section 16, but a TDS often has no date at all, or only a small one in the footer. When a supplier changes a formulation and sends a new TDS, the file name may stay the same, and it may arrive only as an email attachment with no change notice. Once mixed in, it is hard for machine or person to tell which is the new revision, so the revision has to be recorded outside the document the moment it comes in.
When a revised edition arrives at a library, the librarian pulls the old edition's index card or marks it "revised edition available." Skip that, and a reader can find the book by the card and still walk out with the old edition's content. One chunk in a document-search AI is one of those cards, and a drawer whose old cards carry no revision mark makes the same mistake however fast you search it.
The fields I record are the revision number or revision date, the date received and the sender, and the earlier revision this document replaces. The earlier revision is not deleted but marked superseded, which keeps it out of default search and brings it back only when someone asks for that revision. When a problem comes up and you trace back, what you ask about is not the current revision but the one in force then. Which value this product was recommended on, and for which line, three months ago can be answered only by pulling up the revision valid at the time.
Here document search meets the supplier's records. If what changed comes along with each new revision, and the records show which value from which revision each customer line's recommendation rested on, then on the day a new revision arrives you can find the affected lines right away. We keep TDS, SDS and test data in an in-house data room, and attach the source file and reference to each item in an answer so the person in charge can check it at once. Revision numbers and revision dates are attached as tags too, and which revision served as the basis for each customer stays only in that customer's records.
Putting it to work
Each time documents come in, I run the same set of questions and split the score in two: retrieval and answer. The retrieval score is whether the right row from the currently valid revision landed among the top chunks. The answer score is whether the answer carried over that row's value and conditions as they are. If retrieval was right but the answer was wrong, I fix the instructions placed in front of the model. If retrieval was already wrong, I fix the chunks and the index.
The set includes questions about revisions, tables and answers that do not exist. For a product with a new revision, I ask about an item whose value changed and check that the citation points to the new revision. In a table with grades side by side, I ask about the middle grade alone, and in a table with concentrate and dilution side by side, about the concentrate alone. Last, I ask for a value found nowhere in the documents and see whether the answer ends by saying it cannot be confirmed from them. This last question is a problem that stays on the model's side however much you fix the index. In a study that tested retrieval-augmented generation on six 2023 language models, when given only documents without the answer, even the best model replied with the set refusal phrase just 31% of the time (Chen et al., 2024).
This set grows more useful when filled with questions actually received rather than ones made up at a desk. If the records keep, for each customer line, what was asked and which value from which revision answered it, those records become the question set and the answer key. On the day a new revision arrives, you only need to rerun the questions answered from the old revision, and the questions whose answers change point to the lines to recheck. Without revision history and per-line records, the set can only be filled with made-up questions.
Conclusion
What document-search AI misses is what the document does not state: whether it is still valid, and under what conditions its values hold. Changing the model or loading more documents does not create revisions and conditions. They come only from records made where documents come in. As revised SDS and TDS grow more frequent, chunks from old revisions without a superseded mark will keep piling up in indexes. The records needed to attach that mark lie with a supplier that has kept revision history and per-line application records together.
Only documents that state their revision and conditions can ground an answer.
Sources
- Anthropic. (2024). Introducing Contextual Retrieval. September 19, 2024. https://www.anthropic.com/news/contextual-retrieval
- Chen, J., Lin, H., Han, X., Sun, L. (2024). Benchmarking large language models in retrieval-augmented generation. AAAI 2024. arXiv:2309.01431. https://arxiv.org/abs/2309.01431
- Lewis, P., Perez, E., Piktus, A. et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. NeurIPS 2020. arXiv:2005.11401. https://arxiv.org/abs/2005.11401
- Thakur, N., Reimers, N., Rücklé, A., Srivastava, A., Gurevych, I. (2021). BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models. NeurIPS 2021 Datasets and Benchmarks Track. arXiv:2104.08663. https://arxiv.org/abs/2104.08663
- United Nations [UN]. (2025). Globally Harmonized System of Classification and Labelling of Chemicals, eleventh revised edition. Chapter 1.5, Safety data sheets, and Annex 4. https://unece.org/transport/dangerous-goods/ghs-rev11-2025