IAiRagDocumentProviderGetDocumentTextAsync(Guid, IAiOperationLock, String, CancellationToken) - метод
Получает текстовое содержимое документа по идентификатору документа.
Пространство имён: Tessa.Ai.RagСборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
Task<(string Name, string Text, long Size)> GetDocumentTextAsync(
Guid documentID,
IAiOperationLock operationLock,
string? ocrMethod = null,
CancellationToken cancellationToken = default
)
Function GetDocumentTextAsync (
documentID As Guid,
operationLock As IAiOperationLock,
Optional ocrMethod As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (Name As String, Text As String, Size As Long))
Task<ValueTuple<String^, String^, long long>>^ GetDocumentTextAsync(
Guid documentID,
IAiOperationLock^ operationLock,
String^ ocrMethod = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract GetDocumentTextAsync :
documentID : Guid *
operationLock : IAiOperationLock *
?ocrMethod : string *
?cancellationToken : CancellationToken
(* Defaults:
let _ocrMethod = defaultArg ocrMethod null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<string, string, int64>>
override GetDocumentTextAsync :
documentID : Guid *
operationLock : IAiOperationLock *
?ocrMethod : string *
?cancellationToken : CancellationToken
(* Defaults:
let _ocrMethod = defaultArg ocrMethod null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<string, string, int64>>
- documentID Guid
- Идентификатор документа.
- operationLock IAiOperationLock
Позволяет отслеживать активность операции.
- ocrMethod String (Optional)
-
Имя обработчика распознавания текста (OCR), заданное для коллекции,
или , если используется обработчик из настроек модуля ИИ.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskValueTupleString,
String,
Int64Кортеж, содержащий имя документа, извлечённый текст и размер.