Skip to content

Add a Knowledge Base

Adding knowledge to your chatbot depends on the type of chatbot you are building.

Base LLM and Pipeline

Add your source material

Select the Source Material tab on the left-hand menu and click Add new

Select the source material for your chatbot

Once you’ve created your source material, it should appear in the list of source materials when editing your chatbot.

Reference the source material in your prompt

To reference the source material, include the {source_material} prompt variable in your prompt. Be mindful of its placement—it’s best to include it in a separate section rather than within a sentence.

Example prompt:

You are a friendly chatbot. Be sure to reference the source material before answering the user's query:

### Source material
{source_material}

Assistant (Removed)

Assistant-type chatbots have been removed, so files can no longer be added to an assistant's file_search or code_interpreter tools. To give an LLM node the same file search knowledge, put the files in an Indexed Collection — the migration guide walks through moving an assistant's files across.

See also