# Employing in-context learning prompts with large language models for drone routing in delivery services

**Authors:** Mahmoud Masoud, Mohammed Elhenawy, Ahmed Abdelhay

PMC · DOI: 10.1371/journal.pone.0321917 · PLOS One · 2026-03-27

## TL;DR

This paper explores using large language models to plan efficient drone delivery routes, reducing travel distance and improving delivery efficiency.

## Contribution

The study introduces a novel approach using in-context learning with LLMs for drone routing without task-specific fine-tuning.

## Key findings

- LLMs can generate valid and optimized drone delivery routes when properly prompted.
- Prompt engineering techniques significantly influence the quality of route plans produced by LLMs.
- LLM-generated routes outperformed heuristic-based methods in some cases.

## Abstract

Autonomous Aerial Vehicles (AAVs) – known as drones – employment in delivery services is one of the promising transformative technologies. The AAV industry has taken significant steps to develop drones to fulfill the needs of delivery services. However, AAVs have limitations related to the flight range and payload capacity. Therefore, drone route planning is crucial to reducing the effectiveness of these challenges. The recent emergence of Large Language Models (LLMs) has opened new possibilities for solving combinatorial problems using in-context learning (ICL). Unlike traditional machine learning models, LLMs can generate solutions without requiring task-specific fine-tuning by leveraging solved examples within their input prompts. In this study, we explore the application of LLMs to the Drone Routing Problem (DRP), leveraging various ICL strategies to generate optimized delivery routes. Our solution ensures that drone routes are planned to reduce the traveling distance for the full route. Notably, it ensures that drones don’t mess any delivery points and fast delivery routes. Through extensive experimentation, we evaluate the effectiveness of different prompt engineering techniques in guiding LLMs to produce high-quality, non-hallucinated route plans. We compared our model results to heuristic-based generated routes to demonstrate the variation between our technique and other techniques. The results demonstrate that LLMs, when properly prompted, can reliably generate valid routing solutions, highlighting their potential as a flexible and adaptive tool for drone logistics planning. Project link: https://github.com/ahmed-abdulhuy/Solve-TSP-using-GPT3.5.git

## Full-text entities

- **Diseases:** Hallucinations (MESH:D006212), TSP (MESH:D000076082), LLMs (MESH:D007806)
- **Chemicals:** CoT (-)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC13028478/full.md

## Figures

14 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13028478/full.md

## References

34 references — full list in the complete paper: https://tomesphere.com/paper/PMC13028478/full.md

---
Source: https://tomesphere.com/paper/PMC13028478