Improving LLM's Response with a New Prompt Framework RCFOR
Recent advancements in prompt engineering have significantly enhanced the performance of large language models (LLMs), enabling better adaptation to diverse tasks. While CO-STAR has been widely used for structured prompt optimization, its rigid structure and inefficiencies in handling complex queries limit its flexibility. To address these challenges, we propose RCFOR, a novel framework, which is built on five components: Role, Context, Focus, Objective, and Response designed to enhance adaptability and efficiency in prompt engineering. Inspired by reinforcement learning techniques in few-shot learning and advanced prompt tuning strategies, our method improves generalization across different AI applications. Experimental evaluations using GPT-4o-mini model, on a food dataset demonstrate that RCFOR achieves an accuracy of 0.91, closely matching CO-STAR's performance while offering superior adaptability and efficiency. Our approach aligns with recent advancements in prompt-based model optimization, such as Chain-of-Thought prompting and instruction tuning, further highlighting its potential for broader AI applications. These findings position RCFOR as an effective alternative to CO-STAR, offering enhanced flexibility, improved response accuracy, and dynamic adaptability in complex scenarios.
Authors
- Tuan Pham (ORCID: https://orcid.org/0000-0003-0269-220X)
- Tuan Nguyen Ngoc
Institutions
- University of Da Nang (VN)
Publication Details
- Published
- 2025-07-25
- DOI
- https://doi.org/10.1109/atigb66719.2025.11142192
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00