SearchModelFactory.VectorizableImageUrlQuery Method

Definition

The query parameters to use for vector search when an url that represents an image value that needs to be vectorized is provided.

public static Azure.Search.Documents.Models.VectorizableImageUrlQuery VectorizableImageUrlQuery(int? kNearestNeighborsCount = default, string fieldsRaw = default, bool? exhaustive = default, double? oversampling = default, float? weight = default, Uri url = default);
static member VectorizableImageUrlQuery : Nullable<int> * string * Nullable<bool> * Nullable<double> * Nullable<single> * Uri -> Azure.Search.Documents.Models.VectorizableImageUrlQuery
Public Shared Function VectorizableImageUrlQuery (Optional kNearestNeighborsCount As Nullable(Of Integer) = Nothing, Optional fieldsRaw As String = Nothing, Optional exhaustive As Nullable(Of Boolean) = Nothing, Optional oversampling As Nullable(Of Double) = Nothing, Optional weight As Nullable(Of Single) = Nothing, Optional url As Uri = Nothing) As VectorizableImageUrlQuery

Parameters

kNearestNeighborsCount
Nullable<Int32>

Number of nearest neighbors to return as top hits.

fieldsRaw
String

Vector Fields of type Collection(Edm.Single) to be included in the vector searched.

exhaustive
Nullable<Boolean>

When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values.

oversampling
Nullable<Double>

Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This parameter is only permitted when a compression method is used on the underlying vector field.

weight
Nullable<Single>

Relative weight of the vector query when compared to other vector query and/or the text query within the same search request. This value is used when combining the results of multiple ranking lists produced by the different vector queries and/or the results retrieved through the text query. The higher the weight, the higher the documents that matched that query will be in the final ranking. Default is 1.0 and the value needs to be a positive number larger than zero.

url
Uri

The URL of an image to be vectorized to perform a vector search query.

Returns

A new VectorizableImageUrlQuery instance for mocking.

Applies to