QueryVectorsInput
¶
Source code in docs_src/capo_s3vectors/types/query_vectors_input.py
filter
instance-attribute
¶
filter: NotRequired[object]
Metadata filter to apply during the query. For more information about metadata keys, see Metadata filtering in the Amazon S3 User Guide.
index_arn
instance-attribute
¶
index_arn: NotRequired[IndexArn]
The ARN of the vector index that you want to query.
index_name
instance-attribute
¶
index_name: NotRequired[IndexName]
The name of the vector index that you want to query.
next_token
instance-attribute
¶
next_token: NotRequired[QueryVectorsNextToken]
Pagination token from a previous request. The value of this field is empty for an initial request.
query_mode
instance-attribute
¶
query_mode: NotRequired[IndexMode]
The mode to use to process the query. If you don't specify a query mode, the operation uses the mode that's currently configured for the vector index.
Valid values:
-
CLASSIC- Applies metadata filters during the vector search. You can't specifyCLASSICfor anENHANCEDindex. -
ENHANCED- Applies metadata filters before the vector search.
query_vector
instance-attribute
¶
query_vector: VectorData
The query vector. Ensure that the query vector has the same dimension as the dimension of the vector index that's being queried. For example, if your vector index contains vectors with 384 dimensions, your query vector must also have 384 dimensions.
return_distance
instance-attribute
¶
return_distance: bool
Indicates whether to include the computed distance in the response. The default value is false.
return_metadata
instance-attribute
¶
return_metadata: bool
Indicates whether to include metadata in the response. The default value is false.
vector_bucket_name
instance-attribute
¶
vector_bucket_name: NotRequired[VectorBucketName]
The name of the vector bucket that contains the vector index.