Show / Hide Table of Contents

Class RagResult

Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.

Carrier object for RagResult. Services for the RagResult Carrier is available from the AI Agent.
Inheritance
object
RagResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.2.0.0")]
public class RagResult

Constructors

RagResult()

Default constructor

Declaration
public RagResult()
See Also
IAIAgent

Properties

Chunk

Markdown text that matched query.

Declaration
[DataMember]
public virtual string Chunk { get; set; }
Property Value
Type Description
string
See Also
IAIAgent

Id

Matched document's unique id. Typically a URI.

Declaration
[DataMember]
public virtual string Id { get; set; }
Property Value
Type Description
string
See Also
IAIAgent

Metadata

Dictionary of metadata for this result. Keys depend on the source of the document. e.g. 'Title', 'Filename', 'Url', etc.

Declaration
[DataMember]
public virtual StringObjectDictionary Metadata { get; set; }
Property Value
Type Description
StringObjectDictionary
See Also
IAIAgent

Score

Relevancy score (0-1). How close this chunk of the document matched the query.

Declaration
[DataMember]
public virtual double Score { get; set; }
Property Value
Type Description
double
See Also
IAIAgent

Title

Title or filename of matched document, extracted from the Metadata

Declaration
[DataMember]
public virtual string Title { get; set; }
Property Value
Type Description
string
See Also
IAIAgent

Type

Content type (web/faq/ticket/...)

Declaration
[DataMember]
public virtual RagType Type { get; set; }
Property Value
Type Description
RagType
See Also
IAIAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

Overrides
object.ToString()
See Also
IAIAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IAIAgent

See Also

IAIAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top