Supporting consumers in making autonomous food choices that are sustainable and nutritionally complete is an increasingly complex task that must take into account several needs to foster eating habits of health-conscious consumers, while reducing food waste and environmental impact. While Generative AI and Large Language Models (LLMs) show promising results in this domain due to their natural language processing capabilities, they suffer from critical limitations, including hallucinations, knowledge gaps, and limited ability to handle factual information. To mitigate such limitations, Retrieval-Augmented Generation (RAG), which retrieves relevant information from external sources to enhance the capabilities of LLMs, has shown effectiveness in many domains. However, existing RAG approaches typically operate on unstructured text that lacks sophisticated symbolic representations of complex domain knowledge. This work proposes an ontology-enhanced conversational food advisory system that integrates a modular ontology, named FoCOSA (Food Consumer-Oriented Sustainability-Aware), within several key tasks of a RAG-based system, enhancing LLM reasoning with domain knowledge, while simultaneously improving the interpretation of user requests, thus improving retrieval effectiveness and interaction fluidity. Experimental evaluations demonstrate the efficacy of the approach, and the study concludes with guidelines for selecting appropriate settings for food recommendation scenarios considering the complexity of natural language queries and other contextual factors.

Ontology-enhanced RAG for a personalised and sustainable food advisory system

Bagozi A.;Bianchini D.;Garda M.;Melchiori M.;Rula A.
2026-01-01

Abstract

Supporting consumers in making autonomous food choices that are sustainable and nutritionally complete is an increasingly complex task that must take into account several needs to foster eating habits of health-conscious consumers, while reducing food waste and environmental impact. While Generative AI and Large Language Models (LLMs) show promising results in this domain due to their natural language processing capabilities, they suffer from critical limitations, including hallucinations, knowledge gaps, and limited ability to handle factual information. To mitigate such limitations, Retrieval-Augmented Generation (RAG), which retrieves relevant information from external sources to enhance the capabilities of LLMs, has shown effectiveness in many domains. However, existing RAG approaches typically operate on unstructured text that lacks sophisticated symbolic representations of complex domain knowledge. This work proposes an ontology-enhanced conversational food advisory system that integrates a modular ontology, named FoCOSA (Food Consumer-Oriented Sustainability-Aware), within several key tasks of a RAG-based system, enhancing LLM reasoning with domain knowledge, while simultaneously improving the interpretation of user requests, thus improving retrieval effectiveness and interaction fluidity. Experimental evaluations demonstrate the efficacy of the approach, and the study concludes with guidelines for selecting appropriate settings for food recommendation scenarios considering the complexity of natural language queries and other contextual factors.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11379/643725
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact