Table of Contents

Class RetrievalResult<T>

Namespace
AiDotNet.RetrievalAugmentedGeneration.Graph
Assembly
AiDotNet.dll

Represents a retrieval result from the hybrid retriever.

public class RetrievalResult<T>

Type Parameters

T

The numeric type.

Inheritance
RetrievalResult<T>
Inherited Members

Properties

Depth

Gets or sets the graph traversal depth (0 for initial candidates).

public int Depth { get; set; }

Property Value

int

Embedding

Gets or sets the embedding vector.

public Vector<T>? Embedding { get; set; }

Property Value

Vector<T>

NodeId

Gets or sets the node ID.

public string NodeId { get; set; }

Property Value

string

ParentNodeId

Gets or sets the parent node ID (for graph-traversed results).

public string? ParentNodeId { get; set; }

Property Value

string

RelationType

Gets or sets the relationship type (for graph-traversed results).

public string? RelationType { get; set; }

Property Value

string

Score

Gets or sets the relevance score (0-1, higher is more relevant).

public double Score { get; set; }

Property Value

double

Source

Gets or sets how this result was retrieved.

public RetrievalSource Source { get; set; }

Property Value

RetrievalSource