Package Classes (0.6.0)

Summary of entries of Classes for langchain-google-alloydb-pg.

Classes

AlloyDBChatMessageHistory

Chat message history stored in an AlloyDB.

AlloyDBEngine

A class for managing connections to a AlloyDB database.

Column

Column(name: 'str', data_type: 'str', nullable: 'bool' = True)

BaseIndex

BaseIndex(name: Optional[str] = None, index_type: str = 'base', distance_strategy: langchain_google_alloydb_pg.indexes.DistanceStrategy =

DistanceStrategy

Enumerator of the Distance strategies.

ExactNearestNeighbor

ExactNearestNeighbor(name: Optional[str] = None, index_type: str = 'exactnearestneighbor', distance_strategy: langchain_google_alloydb_pg.indexes.DistanceStrategy =

HNSWIndex

HNSWIndex(name: Optional[str] = None, index_type: str = 'hnsw', distance_strategy: langchain_google_alloydb_pg.indexes.DistanceStrategy =

HNSWQueryOptions

HNSWQueryOptions(ef_search: int = 40)

IVFFlatIndex

IVFFlatIndex(name: Optional[str] = None, index_type: str = 'ivfflat', distance_strategy: langchain_google_alloydb_pg.indexes.DistanceStrategy =

IVFFlatQueryOptions

IVFFlatQueryOptions(probes: int = 1)

IVFIndex

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

IVFQueryOptions

IVFQueryOptions(probes: int = 1)

QueryOptions

QueryOptions()

ScaNNIndex

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

ScaNNQueryOptions

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

StrategyMixin

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

AlloyDBDocumentSaver

A class for saving langchain documents into a AlloyDB database table.

AlloyDBLoader

Load documents from AlloyDB`.

Each document represents one row of the result. The content_columns are written into the content_columns of the document. The metadata_columns are written into the metadata_columns of the document. By default, first columns is written into the page_content and everything else into the metadata.

AlloyDBVectorStore

Google AlloyDB Vector Store class

Modules

chat_message_history

API documentation for chat_message_history module.

engine

API documentation for engine module.

indexes

API documentation for indexes module.

loader

API documentation for loader module.

vectorstore

API documentation for vectorstore module.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.