LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)

Aligning LLM (Large Language Models) for specific needs and contexts can significantly enhance the quality of user experience and the growth of LLM-based applications. Unfortunately, LLM alignment methods are still new, limited, and require experimental development. Prompt engineering and retriev...

Full description

Saved in:
Bibliographic Details
Main Author: Attarizal Rezyarifin, Zhillan
Format: Final Project
Language:Indonesia
Online Access:https://digilib.itb.ac.id/gdl/view/85486
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Institut Teknologi Bandung
Language: Indonesia
id id-itb.:85486
spelling id-itb.:854862024-08-20T22:55:59ZLLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM) Attarizal Rezyarifin, Zhillan Indonesia Final Project AI, LLM, transformer, prompt engineering, RAG, conversational agent, AI waifu, chatbot. INSTITUT TEKNOLOGI BANDUNG https://digilib.itb.ac.id/gdl/view/85486 Aligning LLM (Large Language Models) for specific needs and contexts can significantly enhance the quality of user experience and the growth of LLM-based applications. Unfortunately, LLM alignment methods are still new, limited, and require experimental development. Prompt engineering and retrieval-augmented generation are two promising LLM alignment methods that can be utilized by developers who do not have extensive computational resources. This thesis aligns an LLM to meet the needs of the ”MIST” diary system conversational agent case study. A full-stack web application was chosen as the instrument for implementing the LLM alignment. The implementation includes deployment on hardware, development of inference services, RAG (retrieval- augmented generation), prompt engineering, memory, interface, and the creation of a large number of prompt contexts. System evaluation shows that all implemented functionalities were successfully executed, and the context was successfully injected to control the behavior and interaction style of MIST. Unfortunately, qualitative evaluation with users indicated that the output quality, intelligence level, and system latency were still unsatisfactory. Further development is needed regarding LLM inference optimization and fast, iterative methods for creating and testing prompt templates. text
institution Institut Teknologi Bandung
building Institut Teknologi Bandung Library
continent Asia
country Indonesia
Indonesia
content_provider Institut Teknologi Bandung
collection Digital ITB
language Indonesia
description Aligning LLM (Large Language Models) for specific needs and contexts can significantly enhance the quality of user experience and the growth of LLM-based applications. Unfortunately, LLM alignment methods are still new, limited, and require experimental development. Prompt engineering and retrieval-augmented generation are two promising LLM alignment methods that can be utilized by developers who do not have extensive computational resources. This thesis aligns an LLM to meet the needs of the ”MIST” diary system conversational agent case study. A full-stack web application was chosen as the instrument for implementing the LLM alignment. The implementation includes deployment on hardware, development of inference services, RAG (retrieval- augmented generation), prompt engineering, memory, interface, and the creation of a large number of prompt contexts. System evaluation shows that all implemented functionalities were successfully executed, and the context was successfully injected to control the behavior and interaction style of MIST. Unfortunately, qualitative evaluation with users indicated that the output quality, intelligence level, and system latency were still unsatisfactory. Further development is needed regarding LLM inference optimization and fast, iterative methods for creating and testing prompt templates.
format Final Project
author Attarizal Rezyarifin, Zhillan
spellingShingle Attarizal Rezyarifin, Zhillan
LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
author_facet Attarizal Rezyarifin, Zhillan
author_sort Attarizal Rezyarifin, Zhillan
title LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
title_short LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
title_full LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
title_fullStr LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
title_full_unstemmed LLM ALIGNMENT WITH PROMPT ENGINEERING AND RETRIEVAL AUGMENTED GENERATION (CASE STUDY: CONVERSATIONAL AGENT FOR THE ”MIST” DIARY SYSTEM)
title_sort llm alignment with prompt engineering and retrieval augmented generation (case study: conversational agent for the ”mist” diary system)
url https://digilib.itb.ac.id/gdl/view/85486
_version_ 1822283143700283392