EasyRAG - Document Loader:
The RagPromptDocumentLoader is a node designed to facilitate the loading and processing of various document types, such as text, JSON, markdown, and PDF files, into a format suitable for further analysis or integration into AI workflows. This node is particularly beneficial for users who need to incorporate external textual data into their AI models, enabling seamless document handling and preparation. By leveraging this node, you can efficiently manage document inputs, ensuring they are correctly formatted and ready for subsequent processing stages. The primary goal of the RagPromptDocumentLoader is to streamline the document loading process, making it accessible and straightforward for users without requiring deep technical expertise.
EasyRAG - Document Loader Input Parameters:
document
The document parameter is a required input that specifies the document you wish to load. It allows you to select a document from a predefined list or upload a new one, supporting formats such as txt, json, md, and pdf. This parameter is crucial as it determines the source of the data that will be processed by the node. There are no explicit minimum or maximum values, but the document must be in one of the supported formats to be valid.
EasyRAG - Document Loader Output Parameters:
RAG_DOCUMENTS
The RAG_DOCUMENTS output provides a structured representation of the loaded documents. This output is essential for further processing or analysis within your AI workflow, as it ensures that the document data is correctly formatted and accessible for subsequent nodes or operations.
STRING
The STRING output delivers a summary of the document loading process, including any errors encountered. This output is valuable for understanding the success or failure of the document loading operation, providing insights into potential issues that may need to be addressed.
EasyRAG - Document Loader Usage Tips:
- Ensure that your documents are in one of the supported formats (txt, json, md, pdf) before attempting to load them with this node to avoid compatibility issues.
- Regularly check the summary output to identify any errors or issues during the document loading process, allowing you to make necessary adjustments promptly.
EasyRAG - Document Loader Common Errors and Solutions:
Invalid document: <document_name>
- Explanation: This error occurs when the specified document does not exist in the expected location or is not accessible.
- Solution: Verify that the document path is correct and that the file is available in the specified directory.
Unsupported file type
- Explanation: This error indicates that the document format is not supported by the node.
- Solution: Convert the document to a supported format (txt, json, md, pdf) and try loading it again.
Please select or upload a document in the document field (txt/json/md/pdf).
- Explanation: This message appears when no document has been selected or uploaded for processing.
- Solution: Ensure that you have selected a document from the list or uploaded a new one before proceeding with the node execution.
