# Module indexes (0.15.0)

0.15.0 (latest) 0.14.0 0.12.0 0.11.0 0.10.0 0.9.3 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.2 API documentation for `indexes` module.

## Classes

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

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

IVFIndex(name: Optional\[str\] = None, index_type: str = 'ivf', distance_strategy: langchain_postgres.v2.indexes.DistanceStrategy =


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

    IVFQueryOptions(probes: int = 1)

IVFQueryOptions(probes: int = 1)

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

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

ScaNNIndex(name: Optional\[str\] = None, index_type: str = 'ScaNN', distance_strategy: langchain_postgres.v2.indexes.DistanceStrategy =


### [ScaNNQueryOptions](https://docs.cloud.google.com/python/docs/reference/langchain-google-alloydb-pg/latest/langchain_google_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)