I understand what you mean (I think), but there is a part of this application that I have not been able to solve for years. This part is about how the content of a .txt text file should be formatted when reading the file.
For example, I currently have a chat log obtained from a messaging application. I wrote and ran a script that cleans up non-conversational parts (date, time, names, etc.) in this log. I made sure that each message sent is saved on a separate line (that is, I cleaned up unnecessary texts from each line I read in the original file and continued writing from the next line).
[OFF TOPIC: If desired, I can upload this script to GitHub once I make it more modular. This script currently works well with chats taken from the WhatsApp application (when the application language is Turkish). Still, if anyone wants to review it, let me know, and I'll add English explanations and send it over so you can modify it for your use, but as I said, it is not very modular at the moment. Anyway.]
Now, when I have this file read, does it assume that the expression following each line is a response to the currently read expression, or do I need to write the entire conversation in a single line without splitting it, as you mentioned (at least as I understand it)?
My question is too complex for me to write in English. Therefore, I used ChatGPT to translate it into English. I apologize if there are any mistakes.