Class AIRequestInfo
Represents the details of an AI request: the origin of the request (RAG or Client), the estimated token count, and whether RAG was used to answer the query.
Inheritance
Namespace: Telerik.Reporting.Services.Engine
Assembly: Telerik.Reporting.dll
Syntax
public class AIRequestInfo
Remarks
This class provides information about an AI request, such as the estimated number of tokens required for processing. The token count is calculated based on the input and is read-only.
Properties
EstimatedTokensCount
Gets the estimated number of tokens based on the current input or configuration.
Declaration
public int EstimatedTokensCount { get; }
Property Value
System.Int32
|
Origin
Identifies the origin of the request. 'RAG' identifies the request being sent to determine whether the original query is suitable to be passed through the internal RAG algorithm. 'Client' identifies the request being sent from the client, e.g. Report Viewer.
Declaration
public AIRequestInfo.AIRequestOrigin Origin { get; }
Property Value
AIRequestInfo.AIRequestOrigin
|
RAGOptimization
Determines whether RAG was being used to answer the request.
Declaration
public AIRequestInfo.RAGOptimizationState RAGOptimization { get; }
Property Value
AIRequestInfo.RAGOptimizationState
|