diff --git a/src/rag-chat.ts b/src/rag-chat.ts index b377086..8d0017c 100644 --- a/src/rag-chat.ts +++ b/src/rag-chat.ts @@ -219,7 +219,6 @@ export class RAGChat { // Formats the chat history for better accuracy when querying LLM const formattedHistory = modifiedChatHistory - .reverse() .map((message) => { return message.role === "user" ? `USER MESSAGE: ${message.content}`