Package Classes (0.7.0)

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

Classes

AlloyDBChatMessageHistory

Chat message history stored in an AlloyDB for PostgreSQL database.

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

API documentation for indexes.QueryOptions class.

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

API documentation for indexes.StrategyMixin class.

AlloyDBDocumentSaver

A class for saving langchain documents into a PostgreSQL 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.