Preprint
Article

This version is not peer-reviewed.

SMART Restaurant Recommender: A ContextAware Restaurant Recommendation Engine

A peer-reviewed version of this preprint was published in:
AI 2025, 6(4), 64. https://doi.org/10.3390/ai6040064

Submitted:

23 February 2025

Posted:

24 February 2025

Read the latest preprint version here

Abstract

With the rise of ecommerce systems and web application usage, recommendation systems have become important to our daily tasks. They provide personalized suggestions to assist with any task under consideration. While various machine learning algorithms have been developed for recommendation tasks, existing systems still face limitations. This research focuses on advancing contextaware recommendation systems by leveraging the capabilities of Large Language Models (LLMs) in conjunction with realtime data. The research exploits the integration of existing realtime data APIs with LLMs to enhance the capabilities of the recommendation systems already integrated into smart societies. The experimental results demonstrate that the hybrid approach significantly improves the user experience and recommendation quality, ensuring more relevant and dynamic suggestions.

Keywords: 
;  ;  ;  ;  ;  ;  

Introduction

The rapid advancement in artificial intelligence (AI) and natural language processing (NLP) have significantly transformed the way people access and engage with information. The emergence of large language models (LLMs), which represent a breakthrough in NLP, has significantly expanded the scope and effectiveness of recommendation systems within smart societies [1]. LLMs empower recommendation systems by enabling them to generate contextaware recommendations by accurately capturing user preferences, generating more personalized and diverse recommendations along with insightful and explainable recommendations [2]. However, LLMsbased recommendation systems suffer from the problem of discriminative recommendations. This means that the computational resources to calculate the ranking score are quite expensive due to their large platform [3].
Industrial recommendation systems are typically developed in multiple stages to narrow down the accurate candidate. Various approaches are being explored to simplify LLMbased recommendation architectures while maintaining high performance without incurring excessive computational costs. Notably, the integration of AI models with datarich sources presents novel opportunities for enhancing recommendation accuracy. This expanding digitization has shifted the interaction of humans with these systems. The same behavior expands the social interaction of humans and affects their social activities. Everyone is relying on the recommendations provided by the in formation systems. The same behavior can be seen when people try to find the restaurant of their choice. However, carefully considering both the potential benefits and associated risks is crucial to ensure the ethical use of this technology [4].
Traditional restaurant recommendation platforms, such as Yelp and Trip Advisor, primarily rely on usergenerated reviews and ratings. While useful, these approaches often fail to capture nuanced contextual preferences such as dietary restrictions, desired ambiance, or cuisine preferences. Additionally, most existing recommendation systems struggle with interpreting complex user queries and providing realtime, personalized suggestions. In contrast, LLMs, such as ChatGPT, possess advanced natural language understand ing capabilities but lack live access to realtime restaurant data, including location, operating hours, reviews, and business status.
The integration of LLMs with realtime data frameworks, such as Google Places API, presents a promising avenue for enhancing restaurant recommend dation systems. This synergy enables more relevant and contextually aware suggestions by combining the interpretative power of generative AI with up todate, locationspecific information. As a result, users benefit from recommendations that are not only personalized but also dynamically adapted to real world changes.
This study investigates the cooperative potential of generative AI—specifically, LLMs—within existing recommendation frameworks and evaluates their efficacy in improving social experiences by providing personalized restaurant recommendations based on user context. However, a key challenge in de veloping such a system lies in designing effective prompts that enable LLMs to accurately interpret and respond to natural language queries, which are inherently ambiguous and contextdependent [5].
In the next Section 2 we have summarized the related work followed by the proposed research design, and development in Section 3. Section 4, explains the experimental and evaluation. Section 5 discusses the evaluation results followed by a conclusion and future work in Section 6.

Evaluation Results and Discussion

This section discusses the findings of the experimental results against the set criteria as explained in Table 2. The system has been evaluated on 25 basic queries focusing on straightforward inquiries (e.g., Italian restaurant in Newtown or Sushi in Sydney CBD) and 25 complex queries which included additional descriptors such as affordable, vegetarian, family friendly, or ambiance preferences. These queries required the system to process nuanced input and provide recommendations based on both type and qualitative fac tors. Figure 9 shows the percentage of successful and failed queries.
From Figure 9, it is evident that the system demonstrated a high accuracy of 88% for basic queries and 84% for complex queries. The system’s accuracy suggests that the system reliably interprets the main elements of the query. However, the slightly lower pass rate for complex queries indicates that multi criteria requests present an additional challenge. This finding aligns with [6], which notes the importance of prompt optimization for LLMs to handle spe cific API requests effectively. Their research shows that finetuned prompt designs improve response accuracy and speed, which could be a valuable approach for enhancing the handling of complex, multicriteria queries in this system.
Figure 10a and Figure 11a shows the queries along with their Pass/Fail status, while Figure 10b and Figure 11b show the response time of the system for simple and complex queries respectively with their Pass/Fail status. From the results shown in Figure 10 and Figure 11, it is evident that the system demonstrated efficient performance, achieving an average response time of approximately 2.57 seconds across both basic and complex queries. This response time aligns with expectations for real time applications, ensuring a smooth user experience with minimal delays. The consistency in response times across basic and complex queries highlights the system’s robustness in managing both types of input. The slight decrease in response time for complex queries is noteworthy, as it suggests that the system’s architecture is well optimized for handling additional parameters without a proportional increase in processing time. This capability is critical for maintaining user satisfaction, as faster responses enhance the overall experience.
The survey results indicate that users had a positive experience with the system, highlighting its usability and effectiveness. Participants evaluated various aspects, including food preference matching, personalization and customization of recommendations, overall search quality and relevance, system speed and response time, and how the recommendations compared to those from Google and other designed engines. Additionally, users rated their acceptance of the recommendations provided by the smart recommendation system. Figure 12 summarizes the average scores for each survey question.
However, users rated their likelihood of choosing this recommendation system over Google at a scale of 3.94/5.0. Although this score is slightly lower than other usability metrics, it suggests that users recognize the potential of the system as an alternative to Google, particularly if improvements are made in personalization and handling special requirements. The lower rating may also reflect the familiarity of users and the habitual reliance on Google’s extensive database, highlighting an opportunity for further enhancement. Expanding data sources and improving personalization features could increase adoption and position the system as a competitive alternative.

Conclusion and Future Work

This research advances the interaction between LLMs and APIs to im prove recommendation systems, providing a more intuitive, responsive, and effective platform for interpreting complex user queries. The system achieves an accuracy of 84.88% (depending on the complexity of the query), with an average response time of 2.5 seconds and a high user satisfaction score of
4.39 out of 5.0. These results reinforce that the AI powered recommendation system effectively meets user needs in key areas, including food and location matching, speed, and overall recommendation quality. However, improving the handling of special requirements and further enhancing personalization could increase user satisfaction and strengthen the system’s competitiveness with broader search engines such as Google. Despite its strong performance, a few limitations persist in the designed systems such as reliance on the Google Places API, which can introduce potential delays during peak system loads, impacting its response times. Moreover, few responses suffer from hallucinations. he findings suggest future research directions of a more sophisticated prompt design and an alternative source of real time data to replace the Google Places API. Moreover, this research provides a scalable framework for multidomain applications beyond restaurant recommendations in areas such as travel, entertainment, and healthcare, where real time AI-driven recommendations can offer substantial value. In conclusion, this work demonstrates the potential of integrating LLMs with APIs to build intelligent, real time recommendation systems, with continued advancements in personalization, scalability, and system optimization paving the way for broader adoption.

References

  1. M. Johnsen, Developing AI Applications With Large Language Models, Maria Johnsen, 2025.
  2. Z. Zhao, W. Fan, J. Li, Y. Liu, X. Mei, Y. Wang, Z. Wen, F. Wang, X. Zhao, J. Tang, et al., Recommender systems in the era of large lan guage models (llms), IEEE Transactions on Knowledge and Data Engi neering (2024).
  3. J. Li, J. Xu, S. Huang, Y. Chen, W. Li, J. Liu, Y. Lian, J. Pan, L. Ding, H. Zhou, et al. A: Large language model inference acceleration; arXiv:2410.04466 (2024).
  4. Gokul, Llms and ai: Understanding its reach and impact, Preprints (May 2023). [CrossRef]
  5. L. Li, Y. Zhang, D. Liu, L. Chen, Large language models for generative recommendation: A survey and visionary discussions (2024). arXiv. arXiv:2309.01157.
  6. Silva, Y. G. Tesfagiorgis, (2023), Large language models as an inter face to interact with API tools in natural language, 2023.
  7. S. G. Patil, T. Zhang, X. Wang, J. E. Gonzalez, (2023), Gorilla: Large language model connected with massive APIs. arXiv, 2023. arXiv:2305.15334v1.
  8. Luo, C. Zhang, Y. Zhang, H. Li, (2024), CrossTune: Blackbox few shot classification with label enhancement. arXiv. arXiv:2403.12468v1.
  9. K. I. Roumeliotis, N. D. Tselikas, D. K. Nasiopoulos, Precisiondriven product recommendation software: Unsupervised models, evaluated by gpt4 llm for enhanced recommender systems, Software 3 (1) (2024) 62–80.
  10. Spinellis, (2024), Pair programming with generative AI, 2024.
  11. J. Mao, D. Zou, L. Sheng, S. Liu, C. Gao, Y. Wang, (2024), Identify critical nodes in complex networks with large language models. arXiv, 2024. arXiv:2403.03962.
  12. J. Lin, X. Dai, Y. Xi, W. Liu, B. Chen, H. Zhang, Y. Liu, C. Wu, X. Li, C. Zhu, et al., How can recommender systems benefit from large language models: A survey, ACM Transactions on Information Systems (2023).
  13. S. Hu, Y. Tu, X. Han, C. He, G. Cui, X. Long, (2024), MiniCPM: Unveiling the potential of small language models with scalable training strategies. arXiv, 2024.
  14. N. Corecco, G. Piatti, L. A. Lanzendo¨rfer, F. X. Fan, R. Wattenhofer, An llmbased recommender system environment, CoRR abs/2406.01631 (2024). [CrossRef]
  15. W. Fan, Z. Zhao, J. Li, Y. Liu, X. Mei, Y. Wang, J. Tang, Q. Li, Recommender systems in the era of large language models (llms), IEEE Transaction on Knowledge and Data Engineering (2023). [CrossRef]
  16. shadcn, shadcn/ui: Modern ui components for react, https://ui. shadcn.com/shadcn/ui Official Documentation, [Accessed 17012025] (2025).
  17. Optimizing: Third Party Libraries — Next.js — nextjs.org, https://nextjs.org/docs/app/buildingyourapplication/ optimizing/thirdpartylibraries, [Accessed 17012025].
  18. Vercel AI SDK, Openai — sdk documentation, https://sdk.vercel. ai/providers/aisdkproviders/openaiVercel AI SDK, [Accessed 17012025] (2025).
  19. Next.js by Vercel The React Framework — nextjs.org, https:// nextjs.org, [Accessed 15012025].
  20. Vercel: Build and deploy the best web experiences with the Frontend Cloud – Vercel — vercel.com, https://vercel.com/, [Accessed 1501 2025].
Figure 1. Framework for LLMs Enabled Recommendation Systems.
Figure 1. Framework for LLMs Enabled Recommendation Systems.
Preprints 150348 g001
Figure 2. Architecture Diagram of GPT Restaurant Recommender.
Figure 2. Architecture Diagram of GPT Restaurant Recommender.
Preprints 150348 g002
Figure 3. System Sequence Diagram of GPT Restaurant Recommender.
Figure 3. System Sequence Diagram of GPT Restaurant Recommender.
Preprints 150348 g003
Figure 4. Web Application of Smart Restaurant Recommender.
Figure 4. Web Application of Smart Restaurant Recommender.
Preprints 150348 g004
Figure 5. Map Functionalities of Restaurant Recommender.
Figure 5. Map Functionalities of Restaurant Recommender.
Preprints 150348 g005
Figure 6. Responses of Web Application of Restaurant Recommender.
Figure 6. Responses of Web Application of Restaurant Recommender.
Preprints 150348 g006
Figure 7. Ethical and Privacy Consideration.
Figure 7. Ethical and Privacy Consideration.
Preprints 150348 g007
Figure 8. Evaluation Criteria of Fail and Pass Cases.
Figure 8. Evaluation Criteria of Fail and Pass Cases.
Preprints 150348 g008
Figure 9. Queries Success Rate.
Figure 9. Queries Success Rate.
Preprints 150348 g009
Figure 10. Simple Query Evaluation.
Figure 10. Simple Query Evaluation.
Preprints 150348 g010
Figure 11. Complex Query Evaluation.
Figure 11. Complex Query Evaluation.
Preprints 150348 g011
Figure 12. User Satisfaction Results.
Figure 12. User Satisfaction Results.
Preprints 150348 g012
Table 2. Evaluation Criteria.
Table 2. Evaluation Criteria.
Metrics(s) Criteria
Handling of Complex Queries Recommendations on varied choice in a single query, such as “affordable” or “family friendly.”
LocationBased Results Recommendations based on the user’s specified location i.e., suburb, city, or street.
User Satisfaction User satisfaction should be between the scale of 4.0 5.0
System Response Time Response time of under 3.0 seconds.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated