Trigger: A new shipment order is created in the TMS (e.g., Oracle TMS, SAP TM).
Context/Data Pulled: The system extracts shipment attributes (origin, destination, weight, dimensions, commodity type, service level) and queries Qdrant for similar historical shipments.
Model/Agent Action:
- An embedding is generated for the new shipment's attributes.
- Qdrant performs a vector similarity search against a collection of past shipment records, filtered by criteria like
date >= last_90_days and on_time_delivery == true.
- The top-k similar shipments are retrieved, along with their associated metadata: carrier used, actual route taken, transit time, and cost.
- An AI agent or rules engine analyzes the results, considering current factors like weather embeddings (stored in a separate Qdrant collection) and real-time carrier capacity, to recommend the top 3 optimal carrier/route combinations.
System Update/Next Step: The recommendations, with confidence scores, are posted back to the TMS. A planner reviews and selects an option, automatically triggering the carrier booking workflow.
Human Review Point: The planner makes the final selection from the AI-generated shortlist, especially for high-value or hazardous shipments.