Skip to main content

Ingesting content from an external source with Pega Knowledge Loader

With Pega Knowledge Loader, you can ingest content from external repositories, such as SharePoint or Confluence, into Pega GenAI Knowledge Buddy™. Explore the end-to-end process and how you can add PDF files hosted on SharePoint to a data source that Knowledge Buddy uses to answer questions.

Nota: To use a SharePoint or Confluence loader, you must first create a data collection and a data source. However, this topic does not cover the steps for that procedure. For more information about data collections and data sources, see the Advanced Buddy features module.

Creating a Knowledge Loader

In this topic, learn how to ingest PDF files from a SharePoint site. This process involves creating a Knowledge Loader, and then verifying whether Knowledge Buddy can reference the ingested files in its answers. While this topic focuses mainly on SharePoint, the differences between a SharePoint Loader and a Confluence loader are highlighted where appropriate. Knowledge Buddy functions the same, regardless of which type of Loader you use to ingest content.

The SharePoint sample site used in this demonstration contains the Guides folder, with two subfolders: Implementation Guide Install guide. Each folder contains one or more PDF documents. The goal is to have a Knowledge Buddy answer questions based on those files.

Sample SharePoint site

The ingested documents go into the Product Guide data source. Currently, there is no content in this data source, which you verify by logging in to the Knowledge Buddy Portal, and then clicking the Completed Content, In progress content, or Failed content tabs of the data source.

The completed Content tab of the product guide data source

You begin the process by logging in to the Knowledge Loader Portal. Click Create, and then click SharePoint Loader. Write an appropriate name and description for your loader in the Label and Description fields respectively, and then click Submit.

Nota: When you create a Confluence loader, click Confluence Loader instead of SharePoint Loader.
Create SharePoint loader dialog box

Next, configure the loader with the correct values. You plan to ingest content into the Product Guide data source, which is in the Knowledge collection. For this action, you pull documents from the site folder Shared Documents/Guides, and then secure it with the KnowledgeBuddy:Public role.

Nota: When you configure a Confluence Loader, you provide the resource path of the Confluence page or space instead of Site name.
The configuration of the SharePoint loader

Click Show optional settings. Because you plan to ingest only PDF files, in the File types to include field, enter pdf. Configure any other optional settingsthat you consider appropriate, and then click Submit to start the ingestion scheduler.

Additional options for the SharePoint loader
Nota: When you create a Confluence Loader, instead of Optional settings you configure Advanced settings such as Page and attachment names to include or exclude, as well as attachment types to ingest.

Now, return to the Knowledge Buddy Portal.

Because the ingestion happens periodically, the Knowledge Buddy is unable to answer questions immediately after you create the SharePoint Loader. However, you can return to the data source to confirm when the ingestion happens successfully. In the navigation pane of Knowledge Buddy, click Data source, and then click the ProductGuide data source. The Completed content tab displays the status, object ID of the ingested content, and any possible errors.

You can see that the Buddy successfully ingested the three documents from your SharePoint site.

The completed content tab with successfully ingested files from SharePoint

To verify that the Buddy is referencing the correct article, you can configure Knowledge Buddy to return the URL of the referenced article in its response.

Reopen the Buddy at the Prompt Stage, click Actions, and then click Edit. In the Response attributes list, select URL. Click Submit to apply the changes.

Now, when you ask the question how to create a buddy implementation application? Knowledge Buddy can respond.

Knowledge Buddy answering a question

You can click Review response to see the references. By highlighting the URLs, you can see that Knowledge Buddy is referring to the ingested data with URLs that point to your documents on the SharePoint site.


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Este conteúdo foi útil?

Quer nos ajudar a melhorar esse conteúdo?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice