AIN. - AnythingLLM AI

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIN. - AnythingLLM AI >

AIN. - AnythingLLM AI

AIN.UploadDocument

Top


MiniRobotLanguage (MRL)

 

AIN.UploadDocument

Upload a document to workspace

 

Intention

 

The AIN.UploadDocument command uploads a document file to the AnythingLLM workspace for embedding and querying.

 

Syntax

 

AIN.UploadDocument|$$FilePath[|$$RetVar]

 

P1 - $$FilePath - Path to document file

P2 - $$RetVar (optional) - Variable for upload result

 

Example

 

' Upload a PDF document

AIN.UploadDocument|C:\Docs\manual.pdf|$$Result

DBP.Upload result: $$Result