01 AI and data
Language and document AI (NLP / LLM)
Your team asks questions of the organisation's own documents and gets answers with sources they can open and check.
- Input
- Documents, manuals and files the user is allowed to access, plus the user's question.
- How it works
6 steps
Preparing the knowledge
- Extract the text, with OCR where the file type needs it
- Split into chunks tagged with document ID, page and section
- Create embeddings and store them in an index
Answering a question
- Turn the question into a vector
- Find and rank passages from documents the user is allowed to see
- An LLM writes the answer from the retrieved passages and cites them
- Output
- An answer or structured fields, linked back to the source document.
- Where it's used
- Searching manuals, answering internal questions, pulling document data into systems, with a person reviewing before anything is saved to ERP.
Points to explore 5
D1Source document
Choose the documents and trace answers back to their source.
D2Text chunks
Split the text into chunks, each with a reference ID.
D3Data for search
Each row is one chunk; each column is one embedding dimension. Vector similarity is not a measure of accuracy.
D4Find relevant context
The question becomes a vector, and the closest passages from permitted documents are selected.
D5Answer with citations
The answer, structured fields and citations, reviewed before saving to ERP.
Technical detail
Demo data
Demo question Who reviews a request?
| Chunk | Document · section | Topic | cosine |
|---|---|---|---|
| C1 | DEMO-DOC-01 · p. 1 | Request review | 0.994 |
| C2 | DEMO-DOC-02 · p. 1 | Inventory records | 0.324 |
| C3 | DEMO-DOC-03 · p. 1 | Machine manual | 0.153 |
Answer The team lead reviews the request before it goes to the relevant department, by permission. Source [CITE-1] DEMO-DOC-01 · p. 1 · Request review
- The 4-dimension vectors are demo numbers, not output from a real model. The cosine values are computed from them.
- Similarity says how close a passage is to the question. It is not answer accuracy.
- Only documents the user may see are ranked, and a person reviews before anything is saved to ERP.
This kind of retrieval (RAG) is not model training. Adding documents does not train or fine-tune the LLM.
















