Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions include/index_config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#pragma once

#include <memory>
#include <string>

#include "common_includes.h"
#include "parameters.h"
#include "distance.h"
#include "ann_exception.h"
#include "logger.h"

namespace diskann
{
Expand Down Expand Up @@ -198,14 +204,9 @@ class IndexConfigBuilder

IndexConfig build()
{
if (_data_type == "" || _data_type.empty())
if (_data_type.empty())
throw ANNException("Error: data_type can not be empty", -1);

if (_dynamic_index && _num_frozen_pts == 0)
{
_num_frozen_pts = 1;
}

if (_dynamic_index)
{
if (_index_search_params != nullptr && _index_search_params->initial_search_list_size == 0)
Expand Down