aws-sdk-s3vectors 1.32.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3vectors/client.rb +130 -21
- data/lib/aws-sdk-s3vectors/client_api.rb +86 -2
- data/lib/aws-sdk-s3vectors/types.rb +232 -14
- data/lib/aws-sdk-s3vectors.rb +1 -1
- data/sig/client.rbs +44 -2
- data/sig/types.rbs +60 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79b45fbd96553ed62d7d85d050bfc72a8fb637c453260d1175da4bf3ca462cb3
|
|
4
|
+
data.tar.gz: 4b45365f56ddca0d4396f41baf8d10b1a77bcded56d2d8b0b8d29e1bfbbf99ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52f6d86eff58e6055f7b39b0daf86a1097c3225dacbf92d5a657dd88556d27b7b5eadbca2a5b2a577dd3932644e2ba73226d8b38fd9e1f4725d94fa3a6b276ef
|
|
7
|
+
data.tar.gz: fc1fe3c08cba1b71e1a818e5c30bb87ca57a2a7bbba8b055609dab6dca7f0b372bc95e8a7b16f032697c9ed36b56ec9b232b0710336cd2e098b9283533f7d591
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.34.0 (2026-11-16)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon S3 Vectors now supports hybrid search, providing metadata text search along with vector search.
|
|
8
|
+
|
|
9
|
+
1.33.0 (2026-11-11)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.32.0 (2026-11-10)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.34.0
|
|
@@ -552,7 +552,14 @@ module Aws::S3Vectors
|
|
|
552
552
|
# dimension: 1, # required
|
|
553
553
|
# distance_metric: "euclidean", # required, accepts euclidean, cosine
|
|
554
554
|
# metadata_configuration: {
|
|
555
|
-
# non_filterable_metadata_keys: ["MetadataKey"],
|
|
555
|
+
# non_filterable_metadata_keys: ["MetadataKey"],
|
|
556
|
+
# text_search_configurations: [
|
|
557
|
+
# {
|
|
558
|
+
# metadata_key: "MetadataKey", # required
|
|
559
|
+
# language: "en", # accepts en, fr, es, pt, it, de, nl, zh, ja, ko
|
|
560
|
+
# status: "ACTIVE", # accepts ACTIVE, BUILDING
|
|
561
|
+
# },
|
|
562
|
+
# ],
|
|
556
563
|
# },
|
|
557
564
|
# encryption_configuration: {
|
|
558
565
|
# sse_type: "AES256", # accepts AES256, aws:kms
|
|
@@ -831,6 +838,10 @@ module Aws::S3Vectors
|
|
|
831
838
|
# resp.index.distance_metric #=> String, one of "euclidean", "cosine"
|
|
832
839
|
# resp.index.metadata_configuration.non_filterable_metadata_keys #=> Array
|
|
833
840
|
# resp.index.metadata_configuration.non_filterable_metadata_keys[0] #=> String
|
|
841
|
+
# resp.index.metadata_configuration.text_search_configurations #=> Array
|
|
842
|
+
# resp.index.metadata_configuration.text_search_configurations[0].metadata_key #=> String
|
|
843
|
+
# resp.index.metadata_configuration.text_search_configurations[0].language #=> String, one of "en", "fr", "es", "pt", "it", "de", "nl", "zh", "ja", "ko"
|
|
844
|
+
# resp.index.metadata_configuration.text_search_configurations[0].status #=> String, one of "ACTIVE", "BUILDING"
|
|
834
845
|
# resp.index.encryption_configuration.sse_type #=> String, one of "AES256", "aws:kms"
|
|
835
846
|
# resp.index.encryption_configuration.kms_key_arn #=> String
|
|
836
847
|
# resp.index.index_mode #=> String, one of "CLASSIC", "ENHANCED"
|
|
@@ -1425,11 +1436,18 @@ module Aws::S3Vectors
|
|
|
1425
1436
|
req.send_request(options)
|
|
1426
1437
|
end
|
|
1427
1438
|
|
|
1428
|
-
#
|
|
1429
|
-
#
|
|
1430
|
-
#
|
|
1431
|
-
#
|
|
1432
|
-
#
|
|
1439
|
+
# Returns matching vector keys from a vector index ranked by vector
|
|
1440
|
+
# similarity, full-text relevance, or both. Specify `queryVector` to
|
|
1441
|
+
# perform a vector search, specify `queryTexts` to perform a full-text
|
|
1442
|
+
# search, or specify both to perform a hybrid search. Full-text search
|
|
1443
|
+
# ranks results using BM25. Hybrid search combines the vector and
|
|
1444
|
+
# full-text rankings using Reciprocal Rank Fusion (RRF).
|
|
1445
|
+
#
|
|
1446
|
+
# Amazon S3 Vectors ranks results by distance for a vector-only search,
|
|
1447
|
+
# by BM25 score for a full-text-only search, and by RRF score for a
|
|
1448
|
+
# hybrid search. You can optionally include computed distances,
|
|
1449
|
+
# relevance scores, and vector metadata in the response. Full-text and
|
|
1450
|
+
# hybrid searches require a vector index in `ENHANCED` mode.
|
|
1433
1451
|
#
|
|
1434
1452
|
# To specify the vector index, you can either use both the vector bucket
|
|
1435
1453
|
# name and the vector index name, or use the vector index Amazon
|
|
@@ -1444,15 +1462,15 @@ module Aws::S3Vectors
|
|
|
1444
1462
|
# * With only `s3vectors:QueryVectors` permission, you can retrieve
|
|
1445
1463
|
# vector keys of approximate nearest neighbors and computed
|
|
1446
1464
|
# distances between these vectors. This permission is sufficient
|
|
1447
|
-
# only when you don't set
|
|
1448
|
-
# metadata (by keeping the
|
|
1449
|
-
# or not specified).
|
|
1465
|
+
# only when you don't set `queryTexts`, don't set any metadata
|
|
1466
|
+
# filters, and don't request metadata (by keeping the
|
|
1467
|
+
# `returnMetadata` parameter set to `false` or not specified).
|
|
1450
1468
|
#
|
|
1451
|
-
# *
|
|
1452
|
-
# you must have both
|
|
1453
|
-
# `s3vectors:GetVectors` permissions.
|
|
1454
|
-
#
|
|
1455
|
-
#
|
|
1469
|
+
# * To use `queryTexts`, a metadata filter, or `returnMetadata` set to
|
|
1470
|
+
# `true` with this operation, you must have both the
|
|
1471
|
+
# `s3vectors:QueryVectors` and `s3vectors:GetVectors` permissions.
|
|
1472
|
+
# If you use any of these options without the `s3vectors:GetVectors`
|
|
1473
|
+
# permission, Amazon S3 Vectors returns an `AccessDeniedException`.
|
|
1456
1474
|
#
|
|
1457
1475
|
# @option params [String] :vector_bucket_name
|
|
1458
1476
|
# The name of the vector bucket that contains the vector index.
|
|
@@ -1466,11 +1484,13 @@ module Aws::S3Vectors
|
|
|
1466
1484
|
# @option params [required, Integer] :top_k
|
|
1467
1485
|
# The number of results to return for each query.
|
|
1468
1486
|
#
|
|
1469
|
-
# @option params [
|
|
1470
|
-
# The query vector
|
|
1471
|
-
#
|
|
1472
|
-
#
|
|
1473
|
-
#
|
|
1487
|
+
# @option params [Types::VectorData] :query_vector
|
|
1488
|
+
# The query vector for vector similarity search. The query vector must
|
|
1489
|
+
# have the same dimension as the vector index. For example, if the
|
|
1490
|
+
# vector index has 384 dimensions, the query vector must also have 384
|
|
1491
|
+
# dimensions. You can omit this parameter when you supply `queryTexts`
|
|
1492
|
+
# to perform a full-text-only search. A request must include
|
|
1493
|
+
# `queryVector`, `queryTexts`, or both.
|
|
1474
1494
|
#
|
|
1475
1495
|
# @option params [Hash,Array,String,Numeric,Boolean] :filter
|
|
1476
1496
|
# Metadata filter to apply during the query. For more information about
|
|
@@ -1506,6 +1526,18 @@ module Aws::S3Vectors
|
|
|
1506
1526
|
# Indicates whether to include the computed distance in the response.
|
|
1507
1527
|
# The default value is `false`.
|
|
1508
1528
|
#
|
|
1529
|
+
# @option params [Array<Types::QueryText>] :query_texts
|
|
1530
|
+
# Full-text queries for searchable metadata keys. Omit `queryVector` to
|
|
1531
|
+
# run a full-text-only search, or provide both fields to run a hybrid
|
|
1532
|
+
# search. Each entry must target a distinct searchable metadata key.
|
|
1533
|
+
#
|
|
1534
|
+
# @option params [Boolean] :return_scores
|
|
1535
|
+
# Indicates whether to include relevance scores in the response.
|
|
1536
|
+
# Full-text-only results can include BM25 scores. Hybrid results can
|
|
1537
|
+
# also include a Reciprocal Rank Fusion (RRF) score and vector distance.
|
|
1538
|
+
# This setting doesn't add scores to vector-only requests. The default
|
|
1539
|
+
# value is `false`.
|
|
1540
|
+
#
|
|
1509
1541
|
# @option params [String] :next_token
|
|
1510
1542
|
# Pagination token from a previous request. The value of this field is
|
|
1511
1543
|
# empty for an initial request.
|
|
@@ -1525,7 +1557,7 @@ module Aws::S3Vectors
|
|
|
1525
1557
|
# index_name: "IndexName",
|
|
1526
1558
|
# index_arn: "IndexArn",
|
|
1527
1559
|
# top_k: 1, # required
|
|
1528
|
-
# query_vector: {
|
|
1560
|
+
# query_vector: {
|
|
1529
1561
|
# float32: [1.0],
|
|
1530
1562
|
# },
|
|
1531
1563
|
# filter: {
|
|
@@ -1533,6 +1565,13 @@ module Aws::S3Vectors
|
|
|
1533
1565
|
# query_mode: "CLASSIC", # accepts CLASSIC, ENHANCED
|
|
1534
1566
|
# return_metadata: false,
|
|
1535
1567
|
# return_distance: false,
|
|
1568
|
+
# query_texts: [
|
|
1569
|
+
# {
|
|
1570
|
+
# text: "QueryTextString", # required
|
|
1571
|
+
# metadata_key: "MetadataKey", # required
|
|
1572
|
+
# },
|
|
1573
|
+
# ],
|
|
1574
|
+
# return_scores: false,
|
|
1536
1575
|
# next_token: "QueryVectorsNextToken",
|
|
1537
1576
|
# })
|
|
1538
1577
|
#
|
|
@@ -1540,6 +1579,11 @@ module Aws::S3Vectors
|
|
|
1540
1579
|
#
|
|
1541
1580
|
# resp.vectors #=> Array
|
|
1542
1581
|
# resp.vectors[0].distance #=> Float
|
|
1582
|
+
# resp.vectors[0].scores.fused #=> Float
|
|
1583
|
+
# resp.vectors[0].scores.bm25_scores #=> Array
|
|
1584
|
+
# resp.vectors[0].scores.bm25_scores[0].metadata_key #=> String
|
|
1585
|
+
# resp.vectors[0].scores.bm25_scores[0].score #=> Float
|
|
1586
|
+
# resp.vectors[0].scores.vector_distance #=> Float
|
|
1543
1587
|
# resp.vectors[0].key #=> String
|
|
1544
1588
|
# resp.distance_metric #=> String, one of "euclidean", "cosine"
|
|
1545
1589
|
# resp.next_token #=> String
|
|
@@ -1708,6 +1752,71 @@ module Aws::S3Vectors
|
|
|
1708
1752
|
req.send_request(options)
|
|
1709
1753
|
end
|
|
1710
1754
|
|
|
1755
|
+
# Adds or deletes text search configurations on a vector index. Specify
|
|
1756
|
+
# either `add` or `delete`, but not both. The vector index must be in
|
|
1757
|
+
# `ENHANCED` mode.
|
|
1758
|
+
#
|
|
1759
|
+
# Permissions
|
|
1760
|
+
#
|
|
1761
|
+
# : You must have the `s3vectors:UpdateMetadataConfiguration` permission
|
|
1762
|
+
# to use this operation.
|
|
1763
|
+
#
|
|
1764
|
+
# @option params [String] :vector_bucket_name
|
|
1765
|
+
# The name of the vector bucket that contains the vector index.
|
|
1766
|
+
#
|
|
1767
|
+
# @option params [String] :index_name
|
|
1768
|
+
# The name of the vector index to update.
|
|
1769
|
+
#
|
|
1770
|
+
# @option params [String] :index_arn
|
|
1771
|
+
# The Amazon Resource Name (ARN) of the vector index to update.
|
|
1772
|
+
#
|
|
1773
|
+
# @option params [Types::MetadataConfigurationAdd] :add
|
|
1774
|
+
# Text search configurations to add to the vector index.
|
|
1775
|
+
#
|
|
1776
|
+
# @option params [Types::MetadataConfigurationDelete] :delete
|
|
1777
|
+
# Text search configurations to delete from the vector index.
|
|
1778
|
+
#
|
|
1779
|
+
# @return [Types::UpdateMetadataConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1780
|
+
#
|
|
1781
|
+
# * {Types::UpdateMetadataConfigurationOutput#index_arn #index_arn} => String
|
|
1782
|
+
#
|
|
1783
|
+
# @example Request syntax with placeholder values
|
|
1784
|
+
#
|
|
1785
|
+
# resp = client.update_metadata_configuration({
|
|
1786
|
+
# vector_bucket_name: "VectorBucketName",
|
|
1787
|
+
# index_name: "IndexName",
|
|
1788
|
+
# index_arn: "IndexArn",
|
|
1789
|
+
# add: {
|
|
1790
|
+
# text_search_configurations: [
|
|
1791
|
+
# {
|
|
1792
|
+
# metadata_key: "MetadataKey", # required
|
|
1793
|
+
# language: "en", # accepts en, fr, es, pt, it, de, nl, zh, ja, ko
|
|
1794
|
+
# status: "ACTIVE", # accepts ACTIVE, BUILDING
|
|
1795
|
+
# },
|
|
1796
|
+
# ],
|
|
1797
|
+
# },
|
|
1798
|
+
# delete: {
|
|
1799
|
+
# text_search_configurations: [
|
|
1800
|
+
# {
|
|
1801
|
+
# metadata_key: "MetadataKey", # required
|
|
1802
|
+
# },
|
|
1803
|
+
# ],
|
|
1804
|
+
# },
|
|
1805
|
+
# })
|
|
1806
|
+
#
|
|
1807
|
+
# @example Response structure
|
|
1808
|
+
#
|
|
1809
|
+
# resp.index_arn #=> String
|
|
1810
|
+
#
|
|
1811
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/UpdateMetadataConfiguration AWS API Documentation
|
|
1812
|
+
#
|
|
1813
|
+
# @overload update_metadata_configuration(params = {})
|
|
1814
|
+
# @param [Hash] params ({})
|
|
1815
|
+
def update_metadata_configuration(params = {}, options = {})
|
|
1816
|
+
req = build_request(:update_metadata_configuration, params)
|
|
1817
|
+
req.send_request(options)
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1711
1820
|
# @!endgroup
|
|
1712
1821
|
|
|
1713
1822
|
# @param params ({})
|
|
@@ -1726,7 +1835,7 @@ module Aws::S3Vectors
|
|
|
1726
1835
|
tracer: tracer
|
|
1727
1836
|
)
|
|
1728
1837
|
context[:gem_name] = 'aws-sdk-s3vectors'
|
|
1729
|
-
context[:gem_version] = '1.
|
|
1838
|
+
context[:gem_version] = '1.34.0'
|
|
1730
1839
|
Seahorse::Client::Request.new(handlers, context)
|
|
1731
1840
|
end
|
|
1732
1841
|
|
|
@@ -15,6 +15,9 @@ module Aws::S3Vectors
|
|
|
15
15
|
include Seahorse::Model
|
|
16
16
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
|
+
AnalyzerStatus = Shapes::StringShape.new(name: 'AnalyzerStatus')
|
|
19
|
+
Bm25Score = Shapes::StructureShape.new(name: 'Bm25Score')
|
|
20
|
+
Bm25ScoreList = Shapes::ListShape.new(name: 'Bm25ScoreList')
|
|
18
21
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
19
22
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
20
23
|
CreateIndexInput = Shapes::StructureShape.new(name: 'CreateIndexInput')
|
|
@@ -60,6 +63,7 @@ module Aws::S3Vectors
|
|
|
60
63
|
KmsInvalidStateException = Shapes::StructureShape.new(name: 'KmsInvalidStateException')
|
|
61
64
|
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
|
62
65
|
KmsNotFoundException = Shapes::StructureShape.new(name: 'KmsNotFoundException')
|
|
66
|
+
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
|
63
67
|
ListIndexesInput = Shapes::StructureShape.new(name: 'ListIndexesInput')
|
|
64
68
|
ListIndexesMaxResults = Shapes::IntegerShape.new(name: 'ListIndexesMaxResults')
|
|
65
69
|
ListIndexesNextToken = Shapes::StringShape.new(name: 'ListIndexesNextToken')
|
|
@@ -83,6 +87,10 @@ module Aws::S3Vectors
|
|
|
83
87
|
ListVectorsSegmentCount = Shapes::IntegerShape.new(name: 'ListVectorsSegmentCount')
|
|
84
88
|
ListVectorsSegmentIndex = Shapes::IntegerShape.new(name: 'ListVectorsSegmentIndex')
|
|
85
89
|
MetadataConfiguration = Shapes::StructureShape.new(name: 'MetadataConfiguration')
|
|
90
|
+
MetadataConfigurationAdd = Shapes::StructureShape.new(name: 'MetadataConfigurationAdd')
|
|
91
|
+
MetadataConfigurationAddTextSearchConfigurationsList = Shapes::ListShape.new(name: 'MetadataConfigurationAddTextSearchConfigurationsList')
|
|
92
|
+
MetadataConfigurationDelete = Shapes::StructureShape.new(name: 'MetadataConfigurationDelete')
|
|
93
|
+
MetadataConfigurationTextSearchConfigurationsList = Shapes::ListShape.new(name: 'MetadataConfigurationTextSearchConfigurationsList')
|
|
86
94
|
MetadataKey = Shapes::StringShape.new(name: 'MetadataKey')
|
|
87
95
|
NonFilterableMetadataKeys = Shapes::ListShape.new(name: 'NonFilterableMetadataKeys')
|
|
88
96
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
|
@@ -95,6 +103,10 @@ module Aws::S3Vectors
|
|
|
95
103
|
PutVectorsInputList = Shapes::ListShape.new(name: 'PutVectorsInputList')
|
|
96
104
|
PutVectorsOutput = Shapes::StructureShape.new(name: 'PutVectorsOutput')
|
|
97
105
|
QueryOutputVector = Shapes::StructureShape.new(name: 'QueryOutputVector')
|
|
106
|
+
QueryScores = Shapes::StructureShape.new(name: 'QueryScores')
|
|
107
|
+
QueryText = Shapes::StructureShape.new(name: 'QueryText')
|
|
108
|
+
QueryTextList = Shapes::ListShape.new(name: 'QueryTextList')
|
|
109
|
+
QueryTextString = Shapes::StringShape.new(name: 'QueryTextString')
|
|
98
110
|
QueryVectorsInput = Shapes::StructureShape.new(name: 'QueryVectorsInput')
|
|
99
111
|
QueryVectorsNextToken = Shapes::StringShape.new(name: 'QueryVectorsNextToken')
|
|
100
112
|
QueryVectorsOutput = Shapes::StructureShape.new(name: 'QueryVectorsOutput')
|
|
@@ -111,6 +123,9 @@ module Aws::S3Vectors
|
|
|
111
123
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
|
112
124
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
113
125
|
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
|
126
|
+
TextSearchConfiguration = Shapes::StructureShape.new(name: 'TextSearchConfiguration')
|
|
127
|
+
TextSearchConfigurationKey = Shapes::StructureShape.new(name: 'TextSearchConfigurationKey')
|
|
128
|
+
TextSearchConfigurationKeys = Shapes::ListShape.new(name: 'TextSearchConfigurationKeys')
|
|
114
129
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
|
115
130
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
|
116
131
|
TopK = Shapes::IntegerShape.new(name: 'TopK')
|
|
@@ -118,6 +133,8 @@ module Aws::S3Vectors
|
|
|
118
133
|
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
|
119
134
|
UpdateIndexModeInput = Shapes::StructureShape.new(name: 'UpdateIndexModeInput')
|
|
120
135
|
UpdateIndexModeOutput = Shapes::StructureShape.new(name: 'UpdateIndexModeOutput')
|
|
136
|
+
UpdateMetadataConfigurationInput = Shapes::StructureShape.new(name: 'UpdateMetadataConfigurationInput')
|
|
137
|
+
UpdateMetadataConfigurationOutput = Shapes::StructureShape.new(name: 'UpdateMetadataConfigurationOutput')
|
|
121
138
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
122
139
|
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
123
140
|
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
@@ -133,6 +150,12 @@ module Aws::S3Vectors
|
|
|
133
150
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
|
134
151
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
135
152
|
|
|
153
|
+
Bm25Score.add_member(:metadata_key, Shapes::ShapeRef.new(shape: MetadataKey, required: true, location_name: "metadataKey"))
|
|
154
|
+
Bm25Score.add_member(:score, Shapes::ShapeRef.new(shape: Float, required: true, location_name: "score"))
|
|
155
|
+
Bm25Score.struct_class = Types::Bm25Score
|
|
156
|
+
|
|
157
|
+
Bm25ScoreList.member = Shapes::ShapeRef.new(shape: Bm25Score)
|
|
158
|
+
|
|
136
159
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
|
137
160
|
ConflictException.struct_class = Types::ConflictException
|
|
138
161
|
|
|
@@ -320,9 +343,20 @@ module Aws::S3Vectors
|
|
|
320
343
|
|
|
321
344
|
ListVectorsOutputList.member = Shapes::ShapeRef.new(shape: ListOutputVector)
|
|
322
345
|
|
|
323
|
-
MetadataConfiguration.add_member(:non_filterable_metadata_keys, Shapes::ShapeRef.new(shape: NonFilterableMetadataKeys,
|
|
346
|
+
MetadataConfiguration.add_member(:non_filterable_metadata_keys, Shapes::ShapeRef.new(shape: NonFilterableMetadataKeys, location_name: "nonFilterableMetadataKeys"))
|
|
347
|
+
MetadataConfiguration.add_member(:text_search_configurations, Shapes::ShapeRef.new(shape: MetadataConfigurationTextSearchConfigurationsList, location_name: "textSearchConfigurations"))
|
|
324
348
|
MetadataConfiguration.struct_class = Types::MetadataConfiguration
|
|
325
349
|
|
|
350
|
+
MetadataConfigurationAdd.add_member(:text_search_configurations, Shapes::ShapeRef.new(shape: MetadataConfigurationAddTextSearchConfigurationsList, location_name: "textSearchConfigurations"))
|
|
351
|
+
MetadataConfigurationAdd.struct_class = Types::MetadataConfigurationAdd
|
|
352
|
+
|
|
353
|
+
MetadataConfigurationAddTextSearchConfigurationsList.member = Shapes::ShapeRef.new(shape: TextSearchConfiguration)
|
|
354
|
+
|
|
355
|
+
MetadataConfigurationDelete.add_member(:text_search_configurations, Shapes::ShapeRef.new(shape: TextSearchConfigurationKeys, location_name: "textSearchConfigurations"))
|
|
356
|
+
MetadataConfigurationDelete.struct_class = Types::MetadataConfigurationDelete
|
|
357
|
+
|
|
358
|
+
MetadataConfigurationTextSearchConfigurationsList.member = Shapes::ShapeRef.new(shape: TextSearchConfiguration)
|
|
359
|
+
|
|
326
360
|
NonFilterableMetadataKeys.member = Shapes::ShapeRef.new(shape: MetadataKey)
|
|
327
361
|
|
|
328
362
|
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
|
@@ -358,19 +392,33 @@ module Aws::S3Vectors
|
|
|
358
392
|
PutVectorsOutput.struct_class = Types::PutVectorsOutput
|
|
359
393
|
|
|
360
394
|
QueryOutputVector.add_member(:distance, Shapes::ShapeRef.new(shape: Float, location_name: "distance"))
|
|
395
|
+
QueryOutputVector.add_member(:scores, Shapes::ShapeRef.new(shape: QueryScores, location_name: "scores"))
|
|
361
396
|
QueryOutputVector.add_member(:key, Shapes::ShapeRef.new(shape: VectorKey, required: true, location_name: "key"))
|
|
362
397
|
QueryOutputVector.add_member(:metadata, Shapes::ShapeRef.new(shape: VectorMetadata, location_name: "metadata"))
|
|
363
398
|
QueryOutputVector.struct_class = Types::QueryOutputVector
|
|
364
399
|
|
|
400
|
+
QueryScores.add_member(:fused, Shapes::ShapeRef.new(shape: Float, location_name: "fused"))
|
|
401
|
+
QueryScores.add_member(:bm25_scores, Shapes::ShapeRef.new(shape: Bm25ScoreList, location_name: "bm25Scores"))
|
|
402
|
+
QueryScores.add_member(:vector_distance, Shapes::ShapeRef.new(shape: Float, location_name: "vectorDistance"))
|
|
403
|
+
QueryScores.struct_class = Types::QueryScores
|
|
404
|
+
|
|
405
|
+
QueryText.add_member(:text, Shapes::ShapeRef.new(shape: QueryTextString, required: true, location_name: "text"))
|
|
406
|
+
QueryText.add_member(:metadata_key, Shapes::ShapeRef.new(shape: MetadataKey, required: true, location_name: "metadataKey"))
|
|
407
|
+
QueryText.struct_class = Types::QueryText
|
|
408
|
+
|
|
409
|
+
QueryTextList.member = Shapes::ShapeRef.new(shape: QueryText)
|
|
410
|
+
|
|
365
411
|
QueryVectorsInput.add_member(:vector_bucket_name, Shapes::ShapeRef.new(shape: VectorBucketName, location_name: "vectorBucketName"))
|
|
366
412
|
QueryVectorsInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "indexName"))
|
|
367
413
|
QueryVectorsInput.add_member(:index_arn, Shapes::ShapeRef.new(shape: IndexArn, location_name: "indexArn"))
|
|
368
414
|
QueryVectorsInput.add_member(:top_k, Shapes::ShapeRef.new(shape: TopK, required: true, location_name: "topK"))
|
|
369
|
-
QueryVectorsInput.add_member(:query_vector, Shapes::ShapeRef.new(shape: VectorData,
|
|
415
|
+
QueryVectorsInput.add_member(:query_vector, Shapes::ShapeRef.new(shape: VectorData, location_name: "queryVector"))
|
|
370
416
|
QueryVectorsInput.add_member(:filter, Shapes::ShapeRef.new(shape: Document, location_name: "filter"))
|
|
371
417
|
QueryVectorsInput.add_member(:query_mode, Shapes::ShapeRef.new(shape: IndexMode, location_name: "queryMode"))
|
|
372
418
|
QueryVectorsInput.add_member(:return_metadata, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnMetadata"))
|
|
373
419
|
QueryVectorsInput.add_member(:return_distance, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnDistance"))
|
|
420
|
+
QueryVectorsInput.add_member(:query_texts, Shapes::ShapeRef.new(shape: QueryTextList, location_name: "queryTexts"))
|
|
421
|
+
QueryVectorsInput.add_member(:return_scores, Shapes::ShapeRef.new(shape: Boolean, location_name: "returnScores"))
|
|
374
422
|
QueryVectorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: QueryVectorsNextToken, location_name: "nextToken"))
|
|
375
423
|
QueryVectorsInput.struct_class = Types::QueryVectorsInput
|
|
376
424
|
|
|
@@ -401,6 +449,16 @@ module Aws::S3Vectors
|
|
|
401
449
|
TagsMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
|
402
450
|
TagsMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
|
403
451
|
|
|
452
|
+
TextSearchConfiguration.add_member(:metadata_key, Shapes::ShapeRef.new(shape: MetadataKey, required: true, location_name: "metadataKey"))
|
|
453
|
+
TextSearchConfiguration.add_member(:language, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "language"))
|
|
454
|
+
TextSearchConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: AnalyzerStatus, location_name: "status"))
|
|
455
|
+
TextSearchConfiguration.struct_class = Types::TextSearchConfiguration
|
|
456
|
+
|
|
457
|
+
TextSearchConfigurationKey.add_member(:metadata_key, Shapes::ShapeRef.new(shape: MetadataKey, required: true, location_name: "metadataKey"))
|
|
458
|
+
TextSearchConfigurationKey.struct_class = Types::TextSearchConfigurationKey
|
|
459
|
+
|
|
460
|
+
TextSearchConfigurationKeys.member = Shapes::ShapeRef.new(shape: TextSearchConfigurationKey)
|
|
461
|
+
|
|
404
462
|
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
|
405
463
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
|
406
464
|
|
|
@@ -418,6 +476,16 @@ module Aws::S3Vectors
|
|
|
418
476
|
|
|
419
477
|
UpdateIndexModeOutput.struct_class = Types::UpdateIndexModeOutput
|
|
420
478
|
|
|
479
|
+
UpdateMetadataConfigurationInput.add_member(:vector_bucket_name, Shapes::ShapeRef.new(shape: VectorBucketName, location_name: "vectorBucketName"))
|
|
480
|
+
UpdateMetadataConfigurationInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "indexName"))
|
|
481
|
+
UpdateMetadataConfigurationInput.add_member(:index_arn, Shapes::ShapeRef.new(shape: IndexArn, location_name: "indexArn"))
|
|
482
|
+
UpdateMetadataConfigurationInput.add_member(:add, Shapes::ShapeRef.new(shape: MetadataConfigurationAdd, location_name: "add"))
|
|
483
|
+
UpdateMetadataConfigurationInput.add_member(:delete, Shapes::ShapeRef.new(shape: MetadataConfigurationDelete, location_name: "delete"))
|
|
484
|
+
UpdateMetadataConfigurationInput.struct_class = Types::UpdateMetadataConfigurationInput
|
|
485
|
+
|
|
486
|
+
UpdateMetadataConfigurationOutput.add_member(:index_arn, Shapes::ShapeRef.new(shape: IndexArn, required: true, location_name: "indexArn"))
|
|
487
|
+
UpdateMetadataConfigurationOutput.struct_class = Types::UpdateMetadataConfigurationOutput
|
|
488
|
+
|
|
421
489
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
422
490
|
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
|
423
491
|
ValidationException.struct_class = Types::ValidationException
|
|
@@ -824,6 +892,22 @@ module Aws::S3Vectors
|
|
|
824
892
|
o.errors << Shapes::ShapeRef.new(shape: RequestTimeoutException)
|
|
825
893
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
826
894
|
end)
|
|
895
|
+
|
|
896
|
+
api.add_operation(:update_metadata_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
897
|
+
o.name = "UpdateMetadataConfiguration"
|
|
898
|
+
o.http_method = "POST"
|
|
899
|
+
o.http_request_uri = "/UpdateMetadataConfiguration"
|
|
900
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateMetadataConfigurationInput)
|
|
901
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateMetadataConfigurationOutput)
|
|
902
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
903
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
904
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
905
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
906
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
907
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestTimeoutException)
|
|
908
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
909
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
910
|
+
end)
|
|
827
911
|
end
|
|
828
912
|
|
|
829
913
|
end
|
|
@@ -23,6 +23,25 @@ module Aws::S3Vectors
|
|
|
23
23
|
include Aws::Structure
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
# The raw BM25 relevance score for a single searchable metadata key.
|
|
27
|
+
#
|
|
28
|
+
# @!attribute [rw] metadata_key
|
|
29
|
+
# The searchable metadata key that the score applies to.
|
|
30
|
+
# @return [String]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [rw] score
|
|
33
|
+
# The BM25 relevance score.
|
|
34
|
+
# @return [Float]
|
|
35
|
+
#
|
|
36
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/Bm25Score AWS API Documentation
|
|
37
|
+
#
|
|
38
|
+
class Bm25Score < Struct.new(
|
|
39
|
+
:metadata_key,
|
|
40
|
+
:score)
|
|
41
|
+
SENSITIVE = []
|
|
42
|
+
include Aws::Structure
|
|
43
|
+
end
|
|
44
|
+
|
|
26
45
|
# The request failed because a vector bucket name or a vector index name
|
|
27
46
|
# already exists. Vector bucket names must be unique within your Amazon
|
|
28
47
|
# Web Services account for each Amazon Web Services Region. Vector index
|
|
@@ -916,11 +935,11 @@ module Aws::S3Vectors
|
|
|
916
935
|
#
|
|
917
936
|
# @!attribute [rw] non_filterable_metadata_keys
|
|
918
937
|
# Non-filterable metadata keys allow you to enrich vectors with
|
|
919
|
-
# additional context during storage and retrieval.
|
|
920
|
-
#
|
|
921
|
-
#
|
|
922
|
-
#
|
|
923
|
-
#
|
|
938
|
+
# additional context during storage and retrieval. You can't use
|
|
939
|
+
# these keys in metadata filters. You can still make a non-filterable
|
|
940
|
+
# key full-text searchable by configuring it separately in
|
|
941
|
+
# `textSearchConfigurations`. You can retrieve non-filterable metadata
|
|
942
|
+
# keys after finding the vectors. For more information about
|
|
924
943
|
# non-filterable metadata keys, see [Vectors][1] and [Limitations and
|
|
925
944
|
# restrictions][2] in the *Amazon S3 User Guide*.
|
|
926
945
|
#
|
|
@@ -930,10 +949,44 @@ module Aws::S3Vectors
|
|
|
930
949
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-limitations.html
|
|
931
950
|
# @return [Array<String>]
|
|
932
951
|
#
|
|
952
|
+
# @!attribute [rw] text_search_configurations
|
|
953
|
+
# Full-text search configurations for searchable metadata keys.
|
|
954
|
+
# @return [Array<Types::TextSearchConfiguration>]
|
|
955
|
+
#
|
|
933
956
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/MetadataConfiguration AWS API Documentation
|
|
934
957
|
#
|
|
935
958
|
class MetadataConfiguration < Struct.new(
|
|
936
|
-
:non_filterable_metadata_keys
|
|
959
|
+
:non_filterable_metadata_keys,
|
|
960
|
+
:text_search_configurations)
|
|
961
|
+
SENSITIVE = []
|
|
962
|
+
include Aws::Structure
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Text search configurations to add to a vector index.
|
|
966
|
+
#
|
|
967
|
+
# @!attribute [rw] text_search_configurations
|
|
968
|
+
# Text search configurations to add. Amazon S3 Vectors begins building
|
|
969
|
+
# the corresponding full-text indexes after the update is accepted.
|
|
970
|
+
# @return [Array<Types::TextSearchConfiguration>]
|
|
971
|
+
#
|
|
972
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/MetadataConfigurationAdd AWS API Documentation
|
|
973
|
+
#
|
|
974
|
+
class MetadataConfigurationAdd < Struct.new(
|
|
975
|
+
:text_search_configurations)
|
|
976
|
+
SENSITIVE = []
|
|
977
|
+
include Aws::Structure
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
# Text search configurations to delete from a vector index.
|
|
981
|
+
#
|
|
982
|
+
# @!attribute [rw] text_search_configurations
|
|
983
|
+
# Searchable metadata keys whose text search configurations to delete.
|
|
984
|
+
# @return [Array<Types::TextSearchConfigurationKey>]
|
|
985
|
+
#
|
|
986
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/MetadataConfigurationDelete AWS API Documentation
|
|
987
|
+
#
|
|
988
|
+
class MetadataConfigurationDelete < Struct.new(
|
|
989
|
+
:text_search_configurations)
|
|
937
990
|
SENSITIVE = []
|
|
938
991
|
include Aws::Structure
|
|
939
992
|
end
|
|
@@ -1082,15 +1135,21 @@ module Aws::S3Vectors
|
|
|
1082
1135
|
#
|
|
1083
1136
|
class PutVectorsOutput < Aws::EmptyStructure; end
|
|
1084
1137
|
|
|
1085
|
-
#
|
|
1138
|
+
# Contains the key and optional distance, relevance scores, and metadata
|
|
1139
|
+
# for a vector returned by the `QueryVectors` operation.
|
|
1086
1140
|
#
|
|
1087
1141
|
# @!attribute [rw] distance
|
|
1088
1142
|
# The measure of similarity between the vector in the response and the
|
|
1089
1143
|
# query vector.
|
|
1090
1144
|
# @return [Float]
|
|
1091
1145
|
#
|
|
1146
|
+
# @!attribute [rw] scores
|
|
1147
|
+
# The relevance scores for a full-text-only or hybrid result, when
|
|
1148
|
+
# requested through `returnScores`.
|
|
1149
|
+
# @return [Types::QueryScores]
|
|
1150
|
+
#
|
|
1092
1151
|
# @!attribute [rw] key
|
|
1093
|
-
# The key of the vector
|
|
1152
|
+
# The key of the matching vector.
|
|
1094
1153
|
# @return [String]
|
|
1095
1154
|
#
|
|
1096
1155
|
# @!attribute [rw] metadata
|
|
@@ -1101,12 +1160,59 @@ module Aws::S3Vectors
|
|
|
1101
1160
|
#
|
|
1102
1161
|
class QueryOutputVector < Struct.new(
|
|
1103
1162
|
:distance,
|
|
1163
|
+
:scores,
|
|
1104
1164
|
:key,
|
|
1105
1165
|
:metadata)
|
|
1106
1166
|
SENSITIVE = []
|
|
1107
1167
|
include Aws::Structure
|
|
1108
1168
|
end
|
|
1109
1169
|
|
|
1170
|
+
# Relevance scores for a full-text-only or hybrid search result.
|
|
1171
|
+
#
|
|
1172
|
+
# @!attribute [rw] fused
|
|
1173
|
+
# The Reciprocal Rank Fusion (RRF) score that combines the vector and
|
|
1174
|
+
# full-text rankings. This field is returned only for hybrid requests.
|
|
1175
|
+
# @return [Float]
|
|
1176
|
+
#
|
|
1177
|
+
# @!attribute [rw] bm25_scores
|
|
1178
|
+
# The BM25 scores for the searchable metadata keys that the result
|
|
1179
|
+
# matched.
|
|
1180
|
+
# @return [Array<Types::Bm25Score>]
|
|
1181
|
+
#
|
|
1182
|
+
# @!attribute [rw] vector_distance
|
|
1183
|
+
# The distance from the query vector. This field is returned when a
|
|
1184
|
+
# hybrid result matches the vector search.
|
|
1185
|
+
# @return [Float]
|
|
1186
|
+
#
|
|
1187
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/QueryScores AWS API Documentation
|
|
1188
|
+
#
|
|
1189
|
+
class QueryScores < Struct.new(
|
|
1190
|
+
:fused,
|
|
1191
|
+
:bm25_scores,
|
|
1192
|
+
:vector_distance)
|
|
1193
|
+
SENSITIVE = []
|
|
1194
|
+
include Aws::Structure
|
|
1195
|
+
end
|
|
1196
|
+
|
|
1197
|
+
# A full-text search query for a single metadata key.
|
|
1198
|
+
#
|
|
1199
|
+
# @!attribute [rw] text
|
|
1200
|
+
# The full-text query string.
|
|
1201
|
+
# @return [String]
|
|
1202
|
+
#
|
|
1203
|
+
# @!attribute [rw] metadata_key
|
|
1204
|
+
# The searchable metadata key to query.
|
|
1205
|
+
# @return [String]
|
|
1206
|
+
#
|
|
1207
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/QueryText AWS API Documentation
|
|
1208
|
+
#
|
|
1209
|
+
class QueryText < Struct.new(
|
|
1210
|
+
:text,
|
|
1211
|
+
:metadata_key)
|
|
1212
|
+
SENSITIVE = []
|
|
1213
|
+
include Aws::Structure
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1110
1216
|
# @!attribute [rw] vector_bucket_name
|
|
1111
1217
|
# The name of the vector bucket that contains the vector index.
|
|
1112
1218
|
# @return [String]
|
|
@@ -1124,10 +1230,12 @@ module Aws::S3Vectors
|
|
|
1124
1230
|
# @return [Integer]
|
|
1125
1231
|
#
|
|
1126
1232
|
# @!attribute [rw] query_vector
|
|
1127
|
-
# The query vector
|
|
1128
|
-
#
|
|
1129
|
-
#
|
|
1130
|
-
# dimensions
|
|
1233
|
+
# The query vector for vector similarity search. The query vector must
|
|
1234
|
+
# have the same dimension as the vector index. For example, if the
|
|
1235
|
+
# vector index has 384 dimensions, the query vector must also have 384
|
|
1236
|
+
# dimensions. You can omit this parameter when you supply `queryTexts`
|
|
1237
|
+
# to perform a full-text-only search. A request must include
|
|
1238
|
+
# `queryVector`, `queryTexts`, or both.
|
|
1131
1239
|
# @return [Types::VectorData]
|
|
1132
1240
|
#
|
|
1133
1241
|
# @!attribute [rw] filter
|
|
@@ -1163,6 +1271,21 @@ module Aws::S3Vectors
|
|
|
1163
1271
|
# The default value is `false`.
|
|
1164
1272
|
# @return [Boolean]
|
|
1165
1273
|
#
|
|
1274
|
+
# @!attribute [rw] query_texts
|
|
1275
|
+
# Full-text queries for searchable metadata keys. Omit `queryVector`
|
|
1276
|
+
# to run a full-text-only search, or provide both fields to run a
|
|
1277
|
+
# hybrid search. Each entry must target a distinct searchable metadata
|
|
1278
|
+
# key.
|
|
1279
|
+
# @return [Array<Types::QueryText>]
|
|
1280
|
+
#
|
|
1281
|
+
# @!attribute [rw] return_scores
|
|
1282
|
+
# Indicates whether to include relevance scores in the response.
|
|
1283
|
+
# Full-text-only results can include BM25 scores. Hybrid results can
|
|
1284
|
+
# also include a Reciprocal Rank Fusion (RRF) score and vector
|
|
1285
|
+
# distance. This setting doesn't add scores to vector-only requests.
|
|
1286
|
+
# The default value is `false`.
|
|
1287
|
+
# @return [Boolean]
|
|
1288
|
+
#
|
|
1166
1289
|
# @!attribute [rw] next_token
|
|
1167
1290
|
# Pagination token from a previous request. The value of this field is
|
|
1168
1291
|
# empty for an initial request.
|
|
@@ -1180,13 +1303,17 @@ module Aws::S3Vectors
|
|
|
1180
1303
|
:query_mode,
|
|
1181
1304
|
:return_metadata,
|
|
1182
1305
|
:return_distance,
|
|
1306
|
+
:query_texts,
|
|
1307
|
+
:return_scores,
|
|
1183
1308
|
:next_token)
|
|
1184
|
-
SENSITIVE = []
|
|
1309
|
+
SENSITIVE = [:query_texts]
|
|
1185
1310
|
include Aws::Structure
|
|
1186
1311
|
end
|
|
1187
1312
|
|
|
1188
1313
|
# @!attribute [rw] vectors
|
|
1189
|
-
# The
|
|
1314
|
+
# The matching vector results in ranked order. Results are ranked by
|
|
1315
|
+
# vector distance for a vector-only search, by BM25 relevance for a
|
|
1316
|
+
# full-text-only search, and by RRF score for a hybrid search.
|
|
1190
1317
|
# @return [Array<Types::QueryOutputVector>]
|
|
1191
1318
|
#
|
|
1192
1319
|
# @!attribute [rw] distance_metric
|
|
@@ -1279,6 +1406,53 @@ module Aws::S3Vectors
|
|
|
1279
1406
|
#
|
|
1280
1407
|
class TagResourceOutput < Aws::EmptyStructure; end
|
|
1281
1408
|
|
|
1409
|
+
# A full-text search configuration for a single metadata key.
|
|
1410
|
+
#
|
|
1411
|
+
# @!attribute [rw] metadata_key
|
|
1412
|
+
# The metadata key to make full-text searchable.
|
|
1413
|
+
# @return [String]
|
|
1414
|
+
#
|
|
1415
|
+
# @!attribute [rw] language
|
|
1416
|
+
# The language that the text search analyzer uses. Valid values are
|
|
1417
|
+
# `en` (English), `fr` (French), `es` (Spanish), `pt` (Portuguese),
|
|
1418
|
+
# `it` (Italian), `de` (German), `nl` (Dutch), `zh` (Chinese), `ja`
|
|
1419
|
+
# (Japanese), and `ko` (Korean). If you don't specify a language,
|
|
1420
|
+
# Amazon S3 Vectors uses the default standard analyzer.
|
|
1421
|
+
# @return [String]
|
|
1422
|
+
#
|
|
1423
|
+
# @!attribute [rw] status
|
|
1424
|
+
# The backfill status of the text search configuration. Valid values
|
|
1425
|
+
# are `ACTIVE`, which indicates that the analyzer is built and serving
|
|
1426
|
+
# queries, and `BUILDING`, which indicates that the analyzer is being
|
|
1427
|
+
# backfilled and isn't yet serving queries. This field is returned by
|
|
1428
|
+
# `GetIndex`.
|
|
1429
|
+
# @return [String]
|
|
1430
|
+
#
|
|
1431
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/TextSearchConfiguration AWS API Documentation
|
|
1432
|
+
#
|
|
1433
|
+
class TextSearchConfiguration < Struct.new(
|
|
1434
|
+
:metadata_key,
|
|
1435
|
+
:language,
|
|
1436
|
+
:status)
|
|
1437
|
+
SENSITIVE = []
|
|
1438
|
+
include Aws::Structure
|
|
1439
|
+
end
|
|
1440
|
+
|
|
1441
|
+
# A searchable metadata key that identifies a text search configuration.
|
|
1442
|
+
#
|
|
1443
|
+
# @!attribute [rw] metadata_key
|
|
1444
|
+
# The searchable metadata key whose text search configuration to
|
|
1445
|
+
# delete.
|
|
1446
|
+
# @return [String]
|
|
1447
|
+
#
|
|
1448
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/TextSearchConfigurationKey AWS API Documentation
|
|
1449
|
+
#
|
|
1450
|
+
class TextSearchConfigurationKey < Struct.new(
|
|
1451
|
+
:metadata_key)
|
|
1452
|
+
SENSITIVE = []
|
|
1453
|
+
include Aws::Structure
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1282
1456
|
# The request was denied due to request throttling.
|
|
1283
1457
|
#
|
|
1284
1458
|
# @!attribute [rw] message
|
|
@@ -1360,6 +1534,50 @@ module Aws::S3Vectors
|
|
|
1360
1534
|
#
|
|
1361
1535
|
class UpdateIndexModeOutput < Aws::EmptyStructure; end
|
|
1362
1536
|
|
|
1537
|
+
# @!attribute [rw] vector_bucket_name
|
|
1538
|
+
# The name of the vector bucket that contains the vector index.
|
|
1539
|
+
# @return [String]
|
|
1540
|
+
#
|
|
1541
|
+
# @!attribute [rw] index_name
|
|
1542
|
+
# The name of the vector index to update.
|
|
1543
|
+
# @return [String]
|
|
1544
|
+
#
|
|
1545
|
+
# @!attribute [rw] index_arn
|
|
1546
|
+
# The Amazon Resource Name (ARN) of the vector index to update.
|
|
1547
|
+
# @return [String]
|
|
1548
|
+
#
|
|
1549
|
+
# @!attribute [rw] add
|
|
1550
|
+
# Text search configurations to add to the vector index.
|
|
1551
|
+
# @return [Types::MetadataConfigurationAdd]
|
|
1552
|
+
#
|
|
1553
|
+
# @!attribute [rw] delete
|
|
1554
|
+
# Text search configurations to delete from the vector index.
|
|
1555
|
+
# @return [Types::MetadataConfigurationDelete]
|
|
1556
|
+
#
|
|
1557
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/UpdateMetadataConfigurationInput AWS API Documentation
|
|
1558
|
+
#
|
|
1559
|
+
class UpdateMetadataConfigurationInput < Struct.new(
|
|
1560
|
+
:vector_bucket_name,
|
|
1561
|
+
:index_name,
|
|
1562
|
+
:index_arn,
|
|
1563
|
+
:add,
|
|
1564
|
+
:delete)
|
|
1565
|
+
SENSITIVE = []
|
|
1566
|
+
include Aws::Structure
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# @!attribute [rw] index_arn
|
|
1570
|
+
# The Amazon Resource Name (ARN) of the updated vector index.
|
|
1571
|
+
# @return [String]
|
|
1572
|
+
#
|
|
1573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3vectors-2025-07-15/UpdateMetadataConfigurationOutput AWS API Documentation
|
|
1574
|
+
#
|
|
1575
|
+
class UpdateMetadataConfigurationOutput < Struct.new(
|
|
1576
|
+
:index_arn)
|
|
1577
|
+
SENSITIVE = []
|
|
1578
|
+
include Aws::Structure
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1363
1581
|
# The requested action isn't valid.
|
|
1364
1582
|
#
|
|
1365
1583
|
# @!attribute [rw] message
|
data/lib/aws-sdk-s3vectors.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -92,7 +92,14 @@ module Aws
|
|
|
92
92
|
dimension: ::Integer,
|
|
93
93
|
distance_metric: ("euclidean" | "cosine"),
|
|
94
94
|
?metadata_configuration: {
|
|
95
|
-
non_filterable_metadata_keys: Array[::String]
|
|
95
|
+
non_filterable_metadata_keys: Array[::String]?,
|
|
96
|
+
text_search_configurations: Array[
|
|
97
|
+
{
|
|
98
|
+
metadata_key: ::String,
|
|
99
|
+
language: ("en" | "fr" | "es" | "pt" | "it" | "de" | "nl" | "zh" | "ja" | "ko")?,
|
|
100
|
+
status: ("ACTIVE" | "BUILDING")?
|
|
101
|
+
}
|
|
102
|
+
]?
|
|
96
103
|
},
|
|
97
104
|
?encryption_configuration: {
|
|
98
105
|
sse_type: ("AES256" | "aws:kms")?,
|
|
@@ -321,7 +328,7 @@ module Aws
|
|
|
321
328
|
?index_name: ::String,
|
|
322
329
|
?index_arn: ::String,
|
|
323
330
|
top_k: ::Integer,
|
|
324
|
-
query_vector: {
|
|
331
|
+
?query_vector: {
|
|
325
332
|
float32: Array[::Float]?
|
|
326
333
|
},
|
|
327
334
|
?filter: {
|
|
@@ -329,6 +336,13 @@ module Aws
|
|
|
329
336
|
?query_mode: ("CLASSIC" | "ENHANCED"),
|
|
330
337
|
?return_metadata: bool,
|
|
331
338
|
?return_distance: bool,
|
|
339
|
+
?query_texts: Array[
|
|
340
|
+
{
|
|
341
|
+
text: ::String,
|
|
342
|
+
metadata_key: ::String
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
?return_scores: bool,
|
|
332
346
|
?next_token: ::String
|
|
333
347
|
) -> _QueryVectorsResponseSuccess
|
|
334
348
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _QueryVectorsResponseSuccess
|
|
@@ -364,6 +378,34 @@ module Aws
|
|
|
364
378
|
index_mode: ("CLASSIC" | "ENHANCED")
|
|
365
379
|
) -> _UpdateIndexModeResponseSuccess
|
|
366
380
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateIndexModeResponseSuccess
|
|
381
|
+
|
|
382
|
+
interface _UpdateMetadataConfigurationResponseSuccess
|
|
383
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMetadataConfigurationOutput]
|
|
384
|
+
def index_arn: () -> ::String
|
|
385
|
+
end
|
|
386
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3Vectors/Client.html#update_metadata_configuration-instance_method
|
|
387
|
+
def update_metadata_configuration: (
|
|
388
|
+
?vector_bucket_name: ::String,
|
|
389
|
+
?index_name: ::String,
|
|
390
|
+
?index_arn: ::String,
|
|
391
|
+
?add: {
|
|
392
|
+
text_search_configurations: Array[
|
|
393
|
+
{
|
|
394
|
+
metadata_key: ::String,
|
|
395
|
+
language: ("en" | "fr" | "es" | "pt" | "it" | "de" | "nl" | "zh" | "ja" | "ko")?,
|
|
396
|
+
status: ("ACTIVE" | "BUILDING")?
|
|
397
|
+
}
|
|
398
|
+
]?
|
|
399
|
+
},
|
|
400
|
+
?delete: {
|
|
401
|
+
text_search_configurations: Array[
|
|
402
|
+
{
|
|
403
|
+
metadata_key: ::String
|
|
404
|
+
}
|
|
405
|
+
]?
|
|
406
|
+
}
|
|
407
|
+
) -> _UpdateMetadataConfigurationResponseSuccess
|
|
408
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateMetadataConfigurationResponseSuccess
|
|
367
409
|
end
|
|
368
410
|
end
|
|
369
411
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -13,6 +13,12 @@ module Aws::S3Vectors
|
|
|
13
13
|
SENSITIVE: []
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
class Bm25Score
|
|
17
|
+
attr_accessor metadata_key: ::String
|
|
18
|
+
attr_accessor score: ::Float
|
|
19
|
+
SENSITIVE: []
|
|
20
|
+
end
|
|
21
|
+
|
|
16
22
|
class ConflictException
|
|
17
23
|
attr_accessor message: ::String
|
|
18
24
|
SENSITIVE: []
|
|
@@ -262,6 +268,17 @@ module Aws::S3Vectors
|
|
|
262
268
|
|
|
263
269
|
class MetadataConfiguration
|
|
264
270
|
attr_accessor non_filterable_metadata_keys: ::Array[::String]
|
|
271
|
+
attr_accessor text_search_configurations: ::Array[Types::TextSearchConfiguration]
|
|
272
|
+
SENSITIVE: []
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
class MetadataConfigurationAdd
|
|
276
|
+
attr_accessor text_search_configurations: ::Array[Types::TextSearchConfiguration]
|
|
277
|
+
SENSITIVE: []
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
class MetadataConfigurationDelete
|
|
281
|
+
attr_accessor text_search_configurations: ::Array[Types::TextSearchConfigurationKey]
|
|
265
282
|
SENSITIVE: []
|
|
266
283
|
end
|
|
267
284
|
|
|
@@ -310,11 +327,25 @@ module Aws::S3Vectors
|
|
|
310
327
|
|
|
311
328
|
class QueryOutputVector
|
|
312
329
|
attr_accessor distance: ::Float
|
|
330
|
+
attr_accessor scores: Types::QueryScores
|
|
313
331
|
attr_accessor key: ::String
|
|
314
332
|
attr_accessor metadata: untyped
|
|
315
333
|
SENSITIVE: []
|
|
316
334
|
end
|
|
317
335
|
|
|
336
|
+
class QueryScores
|
|
337
|
+
attr_accessor fused: ::Float
|
|
338
|
+
attr_accessor bm25_scores: ::Array[Types::Bm25Score]
|
|
339
|
+
attr_accessor vector_distance: ::Float
|
|
340
|
+
SENSITIVE: []
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
class QueryText
|
|
344
|
+
attr_accessor text: ::String
|
|
345
|
+
attr_accessor metadata_key: ::String
|
|
346
|
+
SENSITIVE: []
|
|
347
|
+
end
|
|
348
|
+
|
|
318
349
|
class QueryVectorsInput
|
|
319
350
|
attr_accessor vector_bucket_name: ::String
|
|
320
351
|
attr_accessor index_name: ::String
|
|
@@ -325,8 +356,10 @@ module Aws::S3Vectors
|
|
|
325
356
|
attr_accessor query_mode: ("CLASSIC" | "ENHANCED")
|
|
326
357
|
attr_accessor return_metadata: bool
|
|
327
358
|
attr_accessor return_distance: bool
|
|
359
|
+
attr_accessor query_texts: ::Array[Types::QueryText]
|
|
360
|
+
attr_accessor return_scores: bool
|
|
328
361
|
attr_accessor next_token: ::String
|
|
329
|
-
SENSITIVE: []
|
|
362
|
+
SENSITIVE: [:query_texts]
|
|
330
363
|
end
|
|
331
364
|
|
|
332
365
|
class QueryVectorsOutput
|
|
@@ -360,6 +393,18 @@ module Aws::S3Vectors
|
|
|
360
393
|
class TagResourceOutput < Aws::EmptyStructure
|
|
361
394
|
end
|
|
362
395
|
|
|
396
|
+
class TextSearchConfiguration
|
|
397
|
+
attr_accessor metadata_key: ::String
|
|
398
|
+
attr_accessor language: ("en" | "fr" | "es" | "pt" | "it" | "de" | "nl" | "zh" | "ja" | "ko")
|
|
399
|
+
attr_accessor status: ("ACTIVE" | "BUILDING")
|
|
400
|
+
SENSITIVE: []
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
class TextSearchConfigurationKey
|
|
404
|
+
attr_accessor metadata_key: ::String
|
|
405
|
+
SENSITIVE: []
|
|
406
|
+
end
|
|
407
|
+
|
|
363
408
|
class TooManyRequestsException
|
|
364
409
|
attr_accessor message: ::String
|
|
365
410
|
SENSITIVE: []
|
|
@@ -385,6 +430,20 @@ module Aws::S3Vectors
|
|
|
385
430
|
class UpdateIndexModeOutput < Aws::EmptyStructure
|
|
386
431
|
end
|
|
387
432
|
|
|
433
|
+
class UpdateMetadataConfigurationInput
|
|
434
|
+
attr_accessor vector_bucket_name: ::String
|
|
435
|
+
attr_accessor index_name: ::String
|
|
436
|
+
attr_accessor index_arn: ::String
|
|
437
|
+
attr_accessor add: Types::MetadataConfigurationAdd
|
|
438
|
+
attr_accessor delete: Types::MetadataConfigurationDelete
|
|
439
|
+
SENSITIVE: []
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
class UpdateMetadataConfigurationOutput
|
|
443
|
+
attr_accessor index_arn: ::String
|
|
444
|
+
SENSITIVE: []
|
|
445
|
+
end
|
|
446
|
+
|
|
388
447
|
class ValidationException
|
|
389
448
|
attr_accessor message: ::String
|
|
390
449
|
attr_accessor field_list: ::Array[Types::ValidationExceptionField]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-s3vectors
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.34.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.269.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.269.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|