Skip to contents

Open an existing Annoy index and its sidecar metadata

Usage

annoy_open_index(
  path,
  metadata_path = NULL,
  prefault = FALSE,
  load_mode = "eager"
)

Arguments

path

File path to an existing Annoy index built by annoy_build_bigmatrix().

metadata_path

Optional path to the sidecar metadata file.

prefault

Logical flag indicating whether searches should prefault the index when loaded by the native backend.

load_mode

Whether to eagerly load the native index handle on open or defer until first search.

Value

A bigannoy_index object that can be passed to annoy_search_bigmatrix().