LLM Based Chatbot for Farm-to-Fork Blockchain Traceability Platform

Blockchain technology has been used with great effect in farm-to-fork traceability projects. However, this technology has a steep learning curve when it comes to its user interface. To minimize this difficulty, we created a solution based on a Large Language Model (LLM) conversational agent. Our implementation, starting with an existing knowledge base that is prepared and processed with an embedding model to be stored in a vector database, follows a Retrieval-Augmented Generation (RAG) approach. Other non-textual media like images and videos are aggregated with the embeddings to enrich the user experience. User queries are combined with a proximity search in the vector database and feed into an LLM that considers the conversation history with the user in its replies. Given the asynchronous nature of these models, we implemented a similarly asynchronous scheme using Server-Sent Events that deliver the models’ replies to a UI that supports multimodal media types such as images and videos by providing the visualization of these resources. The end solution allows users to interact with advanced technologies using a natural language interface; this in turn empowers food traceability projects to overcome their natural difficulty in engaging early adopters.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2024-10-02
DOI
https://doi.org/10.3390/app14198856
Citations
17
Primary Topic
Transportation and Mobility Innovations
Type
article
Field-Weighted Citation Impact
3.46
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LLM Based Chatbot for Farm-to-Fork Blockchain Traceability Platform

Vítor Távora, Ricardo Gomes, João J. Ferreira, Leandro Pereira et al.
17 citations
Applied Sciences
Transportation and Mobility Innovations
3.46
article

LLM Based Chatbot for Farm-to-Fork Blockchain Traceability Platform

Vítor Távora, Ricardo Gomes, João J. Ferreira, Leandro Pereira, Marisa Maximiano, José Benzinho, Orlando Remédios, Joel Batista
article en
17 citations

Abstract

Blockchain technology has been used with great effect in farm-to-fork traceability projects. However, this technology has a steep learning curve when it comes to its user interface. To minimize this difficulty, we created a solution based on a Large Language Model (LLM) conversational agent. Our implementation, starting with an existing knowledge base that is prepared and processed with an embedding model to be stored in a vector database, follows a Retrieval-Augmented Generation (RAG) approach. Other non-textual media like images and videos are aggregated with the embeddings to enrich the user experience. User queries are combined with a proximity search in the vector database and feed into an LLM that considers the conversation history with the user in its replies. Given the asynchronous nature of these models, we implemented a similarly asynchronous scheme using Server-Sent Events that deliver the models’ replies to a UI that supports multimodal media types such as images and videos by providing the visualization of these resources. The end solution allows users to interact with advanced technologies using a natural language interface; this in turn empowers food traceability projects to overcome their natural difficulty in engaging early adopters.

Applied SciencesVol. 14(19)
Instituto Politécnico de Leiria (PT)
Openalex Percentile: Top 7%
Transportation and Mobility Innovations
3.46
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.