RAG for logistics exceptions helps coordinators at carriers, brokers, 3PLs and shippers decide what to do when a shipment goes wrong. The assistant cites customer contracts, routing guides, SOPs and carrier agreements, then drafts a message for a person to send. Start with hybrid RAG, because questions mix PRO numbers, lane IDs and accessorial codes with plain wording. NeoTek Solutions in Nashville designs and builds these assistants.

Retrieval-augmented generation (RAG) lets a large language model (LLM), the kind of AI behind chat assistants, answer from your own content. Here, that content is the paperwork behind every load. It includes customer contracts, routing guides, standard operating procedures (SOPs), rate agreements and carrier agreements.

This article expands the logistics row of our guide to RAG architectures explained. It covers where to start, which patterns to add later and how to keep customer, carrier and driver data protected.


What Problem Does It Solve?

Exceptions are the shipments that break the plan. A pickup is missed, a consignee refuses a load or a delivery arrives short or damaged. A truck waits at a dock long enough to trigger detention, a fee for driver time beyond the agreed free time.

Each exception raises the same questions. What does this customer’s contract say? Which accessorial charges apply? Accessorials are fees beyond the base freight rate, such as detention, lumper or redelivery fees. What does the carrier agreement allow? What should we tell the customer, and by when?

The answers are spread across contracts, customer routing guides, internal SOPs, rate sheets and email threads. Third-party logistics providers (3PLs) and brokers may manage dozens of customers, each with its own rules. Experienced coordinators know many of those rules by heart. Newer staff spend time searching, asking colleagues or guessing.

An exception assistant puts the relevant clause and its source in front of the coordinator. It can draft a customer update or carrier message. The coordinator checks the draft, edits it and decides whether to send it.


What Questions Can It Answer?

Example question What a good answer needs Where the answer comes from
Customer CUST-204 refused the load on PRO 58813920. What does their SOP say? The refusal steps, who to notify and the time limit, for that customer only Customer SOP and routing guide
Can we bill detention on lane CHI-NSH-07 after two hours? Free time, the hourly rate and any proof the customer requires Customer contract and accessorial schedule
Which accessorial code covers a redelivery for this customer? The exact code, its current rate and its effective date Rate agreement and accessorial code list
BOL 4471902 shows a shortage of three cartons. What is the claim process? Notice deadline, required documents and who approves the claim Customer contract, claims SOP and bill of lading
Our carrier missed the pickup window. What does their agreement allow us to do? Service terms, notice requirements and any chargeback rules, flagged for review Carrier agreement
Does this customer’s routing guide allow a partial delivery? The rule, any exceptions and the guide version in force on the ship date Customer routing guide
What should we tell the customer about a weather delay? Approved wording, required notice timing and a draft message Communication SOP and message templates

Which Content Should It Search?

  • Customer contractsService terms, liability limits, notice periods and accessorial rules, each tagged with customer code, account team and effective dates.
  • Customer routing guidesCarrier selection rules, appointment requirements, labeling rules and penalties for noncompliance, kept at the current approved version.
  • Internal SOPsStep-by-step playbooks for missed pickups, refusals, shortages, damage and delays, including escalation paths.
  • Rate and accessorial schedulesCodes, rates and free-time rules by customer and lane, with start and end dates.
  • Carrier agreementsService expectations, claims terms and chargeback rules, visible only to teams allowed to see them.
  • Message templatesApproved wording for customer updates, carrier notices and claim acknowledgments.
  • Shipment recordsRead-only lookups in the transportation management system (TMS) for status, stops and reference numbers, limited to fields the exception needs.

How Does Hybrid RAG Work Here?

Hybrid RAG runs two searches at once and merges the results. Keyword search catches exact strings such as PRO numbers, customer codes and accessorial codes. Vector search matches by meaning, so “consignee would not accept the freight” can find a clause about refused shipments.

Hybrid RAG for logistics exception managementCustomer contracts, routing guides and SOPs go into a hybrid index. A coordinator's question with a PRO number and plain words runs a search filtered by customer and access. Read-only TMS shipment facts join the retrieved clauses in a cited answer. The coordinator reviews it and can ask for a draft message to the carrier or customer.factsContracts +guidesRates, SOPs, datesHybrid indexKeyword + vectorTMS (read-only)Status, stops, PROCoordinatorquestionPRO no. + plain wordsFiltered searchCustomer + accessCited answerClauses + shipmentDraft messageTo carrier or customerCoordinatorreviewsEdits and sends
  1. Contracts, routing guides, SOPs and rate schedules are split into sections, tagged with customer code, lane, document type, access group and effective dates.
  2. Each section goes into a keyword index and a vector index. The vector index stores embeddings, lists of numbers that capture meaning.
  3. A coordinator asks a question, often pasting a PRO number, bill of lading number or customer code alongside plain wording.
  4. The system identifies the customer, lane and ship date, then filters both searches to documents the coordinator may see and that were in force on that date.
  5. Keyword and vector results are merged, and a re-ranker, a model that compares the question with each passage, puts the strongest passages first.
  6. The LLM answers only from those passages, citing the document, section and effective date for each point.
  7. When asked, the assistant drafts a customer or carrier message from approved templates and the cited terms.
  8. The coordinator reviews the answer and draft, edits as needed and decides what to send or escalate.

We start with hybrid search because exception questions are full of identifiers. Meaning-based search alone can blur two similar lane IDs or accessorial codes. Keyword search alone misses a routing guide that describes the same situation in different words. Combining both, with date and customer filters applied to each search, gives a dependable starting point. For how this compares with the other seven patterns, see RAG architectures explained.


When Should You Add Other RAG Patterns?

Launch hybrid RAG first, with a set of real exception questions and answers agreed by experienced coordinators. Add another pattern only when those results show a gap it fills.

Pattern: Multimodal RAG for Delivery Documents

The symptom is simple. Coordinators keep asking about evidence that lives in scans and photos, and the assistant cannot see it. Shortage and damage questions often hinge on a handwritten note on a bill of lading or a proof-of-delivery photo.

Multimodal RAG makes those files searchable. Optical character recognition (OCR) reads printed and handwritten text, and a vision-capable model describes photos. The results are indexed with the shipment’s reference numbers and linked to the original image. Handwriting and phone photos vary in quality, so unreadable fields should be flagged for a person rather than guessed. Processing images adds cost. For extracting fields at scale, intelligent document processing is often the better fit.

Pattern: Agentic Lookups Across the TMS and Email

The symptom here is that coordinators still open three systems for every answer. They check status in the TMS, search email for the carrier’s explanation and then look up the contract.

Agentic RAG hands those steps to an AI agent, software that plans steps and chooses its own tools. The agent checks shipment status in the TMS through read-only access. It reads the related carrier emails, finds the contract terms and drafts a reply or claim summary for approval. Agents are slower and less predictable than a single search. Emails can also contain text that tries to steer the agent. That calls for step limits, least-privilege tools and logging, covered in our agentic AI architecture guide.


Where Do People Stay in Control?

  • Coordinators send every messageThe assistant drafts customer and carrier messages, and a person reviews, edits and sends them.
  • No automatic claims or creditsFiling claims, issuing chargebacks and granting customer credits always require human approval.
  • Disputes stay with peopleAccount managers and claims staff decide how to handle disagreements over charges, liability or service failures.
  • Contract questions get escalatedUnclear or conflicting terms go to the client’s contract or legal team for the final call.
  • Uncertain answers are labeledWhen sources do not cover a situation, the assistant says so and points to the right escalation path.
  • Experts own the contentOperations leaders approve SOPs, templates and routing guide updates before they enter the index.

What Security and Compliance Controls Matter?

  • Customer contract confidentialityEach customer’s terms are visible only to the teams assigned to that account, enforced before the model sees any text.
  • Carrier and partner dataCarrier agreements and partner rates are handled according to the contract terms that govern them.
  • Driver location privacyDriver location data is used only for the exception at hand, with clear purpose limits and access rules.
  • Read-only system accessConnections to TMS, warehouse management system (WMS) and EDI data can read records but never change them.
  • Current terms by effective dateRouting guides and rate agreements carry start and end dates, and superseded versions are excluded from answers.
  • Data quality checksMissing tracking events, inconsistent reference numbers and unscanned documents are measured early and shown as gaps.
  • Private deploymentThe assistant runs in your cloud tenant on Azure, AWS or Google Cloud.
  • No public model trainingYour contracts, shipment data and messages are never used to train public models.
  • Audit trailsQuestions, sources, drafts and approvals are logged for later review.

We do not provide legal advice, and the client’s legal and contract teams make the final calls on contract interpretation. Our AI governance, security and compliance service helps set controls, monitoring and oversight.


How Do You Measure Whether It Works?

  • Retrieval accuracyHow often search finds the correct contract clause, SOP step or rate for the customer and date.
  • Citation accuracyWhether each cited source truly supports the statement it is attached to.
  • Effective-date correctnessHow often answers use the version of a routing guide or rate agreement in force on the ship date.
  • Draft edit rateHow much coordinators change drafted messages before sending them.
  • Handling time per exceptionTime from exception report to customer or carrier update, compared with the pre-launch baseline.
  • Escalation qualityWhether cases the assistant flags as unclear were the right ones to escalate.
  • Coordinator feedbackRatings and comments on wrong, missing or outdated answers.
  • Cost per answerModel, search and tool costs combined.

How Do You Roll It Out?

  1. Pick One Exception Type

    Choose a common, well-documented exception, such as detention or refused loads, for a small group of customers. Gather real questions from past cases and have experienced coordinators agree on correct answers.

  2. Prepare the Content

    Collect the contracts, routing guides, SOPs and rate schedules for those customers. Tag each with customer code, access group and effective dates. Fix outdated or conflicting versions before indexing.

  3. Build Hybrid Search

    Set up keyword and vector search with customer, access and date filters. Connect read-only TMS lookups. Test against the agreed questions and tune until the right clauses appear consistently.

  4. Pilot With Coordinators

    Give the assistant to a few coordinators for everyday exceptions. They review every answer and draft before acting. Log feedback and failed questions to guide content fixes and search tuning.

  5. Expand Carefully

    Add customers and exception types one group at a time. Consider multimodal document search or agentic lookups only when pilot results show the need. Keep measuring after each change.


How Can NeoTek Solutions Help?

NeoTek Solutions in Nashville builds exception management assistants for carriers, brokers, 3PLs and shippers. We connect to transportation, warehouse and ERP systems through the APIs, EDI feeds and exports they support.

  • Map the exceptionsWe review your contracts, routing guides, SOPs and the exceptions that take the most time.
  • Pilot with coordinatorsWe build hybrid search with read-only shipment lookups for one team, and coordinators review every answer and draft.
  • Keep claims with your peopleWe add per-customer access controls, audit logs and monitoring, and leave claims and credits to your staff.

See our logistics AI work.


Frequently Asked Questions

Will the assistant you build approve claims or customer credits?

No. We build it to summarize the evidence and cite the relevant contract terms. Your people decide on claims, chargebacks, credits and disputes, and every approval stays with them.

How do you keep it from quoting an outdated routing guide or rate?

We tag each document with effective dates and filter search to the version in force on the ship date. Answers show that date next to each citation, so coordinators can confirm it.

Can one customer’s contract terms appear in another customer’s answer?

Not in a system we have built correctly. We filter results by customer and by the coordinator’s permissions before the model sees any text, and our testing includes deliberate attempts to cross those boundaries.

Do we need a new TMS to work with you?

No. We connect to the systems you already run through their APIs, EDI feeds or exports, and we keep that access read-only. Learn more on our logistics and supply chain AI page.

Can NeoTek Solutions build an exception assistant for our team?

Yes. We build RAG assistants for logistics exception handling, from a focused pilot to production. Claims, credits and disputes stay with your people.


Start Handling Exceptions With Cited Answers

Tell us which exceptions take your coordinators the most time and where the answers live today. We will help you choose a starting point and build a pilot on your own documents. To get started, book a free AI consultation.

Take the free AI readiness assessment