Chapter 1 questions

I am just learning all the AI/ML . For the context in the question-answer pipeline , can we give a textfile, instead of a single line context ? If yes, is there any format for the textfile ?