# Building a RAG-Powered Hackathon-Winning App — Luthfi Arifin

> Crafting personalized travel itineraries with Retrieval-Augmented Generation and Vector Search. How we built Hangout AI, a personalized travel-itinerary…

Canonical page: https://luthfiarifin.com/articles/rag-hackathon-winning-app
Last updated: 2026-11-29

- **Topic:** RAG
- **Published:** Level Up Coding, Nov 21, 2024
- **Reading time:** 12 min read
- **Full article:** [levelup.gitconnected.com/building-a-rag-powered-hackathon-winning-app-2e61af66443c](https://levelup.gitconnected.com/building-a-rag-powered-hackathon-winning-app-2e61af66443c)
- **Tags:** RAG, Vector Search, TiDB, LlamaIndex, LLMs, Hackathon

*Crafting personalized travel itineraries with Retrieval-Augmented Generation and Vector Search.*

## Overview

How we built Hangout AI, a personalized travel-itinerary generator, and took fifth place at the TiDB Future App Hackathon 2024. I built it with Ayu Sudi Dwijayanti; the idea came from our habit of talking about new cafés to work from in East Jakarta and never actually going.

The article explains Retrieval-Augmented Generation from first principles: why a standalone LLM gets facts wrong, goes stale and struggles to scale, and how retrieving real data first fixes that. Then it walks the whole pipeline: places scraped from Google Maps and cleaned with pandas, embedded with Gemini, stored in TiDB’s vector search, and handed with weather and location filters to Groq’s Llama 3 70B to write the itinerary, served through FastAPI with chat history.

It closes with how to build RAG without a framework, and what we would harden next: monitoring and security.

## Key takeaways

- RAG means retrieve, then generate: the model writes from real, current data instead of memory alone.
- Vector search in TiDB matches a traveller’s preferences to pre-embedded places in milliseconds, alongside structured filters like country.
- Context assembly matters: retrieved places, the weather and the user’s inputs become one structured prompt.
- Keeping chat history lets the itinerary adapt as preferences, dates or weather change.
- Frameworks like LlamaIndex speed you up, but RAG can be built by hand when you need full control.

## Figures

- [The basic RAG flow](https://luthfiarifin.com/images/articles/rag-hackathon-winning-app-1.webp) — Basic RAG flow: a question passes through indexing of documents, retrieval and generation to produce an answer.
- [Hangout AI’s RAG architecture](https://luthfiarifin.com/images/articles/rag-hackathon-winning-app-2.webp) — Hangout AI architecture: scraped place data prepared with pandas, embedded with Gemini, stored in TiDB, and queried by the LLM service with the user’s input.

## Resources

- [Hangout AI on Devpost](https://devpost.com/software/hangout-ai) — Project
- [luthfiarifin/hangout-llm](https://github.com/luthfiarifin/hangout-llm) — Source code
- [TiDB Future App Hackathon 2024](https://tidbhackathon2024.devpost.com/) — Hackathon
