Skip to content

ashmibanerjee/synthTRIPS-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenders

This repository contains the code files for the SynthTRIPS Query Generation Framework. SynthTRIPS is a novel framework for generating synthetic travel queries using LLMs grounded in a curated knowledge base (KB). Our approach combines persona-based preferences (e.g., budget, travel style) with explicit sustainability filters (e.g., walkability, air quality) to produce realistic and diverse queries.

We mitigate hallucination and ensure factual correctness by grounding the LLM responses in the KB. We formalize the query generation process and introduce evaluation metrics for assessing realism and alignment. Both human expert evaluations and automatic LLM-based assessments demonstrate the effectiveness of our synthetic dataset in capturing complex personalization aspects underrepresented in existing datasets. While our framework was developed and tested for personalized city trip recommendations, the methodology applies to other recommender system domains.

The pipeline is available to test on Colab: Open In Colab

Run

To execute the pipeline and/or the tests, please follow the steps below:

  1. Create a subfolder under root called data/ and clone the dataset from HuggingFace there.
  2. Install the requirements: pip install -r requirements.txt

Acknowledgments

We thank the Google AI/ML Developer Programs team for supporting us with Google Cloud Credits.

Citation

If you use the dataset or framework, please cite the following:

    title={SynthTRIPs: A Knowledge-Grounded Framework for Benchmark Query Generation for Personalized Tourism Recommenders},
    author={Ashmi Banerjee and Adithi Satish and Fitri Nur Aisyah and
    Wolfgang Wörndl and Yashar Deldjoo},
    year={2025},
    year={2025},
    booktitle={In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR ’25)},
    doi={https://doi.org/10.1145/3726302.3730321}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors