Package version:

Interface VectorizableImageUrlQuery<TModel>

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

interface VectorizableImageUrlQuery<TModel> {
    exhaustive?: boolean;
    fields?: SearchFieldArray<TModel>;
    filterOverride?: string;
    kind: "imageUrl";
    kNearestNeighborsCount?: number;
    oversampling?: number;
    threshold?: VectorThreshold;
    url: string;
    weight?: number;
}

Type Parameters

  • TModel extends object

Hierarchy (view full)

Properties

exhaustive?: 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.

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

filterOverride?: string

The OData filter expression to apply to this specific vector query. If no filter expression is defined at the vector level, the expression defined in the top level filter parameter is used instead.

kind

Polymorphic discriminator, which specifies the different types this object can be

kNearestNeighborsCount?: number

Number of nearest neighbors to return as top hits.

oversampling?: number

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.

threshold?: VectorThreshold

The threshold used for vector queries. Note this can only be set if all 'fields' use the same similarity metric.

url: string

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

weight?: number

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.