AI Server. Add Chunks#
The block adds chunks to the knowledge base on the Sherpa AI Server. An embedding will be obtained for each chunk[^1].
| File GUID/File Path | [Text] The GUID of the file or the path to the file to which this chunk will be added. If no value is specified, the chunk will be added to the default file. The file path must include the file name and file extension. For example, |
| Chunk Text | [Text] The text of the chunk. |
| Metadata | [Dictionary] Optionally specify a dictionary with metadata for this chunk. |
| Timeout | [Number] The maximum wait time for a response in seconds. |
| File GUID | [Text] Returns the GUID of the current file. |
| 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 the 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 work. |
[^1]: An embedding is a vector (a set of numbers) that characterizes the meaning associated with the provided input text. 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.