Class HNSWIndex (0.5.0)

HNSWIndex(name: Optional[str] = None, index_type: str = 'hnsw', distance_strategy: langchain_google_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: langchain_google_alloydb_pg.indexes.DistanceStrategy =

Methods

index_options

index_options() -> str

Set index query options for vector store initialization.