Skip to main content

Create Knowledge Sources

Learn how to create a Knowledge Source. Follow the instructions:

1. Access the StackSpot AI Portal;

2. On the left menu click ‘Knowledge Sources’;

3. Choose the Knowledge source type you want to create. Each type has specific fields. Select one and follow the steps below.

Image on how to create a Knowledge Source on StackSpot AI platform

1. API

Step 1. Fill out the fields:

  • Knowledge Source: Add a name.
  • Identification (Slug): This is your Knowledge Source URL. You cannot edit later.
  • Description: Describe what it is about.

Click ‘Create’;

Step 2. On the ‘Knowledge Objects’ tab:

  • Upload file: Choose individual files from your computer.
  • Upload zip (beta): Add a zip file with every file you want to add simultaneously.

Click ‘Next’;

2. Snippets Group

It is a suggested code example. It can be a pattern. You can use it to help LLM learn about your business rules or code style.

info

The StackSpot AI has a method of breaking down code snippets while creating Knowledge Sources. It aims to conserve tokens, reduce prompt overflow, and eliminate unnecessary whitespaces.

Follow the steps below:

Step 1. Go to the ‘Knowledge Source Information’ tab, add:

  • Knowledge Source: Add a name.
  • Identification (Slug): This is your Knowledge Source URL. You cannot edit later.
  • Description: Describe what it is about.

Click ‘Next’;

Step 2. On ‘Knowledge Objects’ you can add Knowledge Objects to your KS:

  • Manually: Choose the programming language and copy and paste your desired content. The KOs you add manually will appear with a 'Standalone' tag.
  • Upload Files: The KOs you add as files will appear with a 'Uploaded File' tag.
    • Upload file: Choose individual files from your computer. **The KOs you add with files
    • Upload zip (beta): Add a zip file with every file you want to add simultaneously.

Step 3. Click ‘Save’. You can add more Knowledge Objects later;

3. Custom Knowledge Source

You can set up your Knowledge Source to store and manage text-based Knowledge Objects using StackSpot AI. There are two ways to add text:

1. Upload a text: Simply upload a text file. It can be .txt or .md. 2. Manual Entry: Insert text directly into the platform.

StackSpot AI automatically breaks down the content you add or upload into smaller, more manageable pieces, making it easier to search and navigate. You can effortlessly add, view, and manage these text-based Knowledge Objects.

Follow these steps:

Step 1. Access the StackSpot AI Portal. Click ‘Knowledge Sources’ on the left-side menu;

Step 2. Click on ‘Knowledge Sources’, then select ‘Create’ and select the ‘Custom’ option;

Step 3. On the Knowledge Source information tab, provide the following details:

  • Name
  • Description

Step 4. On the ‘Knowledge Objects’ tab, add your objects:

  • Manually: Choose the programming language and copy and paste your desired content. The KOs you add manually will appear with a 'Standalone' tag.
  • Upload Files: The KOs you add as files will appear with a 'Uploaded File' tag.
    • Upload file: Choose individual files from your computer. **The KOs you add with files
    • Upload zip (beta): Add a zip file with every file you want to add simultaneously.

Click ‘Save’;

Learn more