Phuc Buiv0.1.0

N-005

A RAG Chatbot for Saigon Food

20 Apr 2026 · ai, nextjs

This note as an agent skill: rag in phucbm/skills.

Shell
npx skills@latest add phucbm/skills --skill rag

food-tour-sg is a chatbot that finds places to eat in Saigon from a list of restaurants, instead of from what the model remembers. The data lives in CSV and Markdown files in the repo; an ingest script embeds them into Pinecone, and every message pulls the closest chunks into the system prompt before the chat model answers. The recipe is split across four skills: rag for the pipeline, pinecone for the store, vercel-ai-gateway for the models, and groq for streaming from Groq directly, which came from OpenWallet's admin. I built it to learn RAG on data I know: where I eat in Saigon.

What I didn't expect

Re-ingesting

A GitHub Action re-runs the ingest when anything under data/ changes on main, so a new place is in the bot after a push. Re-embedding every chunk is the expensive step, so it only runs when the data changes.

Models

ThroughWhy
food-tour-sgVercel AI Gatewayone key for every provider, and a mock provider for Playwright tests
OpenWallet adminGroq, directlyfast and OpenAI-compatible, streamed by hand