-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation about file and template node
- Loading branch information
Showing
16 changed files
with
107 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# File | ||
|
||
The **file node** allows you to use files in a [tool](/concepts/tools). To upload a file simply click on "Select File" you will be able to upload a new file or select a previously uploaded file. | ||
|
||
Supported formats are `.txt`, `.csv`, `.pdf`, `.md`. | ||
|
||
![file](./images/file.png) | ||
|
||
## Inputs | ||
|
||
The file node has the following inputs: | ||
|
||
**`Text`** content of the file, _ignore this if you just want to upload a file_ | ||
|
||
## Outputs | ||
|
||
**`Text`** content of the file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Checklist | ||
|
||
The **checklist instruction** will run your prompt sequentially over a document of any length and fill a table with parameters you requested. The full document is provided to the LLM as is, to ensure no information is missed. This is ideal for analyzing documents, running checklists or extracting information from unstructured data. | ||
|
||
This node returns a table in either CSV or markdown formats, and will self heal incompatible results. | ||
|
||
![Table](./images/table.png) | ||
|
||
## Inputs | ||
|
||
The Instruction node has the following inputs: | ||
|
||
**`Control`** if this field is not connected the instruction will not run. | ||
|
||
**`AI Settings`** what [language model](/concepts/llms) and parameters to use to complete the instruction | ||
|
||
**`Instructions`** additional information to the LLM, that will be inserted at the start of the prompt | ||
|
||
**`Document`** the document to process, if the document + prompt are larger than the context length of the model, the document will be split and the prompt run on each part of the document | ||
|
||
**`Checks`** the categories you would like to check, each check is composed of a label and a description e.g. label: "is_contract" description: "is the document a contract" | ||
|
||
**`Fields`** additional columns for the resulting table, e.g. add "reasoning" as a field if you would like to get feedback as to why the language model picked a value | ||
|
||
**`Format`** the format to return the table in, this can be CSV or markdown | ||
|
||
::: info Defining checks | ||
|
||
When defining a check, make sure to be as descriptive as possible for the language model to be able to complete the table correctly | ||
|
||
::: | ||
|
||
## Outputs | ||
|
||
**`Checklist`** A table containing the checks in the required format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Template | ||
|
||
The **template node** allows you to join different inputs together. This can be helpful to create text that follows a specific format. | ||
|
||
At first glance the template node looks a lot like the [file](/nodes/file) node. The main difference is that the template node can be given variables. | ||
|
||
![template](./images/template.png) | ||
|
||
Let's say you want to format some inputs in a table, you can use the template node to do that: | ||
|
||
![template_format](./images/template_format.png) | ||
|
||
## Inputs | ||
|
||
The template node has the following inputs: | ||
|
||
**`Template`** template to be completed | ||
|
||
**`Any variable`** you add to the template will also become an input | ||
|
||
## Outputs | ||
|
||
**`Text`** template with values inserted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters