LLM Based Chatbot for Farm-to-Fork Blockchain Traceability Platform
Source abstract
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.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Transportation and Mobility Innovations · Blockchain Technology Applications and Security · IoT and Edge/Fog Computing
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Technology and Management, Polytechnic of Leiria, 2411-901 Leiria, Portugal
Computer Science and Communication Research Centre (CIIC), 2411-901 Leiria, Portugal
Sensefinity, 1749-016 Lisboa, Portugal
Funding
Portuguese Recovery and Resilience Program (PRR)
References (24)
Show source-provided references
1. (2024, June 14). Blockchain. Available online: https://www.blockchain.com/.
2. Hyperledger10.1016/bs.adcom.2020.08.016 ↗
3. Chockalingam, A., Patel, A., Verma, S., and Yeung, T. (2024, March 25). A Beginner’s Guide to Large Language Models. Available online: https://resources.nvidia.com/en-us-large-language-model-ebooks.
4. Borwankar, N. (2024, March 16). Retrieval-Augmented Generation, Step by Step. Available online: https://www.infoworld.com/article/3712860/retrieval-augmented-generation-step-by-step.html.
5. Yelikar, S. (2024, March 24). Understanding Similarity or Semantic Search and Vector Databases|by Sudhir Yelikar|Medium. Available online: https://medium.com/@sudhiryelikar/understanding-similarity-or-semantic-search-and-vector-databases-5f9a5ba98acb.
6. Pinecone (2024, June 13). Home—Pinecone Docs. Available online: https://docs.pinecone.io/home.
7. Chroma (2024, June 13). Chroma Docs. Available online: https://docs.trychroma.com/.
8. Faiss (2024, June 13). Welcome to Faiss Documentation—Faiss documentation. Available online: https://faiss.ai/index.html.
9. Merritt, R. (2024, March 25). «What Is Retrieval-Augmented Generation aka RAG?», NVIDIA Blog. Available online: https://blogs.nvidia.com/blog/what-is-retrieval-augmented-generation/.
10. da Silva Duque-Pereira, I., and de Moura, S.A. (2023). Compreendendo a Inteligência Artificial Generativa na Perspectiva da Linguagem. 2023–2033.10.1590/SciELOPreprints.7077 ↗
11. Vue (2024, June 17). Glossary|Vue.js. Available online: https://vuejs.org/glossary/.
12. Angular (2024, June 17). What is Angular? Angular. Available online: https://angular.dev/overview.
13. React (2024, June 17). React Reference Overview—React. Available online: https://react.dev/reference/react.
14. Ruby (2024, June 17). Ruby on Rails Guides. Available online: https://guides.rubyonrails.org/v7.0/.
15. Estep, E. (2013). Mobile HTML5: Efficiency and Performance of WebSockets and Server-Sent Events, KTH, School of Information and Communication Technology (ICT).
16. Drift (2024, March 23). The Chatbots Report (2018): Reshaping Online Experiences. Available online: https://www.drift.com/blog/chatbots-report/.
17. Van Eeuwen, M. (2017). Mobile Conversational Commerce: Messenger Chatbots as the Next Interface between Businesses and Consumers. [Master’s Thesis, University of Twente].
18. McTear, M., Callejas, Z., and Griol, D. (2016). Creating a Conversational Interface Using Chatbot Technology. The Conversational Interface, Springer.10.1007/978-3-319-32967-3 ↗
19. Sengupta, R., and Lakshman, S. (2024, March 25). Conversational Chatbots-Let’s Chat. Available online: https://www2.deloitte.com/content/dam/Deloitte/in/Documents/strategy/in-strategy-innovation-conversational-chatbots-lets-chat-final-report-noexp.pdf.
20. Redux (2024, June 17). Usage Guides Index|Redux. Available online: https://redux.js.org/usage/.
21. (2024, June 17). Grommet. Available online: https://v2.grommet.io/docs.
22. Hugging Face (2024, May 20). Models—Hugging Face. Available online: https://huggingface.co/models.
23. FastAPI (2024, June 14). FastAPI Documentation—DevDocs. Available online: https://devdocs.io/fastapi/.
24. The System Usability Scale: Past, Present, and Future10.1080/10447318.2018.1455307 ↗