Class SharePointOnlineContentSourceService
- Assembly
- FoundationaLLM.Vectorization.Engine.dll
Implements a vectorization content source for content residing in SharePoint Online.
public class SharePointOnlineContentSourceService : ContentSourceServiceBase, IContentSourceService
- Inheritance
-
SharePointOnlineContentSourceService
- Implements
- Inherited Members
- Extension Methods
Constructors
SharePointOnlineContentSourceService(SharePointOnlineContentSourceServiceSettings, ILoggerFactory)
Creates a new instance of the vectorization content source service.
public SharePointOnlineContentSourceService(SharePointOnlineContentSourceServiceSettings settings, ILoggerFactory loggerFactory)
Parameters
settings
SharePointOnlineContentSourceServiceSettingsloggerFactory
ILoggerFactory
Methods
ExtractTextAsync(ContentIdentifier, UnifiedUserIdentity, CancellationToken)
Reads the content of a data source item.
public Task<string> ExtractTextAsync(ContentIdentifier contentId, UnifiedUserIdentity userIdentity, CancellationToken cancellationToken)
Parameters
contentId
ContentIdentifierThe ContentIdentifier providing the unique identifier of the item being read.
userIdentity
UnifiedUserIdentityThe UnifiedUserIdentity providing information about the calling user identity.
cancellationToken
CancellationTokenThe cancellation token that signals that operations should be cancelled.
Returns
Remarks
contentId[0] = the URL of the SharePoint online tenant. contentId[1] = the relative path of the site/subsite. contentId[2] = the folder path, starting with the document library. contentId[3] = the name of the file.