blob: 485c09e0c8c038992a748b3d31eed91cb6cef1e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. 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;
};
}
|