跳到正文
DEV Community· Jonald Penpillo·· 1 小時前AI 評分33

Delai:在即時地圖上規劃行程的 AI 旅伴

Delai: an AI travel companion that plans on a live map

AI 導讀

Delai 是 Delightful Philippines 旅遊平台內置的 AI 旅伴,會與旅客一同規劃行程,並在即時地圖上顯示航班、酒店、景點和天氣資訊。它透過 Gemini 3.1 Flash Lite 和 25 個即時工具查詢資料,並從 217 條精選知識條目檢索本地資訊。Delai 不會自行訂票或預訂住宿,而會在旅客選定後轉交平台原有的預訂流程。

正文

Delai is the travel companion built into the Delightful Philippines travel platform. A traveller opens a chat and talks in English, Filipino or a regional language, and Delai plans the trip with them rather than for them. The goal is a 24/7 kabayan concierge grounded in curated local knowledge and live inventory, with guardrails that stop it from inventing a flight, a hotel or a price.

The conversation is backed by a tool-using model: Gemini 3.1 Flash Lite through OpenRouter, with 25 live tools covering flights, hotels, tours, weather, tides, directions and safety. When a traveller asks about a route or a stay, Delai calls the relevant tools instead of guessing. Local context comes from retrieval over 217 curated knowledge entries stored in pgvector, so answers about places and practices are grounded in a maintained corpus.

Delai, AI Travel Companion screenshot

Every useful result becomes a card. Delai streams rich cards for flights, hotels, places and weather over SSE, and those cards land on a map workspace beside the chat. The traveller can see a suggestion in the same view as the conversation, which keeps the planning step-by-step: ask, compare, adjust, and watch the map fill in.

Delai never books on its own. Once the traveller has settled on a flight, hotel or tour, the system hands them into the normal booking flow, so the transaction stays in the platform's existing path. An inventory guard blocks invented results, and turn, token and spend budgets keep a session bounded. Usage is visible at a glance through turns, tokens, cache hits, spend and p95 latency.

Delai, AI Travel Companion screenshot

The build is Python and FastAPI on the server, with Gemini and OpenRouter for the model layer, pgvector and Supabase for retrieval and data, SSE for streaming, and React for the chat and map workspace. A live-model evaluation harness scores language handling, which tools were called, and whether invented inventory appeared, so changes to prompts or tools can be checked against real model behaviour rather than assumed.

The point of the design is to keep the model useful without letting it become the source of truth. Live tools supply inventory, retrieval supplies local knowledge, the map shows the result, and the guardrails keep the answer honest. What the traveller gets is a planning partner that can search and explain, then step aside at the moment of booking.


Delai, AI Travel Companion is a system built by Jonald Penpillo, a software developer and AI engineer in the Philippines.

Read the case study: Delai, AI Travel Companion

Originally published at penpillo-jonald.online. Written with AI from the project's case study notes and published automatically.

來源:DEV Community · dev.to