0.3.1 (latest) 0.3.0 0.2.3 API documentation for `indexes` module.

## Classes

### [BaseIndex](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.BaseIndex)

    BaseIndex(name: Optional[str] = None, index_type: str = 'base', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None)

BaseIndex(name: Optional\[str\] = None, index_type: str = 'base', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy)

    DistanceStrategy(value)

Enumerator of the Distance strategies.

### [ExactNearestNeighbor](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.ExactNearestNeighbor)

    ExactNearestNeighbor(name: Optional[str] = None, index_type: str = 'exactnearestneighbor', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None)

ExactNearestNeighbor(name: Optional\[str\] = None, index_type: str = 'exactnearestneighbor', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [HNSWIndex](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.HNSWIndex)

    HNSWIndex(name: Optional[str] = None, index_type: str = 'hnsw', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None, m: int = 16, ef_construction: int = 64)

HNSWIndex(name: Optional\[str\] = None, index_type: str = 'hnsw', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [HNSWQueryOptions](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.HNSWQueryOptions)

    HNSWQueryOptions(ef_search: int = 40)

HNSWQueryOptions(ef_search: int = 40)

### [IVFFlatIndex](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.IVFFlatIndex)

    IVFFlatIndex(name: Optional[str] = None, index_type: str = 'ivfflat', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None, lists: int = 100)

IVFFlatIndex(name: Optional\[str\] = None, index_type: str = 'ivfflat', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [IVFFlatQueryOptions](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.IVFFlatQueryOptions)

    IVFFlatQueryOptions(probes: int = 1)

IVFFlatQueryOptions(probes: int = 1)

### [IVFIndex](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.IVFIndex)

    IVFIndex(name: Optional[str] = None, index_type: str = 'ivf', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None, lists: int = 100)

IVFIndex(name: Optional\[str\] = None, index_type: str = 'ivf', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [IVFQueryOptions](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.IVFQueryOptions)

    IVFQueryOptions(probes: int = 1)

IVFQueryOptions(probes: int = 1)

### [QueryOptions](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.QueryOptions)

    QueryOptions()

API documentation for `QueryOptions` class.

### [ScaNNIndex](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.ScaNNIndex)

    ScaNNIndex(name: Optional[str] = None, index_type: str = 'ScaNN', distance_strategy: llama_index_alloydb_pg.indexes.DistanceStrategy = <factory>, partial_indexes: Optional[list[str]] = None, num_leaves: int = 5)

ScaNNIndex(name: Optional\[str\] = None, index_type: str = 'ScaNN', distance_strategy: [llama_index_alloydb_pg.indexes.DistanceStrategy](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.DistanceStrategy) =


### [ScaNNQueryOptions](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.ScaNNQueryOptions)

    ScaNNQueryOptions(
        num_leaves_to_search: int = 1, pre_reordering_num_neighbors: int = -1
    )

ScaNNQueryOptions(num_leaves_to_search: int = 1, pre_reordering_num_neighbors: int = -1)

### [StrategyMixin](https://docs.cloud.google.com/python/docs/reference/llama-index-alloydb-pg/latest/llama_index_alloydb_pg.indexes.StrategyMixin)

    StrategyMixin(
        operator: str, search_function: str, index_function: str, scann_index_function: str
    )

API documentation for `StrategyMixin` class.