com.microsoft.semantickernel.data.vectorsearch.VectorSearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantickernel-api Show documentation
Show all versions of semantickernel-api Show documentation
Defines the public interface for the Semantic Kernel
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.data.vectorsearch;
/**
* Represents a vector search result.
* @param The type of the record.
*/
public class VectorSearchResult {
private final Record record;
private final double score;
/**
* Creates a new instance of VectorSearchResult.
*
* @param record The record.
* @param score The score.
*/
public VectorSearchResult(Record record, double score) {
this.record = record;
this.score = score;
}
/**
* Gets the record.
*
* @return The record.
*/
public Record getRecord() {
return record;
}
/**
* Gets the score.
*
* @return The score.
*/
public double getScore() {
return score;
}
}