import os | |
def read_documents_from_files(folder_path): | |
documents = [] | |
for filename in os.listdir(folder_path): | |
with open(os.path.join(folder_path, filename), "r") as file: | |
documents.append(file.read()) | |
return documents | |
DOCUMENTS = read_documents_from_files("test") | |