Upload Data
Use Document
Read a local document
Parameters
- name: The document name
Upload Document
Uploading a document works in two steps. When you click the Upload Document
button, you are presented with a file selector to select a local document for upload. Some supported files are .docx, .doc, .pdf, .txt, .csv, .json, and .xlsx.
mAIstro will automatically run OCR processing if a PDF is uploaded, but returns no text contents.
After the document is successfully uploaded, it is available in the Upload Document
pane:
The uploaded document can then be used with the following syntax:
Parameters
- File Upload: The file to be processed.
Upload & OCR
mAIstro’s OCR feature automatically processes image-based PDFs and images, converting them into searchable, editable text.
OCR'ing a document works in two steps. When you click the Upload & OCR
button, you are presented with a file selector to select a local document for upload. Some supported files are .pdf, .png, .jpeg.
After the document is successfully uploaded, it is available in the Upload Document
pane:
The uploaded document or image can then be used with the following syntax:
Parameters
- File Upload: PDF or image file to be processed with OCR.
Example 1: Using OCR with PDF Files
-
Go to Upload Data in mAIstro.
-
Select Upload Document or Upload & OCR and choose your PDF file.
-
OCR will be automatically applied, transforming the document into searchable text.
NTL Snippet:
Example 2: Using OCR with Image Files
-
Go to Upload Data in mAIstro.
-
Select Upload & OCR to upload an image file.
-
OCR processing starts automatically, converting the image into searchable text.
NTL Snippet:
Delete Document
Delete a local file.
Parameters
- file: The filename