AIN. - AnythingLLM AI

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

AIN. - AnythingLLM AI

AIN.SetFolder

Previous Top Next


MiniRobotLanguage (MRL)

 

AIN.SetFolder
Set the Working Folder Path for AnythingLLM Operations

 

Intention

 

SetFolder Command: Define the Working Directory
 
The AIN.SetFolder Command sets the working folder path for file-related operations within the AnythingLLM API environment. It establishes the directory context for subsequent Commands.

This Command is part of the AIN - AnythingLLM AI suite, ensuring proper file handling in workflows.

 

What is the SetFolder Command?

 

This Command specifies the directory path where AnythingLLM will perform file operations, such as uploads or downloads. It updates the internal working folder setting for the API client.

The folder path must be valid and accessible; no return value is provided unless an error occurs.

 

Why Do You Need It?

 

Use AIN.SetFolder for:

File Operations: Set the context for file uploads or downloads.

Workflow Management: Ensure consistent directory use across multiple Commands.

Customization: Adapt the working folder to specific project needs.

 

How to Use the SetFolder Command?

 

Provide a valid folder path as the sole parameter. The Command updates the internal working folder without requiring additional setup beyond a functional AnythingLLM environment.

 

Illustration

 

+---------------+

� Working Folder�

+---------------�

� C:\MyFolder\ ��

+---------------+

Setting the working directory for file operations.

 

Syntax

 

AIN.SetFolder|P1

AIN.SEF|P1

 

Parameter Explanation

 

P1 - (String) The full path to the working folder (e.g., "C:\MyFolder\"). Must be a valid, accessible directory.

 

Example

 

' Set the working folder for AnythingLLM operations

AIN.SetFolder|C:\MyFolder\

DBP.Working folder set to: C:\MyFolder\

ENR.

 

Remarks

 

- The folder path must exist and be accessible; no validation feedback is returned unless an error occurs.

- Use AIN.GetFolder to verify the current working folder.

 

Limitations

 

- Requires exactly 1 parameter; otherwise, an error is set.

- Does not create the folder if it doesn�t exist.

 

See also:

 

? AIN.GetFolder

? AIN.SetChatEndpoint

? Operations