Skip to main content

What is Knowledge Source

Knowledge Sources are a feature within StackSpot AI that play a pivotal role in generating contextualized code. You have the flexibility to create multiple Knowledge Sources, which in turn enhances the capabilities of StackSpot AI as a developer assistant, making it even more proficient in assisting you.

When creating a Knowledge Source, you can add code snippets, text, and APIs, from your own projects.

Types of Knowledge Objects

A Knowledge Object is part of a Knowledge Source.

See below the Knowledge Objects types:

Snippets Group

When you incorporate your code snippets into StackSpot AI, it contributes to the generation of code that reflects specific experiences and real-world scenarios. You have the ability to introduce numerous code snippets to the platform, enhancing its capacity to produce contextually relevant code.

These snippets enrich the Language Model's learning process by incorporating real-world scenarios. It can enhance code generation suggestions with the flexibility to create personalized code snippets.

APIs

You have the option to include various OpenAPI files (Swaggers) to enhance the coding experience. This action enriches StackSpot AI with a catalog of APIs that StackSpot AI can leverage to provide improved code implementations that utilize these pre-existing APIs.

Knowledge Source Objects

The Knowledge Source is brought to StackSpot AI by getting multiple “Knowledge Objects” from a location, such as:

1. AWS S3

  • Bucket: name and region
  • Credentials: Role ARN, Session Name, STS Region (cross-account).

2. Azure Blob Storage

  • Container: Name
  • Credentials: Account name and SAS Token

3. Google Cloud Storage

  • Bucket: name and project ID
  • Credentials: Service Account JSON (key file)

4. HTTP

  • Endpoint: URL and Method
  • Credentials (via token OAUTH2): URL, Client ID, user/password, or client secret.

Learn more