This path to test.txt is wrong: File: a-text-loader.py Currently: loader = TextLoader('./test.txt', encoding="utf-8") Should be: loader = TextLoader('../../test.txt', encoding="utf-8")