VectorSearchResult<Record> Class

  • java.lang.Object
    • com.microsoft.semantickernel.data.vectorsearch.VectorSearchResult<Record>

Type Parameters

Record

The type of the record.

public class VectorSearchResult<Record>

Represents a vector search result.

Constructor Summary

Constructor Description
VectorSearchResult(Record record, double score)

Creates a new instance of VectorSearchResult.

Method Summary

Modifier and Type Method and Description
Record getRecord()

Gets the record.

double getScore()

Gets the score.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

VectorSearchResult

public VectorSearchResult(Record record, double score)

Creates a new instance of VectorSearchResult.

Parameters:

record - The record.
score - The score.

Method Details

getRecord

public Record getRecord()

Gets the record.

Returns:

The record.

getScore

public double getScore()

Gets the score.

Returns:

The score.

Applies to