AI Server. Add File#
The block adds a file to the knowledge base on the Sherpa AI Server. The document is automatically split into chunks, for each of which an embedding will be obtained[^1].
| File Name | [Text] The name and path to the file. You can enter the full file name including the path. |
| File Name in Knowledge Base | [Text] If necessary, you can specify your own file name in the knowledge base. |
| File Description | [Text] Description of the file. |
| GUID/Folder Path | [Text] The GUID of the folder or the path to the folder where the file needs to be added. If the value is not specified, the file will be added to the default folder. For example, |
| Metadata | [Dictionary] If necessary, provide a dictionary with metadata for this file. |
| Timeout | [Number] The maximum wait time for a response in seconds. |
| File GUID | [Text] Returns the GUID of the current file. |
| Folder GUID | [Text] Returns the GUID of the current folder. |
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the message level that blocks will output during operation. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block's operation. |
[^1]: An embedding is a vector (a set of numbers) that characterizes the meaning associated with the input text provided. Words or sentences with similar meanings will have embeddings with minimal cosine distance. Embeddings can also be used to search for the most semantically similar words, strings, or paragraphs in document databases.