load_documents(directory_path) [¶](https://kmkarakaya.github.io/rag-kmk/document_loader/#rag_kmk.knowledge_base.document_loader.load_documents)
Loads documents from a specified directory. Supported file types are defined in CONFIG['supported_file_types']. Currently supports .txt, .pdf, and .docx files.
directory_path (str): The path to the directory containing the documents to be loaded.
list: A list of document contents as strings.