Good morning! I have a question regarding the orde...
# koog-agentic-framework
c
Good morning! I have a question regarding the ordering of the LLM Messages: For example when using the TLDR node it uses the following ordering: 1. ASSISTANT (TLDIR) 2. SYSTEM 3. USER I guess the ordering is important for the priorization? What is the recommendation here when using a longer LLM and for example when manually restoring LLM messages from a previous session? Should the SYSTEM always be the first or not? Thanks!
👀 1
a
Hi Mark! I'd say yes, the ordering is important, and I'd consider
SYSTEM - USER - ASSISTANT
a classic order in a usual situation. However, in this very case, as assistant type of message holds the TLDR summary, I'd say it's okay to have it before the system message. In Koog there's no strict message order. When manually restoring the messages from previous session, I'd personally choose the following order:
Copy code
1. SYSTEM
2. USER: initial task / original goal
3. ASSISTANT: TLDR of previous session
4. USER: current new request
But this is what makes sense to me 😅 , so I guess there are multiple options depending on the task and context.
❤️ 1