aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/tensor/default_nearest_neighbor_index_factory.h
blob: f1af7a8ac99cb849555c4da276539ec4285beec9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "nearest_neighbor_index_factory.h"

namespace search::tensor {

/**
 * Factory that instantiates the production hnsw index.
 */
class DefaultNearestNeighborIndexFactory : public NearestNeighborIndexFactory {
public:
    std::unique_ptr<NearestNeighborIndex> make(const DocVectorAccess& vectors,
                                               size_t vector_size,
                                               bool multi_vector_index,
                                               vespalib::eval::CellType cell_type,
                                               const search::attribute::HnswIndexParams& params) const override;
};

}