Blog · 9 November 2026 · 4 min read

AI search for well files, procedures and reports: how it works and how to set it up

Every oil and gas company has the same problem: the answer is in a document somewhere, and nobody can find it. Well files, end-of-well reports, procedures, inspection reports and contracts sit in shared drives and document systems, searchable only by filename if at all. AI search changes this: people ask in plain language and get an answer with the document and page. Here is how it works and how to set it up so engineers trust it.

How AI search works

The approach is usually called retrieval-augmented generation. In plain terms:

  1. Documents are split into passages and indexed by meaning, not just keywords.
  2. When someone asks a question, the system finds the passages most likely to contain the answer.
  3. A language model reads those passages and writes the answer, citing which document and page each part came from.

Because the answer is built from your passages, it can be checked. Because the search is by meaning, "when did we lose returns?" finds a report that says "total losses at 2,350 m".

Organise by project, not one big index

Putting every document in the company into one index gives worse answers and permission problems. Organise by the way people work: a project per well, rig, asset, overhaul or contract. Each has its own documents and members. Company-wide procedures can sit in a shared library available to all projects.

Which documents to start with

DocumentQuestions it answers
Daily drilling reportsWhat happened when, NPT, mud properties, problems
Drilling and fluids programsPlanned casing points, mud weights, contingencies
End-of-well reportsLessons learned, final depths, what went wrong
Procedures and standardsHow to do it, limits, required approvals
Inspection and maintenance reportsCondition, findings, recommendations
ContractsRates, obligations, notice periods

Scanned and old documents

Older well files are often scans. Text recognition makes them searchable, with quality depending on the scan. Typed reports work well; handwritten entries and faint copies less so. Mark scanned sources so users know to check them more carefully.

Keep documents current

Answers are only as good as the documents behind them. For procedures, include only the current controlled version and remove superseded ones. For reports, add them as they are issued, ideally automatically from the folder or document system they land in.

Permissions

Users should only get answers from documents they are allowed to see. Project membership is the simplest model. Restricted documents such as contracts and HR files go in restricted projects. See using AI without leaking well data.

Test before you trust

  1. Collect twenty real questions engineers asked recently, with the correct answers and where they are.
  2. Ask each one and check the answer and the cited page.
  3. Ask questions whose answer is not in the documents: the system should say so.
  4. Ask the same question twice: the answer should be consistent.
  5. Repeat after adding new documents.

Beyond search

Once documents are answerable, the same setup supports summaries, comparisons across wells, and drafting from them: an end-of-well report from the dailies, a lessons-learned list from five end-of-well reports, a procedure translated for a crew. See automating the daily drilling report for one example.

ChatPetroleum organises documents by project, answers with the file and page under every answer, and works in English, Arabic and Urdu. Try it on your own files.

Questions people ask

What is retrieval-augmented generation?

An AI approach where the system first finds the passages in your documents relevant to a question, then writes an answer from them, citing the sources.

Can AI search scanned well files?

Yes, after text recognition. Typed scans work well; handwritten or faint documents are less reliable and should be checked.

Is AI search better than keyword search?

For engineering questions, usually yes, because it searches by meaning and answers the question with the source cited, rather than returning a list of files.

Try Petroleum Chatbot on your own work

Ask a drilling, production or maintenance question now, free. Create an account to keep projects, add your reports and make Excel, Word and PowerPoint files.

Read next