Class QueryOptions (0.2.2)

QueryOptions(
    num_partitions: typing.Optional[int] = None,
    num_neighbors: int = 10,
    distance_measure: langchain_google_cloud_sql_mysql.indexes.DistanceMeasure = DistanceMeasure.L2_SQUARED,
    search_type: langchain_google_cloud_sql_mysql.indexes.SearchType = SearchType.KNN,
)

Holds configuration options for executing a search query.

Attributes

Name Description
num_partitions :noindex: Optional[int]
The number of partitions to divide the search space into. None means default partitioning.
num_neighbors :noindex: int
The number of nearest neighbors to retrieve. Default to 10.
search_type :noindex: SearchType
The type of search algorithm to use. Defaults to KNN.