File
This component lets you upload text files into your Nappai automation. It’s like a file picker, but specifically designed for text files, making it easy to use the information within those files in your automated processes.
Relationship with File Systems
This component interacts directly with your computer’s file system, allowing you to select a text file from your computer to be used within your Nappai automation.
Inputs
- Upload file or select file: This is where you choose the text file you want to use. You can either browse your computer to select an existing file or upload a new one. Nappai only supports specific text file types (like .txt, .csv, etc.).
- Silent Errors: (Advanced) This option lets you choose whether Nappai should continue running even if it encounters problems with your file. If turned on, Nappai will try to ignore errors and continue processing. If turned off (the default), Nappai will stop if it finds a problem with your file and will display an error message.
Outputs
- Data: This output contains the information from your uploaded file, ready to be used by other components in your Nappai workflow. For example, if you upload a CSV file, this output will contain the data organized in a way that other Nappai components can easily understand.
- Files: This output provides a summary of the files that were uploaded or selected. This is helpful for tracking which files were used in your automation.
Usage Example
Imagine you have a text file containing a list of customer names. You can use the “File” component to upload this file. Then, another component in your Nappai workflow (like a “Send Email” component) can use the “Data” output to send personalized emails to each customer.
Templates
This component is used in many Nappai templates, including: Vector Store RAG, Document QA, CV Scorer, CV Match, Document Insights, and Create Questions and Answers from Documents. The exact configuration may vary depending on the template.
Related Components
Many components can work with the output of the “File” component. Here are a few examples:
- Explain SQL results: If your file contains data you want to analyze with a SQL query, this component can help you understand the results.
- SQL Query Constructor: This component helps you create SQL queries to analyze data from your uploaded file.
- Many other components: The “Data” output can be used as input for many other Nappai components, depending on your specific automation needs.
Tips and Best Practices
- Make sure your file is a supported text file type.
- For large files, consider using the “Silent Errors” option to prevent interruptions if there are minor issues.
- Review the “Files” output to verify that the correct file was processed.
Security Considerations
Ensure that the files you upload do not contain sensitive information. Nappai processes your data securely, but it’s your responsibility to protect sensitive data before uploading it.