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_texts
instance-attribute
¶
query_texts: NotRequired[QueryTextList]
Full-text queries for searchable metadata keys. Omit queryVector to run a full-text-only search, or provide both fields to run a hybrid search. Each entry must target a distinct searchable metadata key.
query_vector
instance-attribute
¶
query_vector: NotRequired[VectorData]
The query vector for vector similarity search. The query vector must have the same dimension as the vector index. For example, if the vector index has 384 dimensions, the query vector must also have 384 dimensions. You can omit this parameter when you supply queryTexts to perform a full-text-only search. A request must include queryVector, queryTexts, or both.
return_distance
instance-attribute
¶
return_distance: NotRequired[bool]
Indicates whether to include the computed distance in the response. The default value is false.
return_metadata
instance-attribute
¶
return_metadata: NotRequired[bool]
Indicates whether to include metadata in the response. The default value is false.
return_scores
instance-attribute
¶
return_scores: NotRequired[bool]
Indicates whether to include relevance scores in the response. Full-text-only results can include BM25 scores. Hybrid results can also include a Reciprocal Rank Fusion (RRF) score and vector distance. This setting doesn't add scores to vector-only requests. 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.