← All projects

2026

MemoryMap: A Multimodal Travel Memory and Recommendation Agent

Built a multimodal RAG agent that grounds travel recommendations in personal travel history instead of generic LLM knowledge, fusing text, image, metadata, and lexical retrieval via LangGraph. Top 10 Best Project Award, INFS4205/7205.

Recall@3 by Variant

MRR by Variant

Category: GenAI, Multimodal RAG, Agentic Systems

Overview

Built a RAG agent that answers questions about a user's personal travel history and recommends new destinations, grounding every answer in a synthetic knowledge base of 20 past trips (photos, captions, structured metadata) instead of relying on generic LLM world knowledge. Awarded a Top 10 Best Project Award for INFS4205/7205.

Project overview

MemoryMap: A Multimodal Travel Memory and Recommendation Agent overview

What I Built

  • Designed a 9-node LangGraph StateGraph pipeline: a deterministic keyword-heuristic query router fans out in parallel (via the Send API) to up to four retrieval backends, merges results with Reciprocal Rank Fusion, optionally reranks, then extracts preferences and generates a grounded answer
  • Indexed each trip across four independent retrieval modalities: dense text (all-MiniLM-L6-v2, 384-dim) and cross-modal image (CLIP ViT-B-32, 512-dim, averaged per trip) in separate ChromaDB collections, plus an in-memory metadata tag-scorer and a BM25Okapi lexical index
  • Implemented Reciprocal Rank Fusion (k=60) to combine heterogeneous retrieval signals, and tested three query-aware pruning strategies (soft/mid/strict) to reduce latency without sacrificing recall
  • Built an optional RankGPT-style LLM reranker with a silent fallback to the original fusion order on parse failure
  • Wrote query-type-specific prompts: a strict grounding-only prompt for memory-lookup queries, and a separate recommendation prompt that explicitly excludes already-visited destinations
  • Designed and ran a 12-variant ablation study (15 queries, 4 query families, 18 evaluation turns) measuring Recall@3, MRR, keyword overlap, LLM-as-judge groundedness, and NLI-based groundedness (cross-encoder/nli-deberta-v3-small)
  • Built an offline Stable Diffusion XL pipeline to generate seeded, category-aware travel photos per trip, and a SHA-256 content-hash-based reindexing system robust to file moves/copies
  • Shipped a Streamlit UI with Chat, Index, and Results tabs for interactive querying and ablation result inspection

Tech Stack

Python, LangGraph, ChromaDB, sentence-transformers, open-clip-torch (CLIP ViT-B-32), rank-bm25, Kimi K2.6 (via OpenAI-compatible API), Streamlit, diffusers (SDXL)

Outcome

The full fused pipeline achieved a Recall@3 of 0.481 and MRR of 0.750 against a baseline of 0.000 for both metrics, with LLM-judge groundedness reaching 0.909 versus zero for the ungrounded baseline — demonstrating that retrieval-grounded generation substantially outperforms generic LLM recommendations on personalized travel tasks. The ablation study also surfaced real limitations: equal-weight RRF fusion can dilute a strong single-modality signal (CLIP-only retrieval alone beat the fused pipeline on raw Recall@3), analytical multi-hop queries requiring synthesis across the full knowledge base remained an unsolved failure mode, and the project explicitly identified (but did not attempt) learned cross-modal projection to unify the incompatible MiniLM/CLIP embedding spaces as future work. The project was awarded a Top 10 Best Project Award out of the full course cohort.

Links

  • Codebase: Private repository
  • Project Report: Coming soon