open

vector_search.open(uri, open_for_remote_query_execution=False, config=None, timestamp=None, **kwargs)

Factory method that opens a vector index.

Retrieves the index_type from the index group metadata and instantiates the appropriate Index subclass.

Parameters

Name Type Description Default
uri str URI of the index. required
config Optional[Mapping[str, Any]] TileDB config dictionary. None
timestamp If int, open the index at a given timestamp. If tuple, open at the given start and end timestamps. None
open_for_remote_query_execution bool If True, do not load any index data in main memory locally, and instead load index data in the TileDB Cloud taskgraph created when a non-None driver_mode is passed to query(). If False, load index data in main memory locally. Note that you can still use a taskgraph for query execution, you’ll just end up loading the data both on your local machine and in the cloud taskgraph. False
kwargs Additional arguments to be passed to the Index subclass constructor. {}