initialize

abstract suspend fun initialize(dataProvider: DataProvider, documentIdentifiers: DocumentIdentifiers, withSessionHistory: Boolean = true)

Initializes the assistant with the given data.

Parameters

dataProvider

The data provider for the document.

documentIdentifiers

The document identifiers.

withSessionHistory

A flag to indicate if the session history should be included in the response.

This methods includes all the necessary steps to initialize the assistant.

  • checkIfDocumentIsAlreadyIngested

  • ingestDocument

  • initializeSocketConnection

  • getSessionHistory