Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Step 4 – Add your own knowledge (optional)

Optional: let the AI node answer from your own documents with a knowledge base. Uses a small UNESCO sample.

Without a knowledge base, the AI node answers from what the language model already knows. With one, it answers from your documents – product sheets, FAQs, terms and conditions.

This step uses a small sample: ten short text files about UNESCO.

archive · 3KB
Open

Create the index

  1. Download the sample above and unzip it on your computer.

  2. In the project sidebar, open Design › Knowledge base and click Create.

  3. Enter the Name unesco and keep the Local tab with the default settings.

  4. Click Upload and select all ten .txt files.

  5. Click Create. Wait until the files are processed – hover over the upload icon in the top bar to see each file reach COMPLETED.

The Create index dialog on the Local tab with the name unesco, the Upload button highlighted and ten UNESCO text files listed
Creating the unesco index from the ten sample files
The upload panel opened from the upload icon in the top bar, listing the UNESCO files at 100 percent with the status COMPLETED
The upload panel in the top bar: every file is COMPLETED

More about indexes: Knowledge base.

Connect it to the AI node

  1. Go back to Design › Flow and open AI_ASSISTANT.

  2. In Essential › Tools, click + Add, choose Knowledge base and confirm with Done.

  3. Below the new Knowledge base chip, choose the Index name unesco.

  4. Add a sentence to Behaviour, so the model knows when to search:

  5. Close the node and click Save.

The Tools section of AI_ASSISTANT with the Knowledge base chip, Index name unesco and Number of snippets 5
The Knowledge base tool searches the unesco index

Now the agent answers UNESCO questions from the sample files. Try "What is UNESCO?" or "Which science programmes does UNESCO run?" in the next step.

Next: Step 5 – Train and test

Last updated

Was this helpful?