Class QueryOptions (0.3.0)

QueryOptions(
    num_partitions: typing.Optional[int] = None,
    num_neigrs: 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

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