All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.semantickernel.data.vectorsearch.VectorSearchResult Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy