@azure/search-documents 12.0.0-alpha.20231009.1 → 12.0.0-alpha.20231023.1
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.
- package/dist/index.js +615 -75
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +22 -6
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +72 -13
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +9 -0
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +1 -0
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +30 -6
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +402 -5
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/searchClient.js +10 -15
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +9 -24
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +43 -6
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +3 -3
- package/types/search-documents.d.ts +236 -31
package/dist/index.js
CHANGED
|
@@ -318,6 +318,12 @@ const SearchRequest = {
|
|
|
318
318
|
name: "String"
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
|
+
semanticQuery: {
|
|
322
|
+
serializedName: "semanticQuery",
|
|
323
|
+
type: {
|
|
324
|
+
name: "String"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
321
327
|
semanticConfiguration: {
|
|
322
328
|
serializedName: "semanticConfiguration",
|
|
323
329
|
type: {
|
|
@@ -413,35 +419,42 @@ const SearchRequest = {
|
|
|
413
419
|
name: "String"
|
|
414
420
|
}
|
|
415
421
|
},
|
|
416
|
-
|
|
417
|
-
serializedName: "
|
|
422
|
+
vectorQueries: {
|
|
423
|
+
serializedName: "vectorQueries",
|
|
418
424
|
type: {
|
|
419
425
|
name: "Sequence",
|
|
420
426
|
element: {
|
|
421
427
|
type: {
|
|
422
428
|
name: "Composite",
|
|
423
|
-
className: "
|
|
429
|
+
className: "VectorQuery"
|
|
424
430
|
}
|
|
425
431
|
}
|
|
426
432
|
}
|
|
433
|
+
},
|
|
434
|
+
vectorFilterMode: {
|
|
435
|
+
serializedName: "vectorFilterMode",
|
|
436
|
+
type: {
|
|
437
|
+
name: "String"
|
|
438
|
+
}
|
|
427
439
|
}
|
|
428
440
|
}
|
|
429
441
|
}
|
|
430
442
|
};
|
|
431
|
-
const
|
|
443
|
+
const VectorQuery = {
|
|
432
444
|
type: {
|
|
433
445
|
name: "Composite",
|
|
434
|
-
className: "
|
|
446
|
+
className: "VectorQuery",
|
|
447
|
+
uberParent: "VectorQuery",
|
|
448
|
+
polymorphicDiscriminator: {
|
|
449
|
+
serializedName: "kind",
|
|
450
|
+
clientName: "kind"
|
|
451
|
+
},
|
|
435
452
|
modelProperties: {
|
|
436
|
-
|
|
437
|
-
serializedName: "
|
|
453
|
+
kind: {
|
|
454
|
+
serializedName: "kind",
|
|
455
|
+
required: true,
|
|
438
456
|
type: {
|
|
439
|
-
name: "
|
|
440
|
-
element: {
|
|
441
|
-
type: {
|
|
442
|
-
name: "Number"
|
|
443
|
-
}
|
|
444
|
-
}
|
|
457
|
+
name: "String"
|
|
445
458
|
}
|
|
446
459
|
},
|
|
447
460
|
kNearestNeighborsCount: {
|
|
@@ -455,6 +468,12 @@ const Vector = {
|
|
|
455
468
|
type: {
|
|
456
469
|
name: "String"
|
|
457
470
|
}
|
|
471
|
+
},
|
|
472
|
+
exhaustive: {
|
|
473
|
+
serializedName: "exhaustive",
|
|
474
|
+
type: {
|
|
475
|
+
name: "Boolean"
|
|
476
|
+
}
|
|
458
477
|
}
|
|
459
478
|
}
|
|
460
479
|
}
|
|
@@ -1005,6 +1024,46 @@ const AutocompleteRequest = {
|
|
|
1005
1024
|
}
|
|
1006
1025
|
}
|
|
1007
1026
|
};
|
|
1027
|
+
const RawVectorQuery = {
|
|
1028
|
+
serializedName: "vector",
|
|
1029
|
+
type: {
|
|
1030
|
+
name: "Composite",
|
|
1031
|
+
className: "RawVectorQuery",
|
|
1032
|
+
uberParent: "VectorQuery",
|
|
1033
|
+
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
1034
|
+
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
|
|
1035
|
+
serializedName: "vector",
|
|
1036
|
+
type: {
|
|
1037
|
+
name: "Sequence",
|
|
1038
|
+
element: {
|
|
1039
|
+
type: {
|
|
1040
|
+
name: "Number"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
} })
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
const VectorizableTextQuery = {
|
|
1048
|
+
serializedName: "text",
|
|
1049
|
+
type: {
|
|
1050
|
+
name: "Composite",
|
|
1051
|
+
className: "VectorizableTextQuery",
|
|
1052
|
+
uberParent: "VectorQuery",
|
|
1053
|
+
polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
|
|
1054
|
+
modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { text: {
|
|
1055
|
+
serializedName: "text",
|
|
1056
|
+
type: {
|
|
1057
|
+
name: "String"
|
|
1058
|
+
}
|
|
1059
|
+
} })
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
let discriminators$1 = {
|
|
1063
|
+
VectorQuery: VectorQuery,
|
|
1064
|
+
"VectorQuery.vector": RawVectorQuery,
|
|
1065
|
+
"VectorQuery.text": VectorizableTextQuery
|
|
1066
|
+
};
|
|
1008
1067
|
|
|
1009
1068
|
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
1010
1069
|
__proto__: null,
|
|
@@ -1021,6 +1080,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
1021
1080
|
IndexingResult: IndexingResult,
|
|
1022
1081
|
QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
|
|
1023
1082
|
QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
|
|
1083
|
+
RawVectorQuery: RawVectorQuery,
|
|
1024
1084
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
1025
1085
|
SearchError: SearchError$1,
|
|
1026
1086
|
SearchRequest: SearchRequest,
|
|
@@ -1029,7 +1089,9 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
1029
1089
|
SuggestDocumentsResult: SuggestDocumentsResult,
|
|
1030
1090
|
SuggestRequest: SuggestRequest,
|
|
1031
1091
|
SuggestResult: SuggestResult,
|
|
1032
|
-
|
|
1092
|
+
VectorQuery: VectorQuery,
|
|
1093
|
+
VectorizableTextQuery: VectorizableTextQuery,
|
|
1094
|
+
discriminators: discriminators$1
|
|
1033
1095
|
});
|
|
1034
1096
|
|
|
1035
1097
|
/*
|
|
@@ -1214,6 +1276,15 @@ const scoringProfile = {
|
|
|
1214
1276
|
}
|
|
1215
1277
|
}
|
|
1216
1278
|
};
|
|
1279
|
+
const semanticQuery = {
|
|
1280
|
+
parameterPath: ["options", "searchOptions", "semanticQuery"],
|
|
1281
|
+
mapper: {
|
|
1282
|
+
serializedName: "semanticQuery",
|
|
1283
|
+
type: {
|
|
1284
|
+
name: "String"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1217
1288
|
const semanticConfiguration = {
|
|
1218
1289
|
parameterPath: ["options", "searchOptions", "semanticConfiguration"],
|
|
1219
1290
|
mapper: {
|
|
@@ -1767,6 +1838,7 @@ const searchGetOperationSpec = {
|
|
|
1767
1838
|
queryType,
|
|
1768
1839
|
scoringParameters,
|
|
1769
1840
|
scoringProfile,
|
|
1841
|
+
semanticQuery,
|
|
1770
1842
|
semanticConfiguration,
|
|
1771
1843
|
semanticErrorHandling,
|
|
1772
1844
|
semanticMaxWaitInMilliseconds,
|
|
@@ -3277,9 +3349,46 @@ function generatedIndexToPublicIndex(generatedIndex) {
|
|
|
3277
3349
|
fields: convertFieldsToPublic(generatedIndex.fields),
|
|
3278
3350
|
similarity: convertSimilarityToPublic(generatedIndex.similarity),
|
|
3279
3351
|
semanticSettings: generatedIndex.semanticSettings,
|
|
3280
|
-
vectorSearch: generatedIndex.vectorSearch,
|
|
3352
|
+
vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),
|
|
3281
3353
|
};
|
|
3282
3354
|
}
|
|
3355
|
+
function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer) {
|
|
3356
|
+
if (!generatedVectorizer) {
|
|
3357
|
+
return generatedVectorizer;
|
|
3358
|
+
}
|
|
3359
|
+
if (generatedVectorizer.kind === "azureOpenAI") {
|
|
3360
|
+
const { azureOpenAIParameters } = generatedVectorizer;
|
|
3361
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters === null || azureOpenAIParameters === void 0 ? void 0 : azureOpenAIParameters.authIdentity);
|
|
3362
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { azureOpenAIParameters: Object.assign(Object.assign({}, azureOpenAIParameters), { authIdentity }) });
|
|
3363
|
+
return vectorizer;
|
|
3364
|
+
}
|
|
3365
|
+
if (generatedVectorizer.kind === "customWebApi") {
|
|
3366
|
+
const { customVectorizerParameters } = generatedVectorizer;
|
|
3367
|
+
const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters === null || customVectorizerParameters === void 0 ? void 0 : customVectorizerParameters.authIdentity);
|
|
3368
|
+
const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { customVectorizerParameters: Object.assign(Object.assign({}, customVectorizerParameters), { authIdentity }) });
|
|
3369
|
+
return vectorizer;
|
|
3370
|
+
}
|
|
3371
|
+
throw Error("Unsupported vectorizer");
|
|
3372
|
+
}
|
|
3373
|
+
function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
|
|
3374
|
+
var _a;
|
|
3375
|
+
if (!generatedAlgorithmConfiguration) {
|
|
3376
|
+
return generatedAlgorithmConfiguration;
|
|
3377
|
+
}
|
|
3378
|
+
if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
|
|
3379
|
+
const algorithmConfiguration = generatedAlgorithmConfiguration;
|
|
3380
|
+
const metric = (_a = algorithmConfiguration.parameters) === null || _a === void 0 ? void 0 : _a.metric;
|
|
3381
|
+
return Object.assign(Object.assign({}, algorithmConfiguration), { parameters: Object.assign(Object.assign({}, algorithmConfiguration.parameters), { metric }) });
|
|
3382
|
+
}
|
|
3383
|
+
throw Error("Unsupported algorithm configuration");
|
|
3384
|
+
}
|
|
3385
|
+
function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
|
|
3386
|
+
var _a, _b;
|
|
3387
|
+
if (!vectorSearch) {
|
|
3388
|
+
return vectorSearch;
|
|
3389
|
+
}
|
|
3390
|
+
return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration), vectorizers: (_b = vectorSearch.vectorizers) === null || _b === void 0 ? void 0 : _b.map(generatedVectorSearchVectorizerToPublicVectorizer) });
|
|
3391
|
+
}
|
|
3283
3392
|
function generatedSearchResultToPublicSearchResult(results) {
|
|
3284
3393
|
const returnValues = results.map((result) => {
|
|
3285
3394
|
const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
|
|
@@ -3368,8 +3477,8 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
|
|
|
3368
3477
|
return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
|
|
3369
3478
|
}
|
|
3370
3479
|
function generatedSearchRequestToPublicSearchRequest(request) {
|
|
3371
|
-
const { semanticErrorHandling, debug,
|
|
3372
|
-
const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug,
|
|
3480
|
+
const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vectorQueries", "vectorFilterMode"]);
|
|
3481
|
+
const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vectorFilterMode: vectorFilterMode, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map((convertVectorQueryToPublic)).filter((v) => v !== undefined) }, props);
|
|
3373
3482
|
return publicRequest;
|
|
3374
3483
|
}
|
|
3375
3484
|
function publicDataSourceToGeneratedDataSource(dataSource) {
|
|
@@ -3431,7 +3540,7 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
|
|
|
3431
3540
|
}
|
|
3432
3541
|
return dataDeletionDetectionPolicy;
|
|
3433
3542
|
}
|
|
3434
|
-
function
|
|
3543
|
+
function convertVectorQueryToPublic(vector) {
|
|
3435
3544
|
var _a;
|
|
3436
3545
|
if (!vector) {
|
|
3437
3546
|
return vector;
|
|
@@ -3457,7 +3566,7 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3457
3566
|
function delay(timeInMs) {
|
|
3458
3567
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3459
3568
|
}
|
|
3460
|
-
const defaultServiceVersion = "2023-
|
|
3569
|
+
const defaultServiceVersion = "2023-10-01-Preview";
|
|
3461
3570
|
function convertKnowledgeStoreToPublic(knowledgeStore) {
|
|
3462
3571
|
if (!knowledgeStore) {
|
|
3463
3572
|
return knowledgeStore;
|
|
@@ -3667,8 +3776,8 @@ class SearchClient {
|
|
|
3667
3776
|
}
|
|
3668
3777
|
}
|
|
3669
3778
|
async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
|
|
3670
|
-
const { searchFields, semanticFields, select, orderBy, includeTotalCount,
|
|
3671
|
-
const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount,
|
|
3779
|
+
const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vectorQueries", "answers", "semanticErrorHandlingMode", "debugMode"]);
|
|
3780
|
+
const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map(this.convertVectorQuery.bind(this)), answers: this.convertAnswers(answers), semanticErrorHandling: semanticErrorHandlingMode, debug: debugMode });
|
|
3672
3781
|
const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
|
|
3673
3782
|
try {
|
|
3674
3783
|
const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
|
|
@@ -3712,16 +3821,11 @@ class SearchClient {
|
|
|
3712
3821
|
try {
|
|
3713
3822
|
for (var _d = true, _e = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
|
|
3714
3823
|
continuationToken: firstPage.continuationToken,
|
|
3715
|
-
})), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3824
|
+
})), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3716
3825
|
_c = _f.value;
|
|
3717
3826
|
_d = false;
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
3721
|
-
}
|
|
3722
|
-
finally {
|
|
3723
|
-
_d = true;
|
|
3724
|
-
}
|
|
3827
|
+
const page = _c;
|
|
3828
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
|
|
3725
3829
|
}
|
|
3726
3830
|
}
|
|
3727
3831
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -4048,7 +4152,7 @@ class SearchClient {
|
|
|
4048
4152
|
}
|
|
4049
4153
|
return select;
|
|
4050
4154
|
}
|
|
4051
|
-
|
|
4155
|
+
convertVectorQueryFields(fields) {
|
|
4052
4156
|
if (fields) {
|
|
4053
4157
|
return fields.join(",");
|
|
4054
4158
|
}
|
|
@@ -4092,11 +4196,11 @@ class SearchClient {
|
|
|
4092
4196
|
}
|
|
4093
4197
|
return output;
|
|
4094
4198
|
}
|
|
4095
|
-
|
|
4096
|
-
if (!
|
|
4097
|
-
return
|
|
4199
|
+
convertVectorQuery(vectorQuery) {
|
|
4200
|
+
if (!vectorQuery) {
|
|
4201
|
+
return vectorQuery;
|
|
4098
4202
|
}
|
|
4099
|
-
return Object.assign(Object.assign({},
|
|
4203
|
+
return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
|
|
4100
4204
|
}
|
|
4101
4205
|
}
|
|
4102
4206
|
|
|
@@ -5486,6 +5590,13 @@ const SearchIndexerSkillset = {
|
|
|
5486
5590
|
className: "SearchIndexerKnowledgeStore"
|
|
5487
5591
|
}
|
|
5488
5592
|
},
|
|
5593
|
+
indexProjections: {
|
|
5594
|
+
serializedName: "indexProjections",
|
|
5595
|
+
type: {
|
|
5596
|
+
name: "Composite",
|
|
5597
|
+
className: "SearchIndexerIndexProjections"
|
|
5598
|
+
}
|
|
5599
|
+
},
|
|
5489
5600
|
etag: {
|
|
5490
5601
|
serializedName: "@odata\\.etag",
|
|
5491
5602
|
type: {
|
|
@@ -5683,6 +5794,13 @@ const SearchIndexerKnowledgeStore = {
|
|
|
5683
5794
|
name: "Composite",
|
|
5684
5795
|
className: "SearchIndexerDataIdentity"
|
|
5685
5796
|
}
|
|
5797
|
+
},
|
|
5798
|
+
parameters: {
|
|
5799
|
+
serializedName: "parameters",
|
|
5800
|
+
type: {
|
|
5801
|
+
name: "Composite",
|
|
5802
|
+
className: "SearchIndexerKnowledgeStoreParameters"
|
|
5803
|
+
}
|
|
5686
5804
|
}
|
|
5687
5805
|
}
|
|
5688
5806
|
}
|
|
@@ -5775,6 +5893,107 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
|
|
|
5775
5893
|
}
|
|
5776
5894
|
}
|
|
5777
5895
|
};
|
|
5896
|
+
const SearchIndexerKnowledgeStoreParameters = {
|
|
5897
|
+
type: {
|
|
5898
|
+
name: "Composite",
|
|
5899
|
+
className: "SearchIndexerKnowledgeStoreParameters",
|
|
5900
|
+
additionalProperties: { type: { name: "Object" } },
|
|
5901
|
+
modelProperties: {
|
|
5902
|
+
synthesizeGeneratedKeyName: {
|
|
5903
|
+
defaultValue: false,
|
|
5904
|
+
serializedName: "synthesizeGeneratedKeyName",
|
|
5905
|
+
type: {
|
|
5906
|
+
name: "Boolean"
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5909
|
+
}
|
|
5910
|
+
}
|
|
5911
|
+
};
|
|
5912
|
+
const SearchIndexerIndexProjections = {
|
|
5913
|
+
type: {
|
|
5914
|
+
name: "Composite",
|
|
5915
|
+
className: "SearchIndexerIndexProjections",
|
|
5916
|
+
modelProperties: {
|
|
5917
|
+
selectors: {
|
|
5918
|
+
serializedName: "selectors",
|
|
5919
|
+
required: true,
|
|
5920
|
+
type: {
|
|
5921
|
+
name: "Sequence",
|
|
5922
|
+
element: {
|
|
5923
|
+
type: {
|
|
5924
|
+
name: "Composite",
|
|
5925
|
+
className: "SearchIndexerIndexProjectionSelector"
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5928
|
+
}
|
|
5929
|
+
},
|
|
5930
|
+
parameters: {
|
|
5931
|
+
serializedName: "parameters",
|
|
5932
|
+
type: {
|
|
5933
|
+
name: "Composite",
|
|
5934
|
+
className: "SearchIndexerIndexProjectionsParameters"
|
|
5935
|
+
}
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
}
|
|
5939
|
+
};
|
|
5940
|
+
const SearchIndexerIndexProjectionSelector = {
|
|
5941
|
+
type: {
|
|
5942
|
+
name: "Composite",
|
|
5943
|
+
className: "SearchIndexerIndexProjectionSelector",
|
|
5944
|
+
modelProperties: {
|
|
5945
|
+
targetIndexName: {
|
|
5946
|
+
serializedName: "targetIndexName",
|
|
5947
|
+
required: true,
|
|
5948
|
+
type: {
|
|
5949
|
+
name: "String"
|
|
5950
|
+
}
|
|
5951
|
+
},
|
|
5952
|
+
parentKeyFieldName: {
|
|
5953
|
+
serializedName: "parentKeyFieldName",
|
|
5954
|
+
required: true,
|
|
5955
|
+
type: {
|
|
5956
|
+
name: "String"
|
|
5957
|
+
}
|
|
5958
|
+
},
|
|
5959
|
+
sourceContext: {
|
|
5960
|
+
serializedName: "sourceContext",
|
|
5961
|
+
required: true,
|
|
5962
|
+
type: {
|
|
5963
|
+
name: "String"
|
|
5964
|
+
}
|
|
5965
|
+
},
|
|
5966
|
+
mappings: {
|
|
5967
|
+
serializedName: "mappings",
|
|
5968
|
+
required: true,
|
|
5969
|
+
type: {
|
|
5970
|
+
name: "Sequence",
|
|
5971
|
+
element: {
|
|
5972
|
+
type: {
|
|
5973
|
+
name: "Composite",
|
|
5974
|
+
className: "InputFieldMappingEntry"
|
|
5975
|
+
}
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
};
|
|
5982
|
+
const SearchIndexerIndexProjectionsParameters = {
|
|
5983
|
+
type: {
|
|
5984
|
+
name: "Composite",
|
|
5985
|
+
className: "SearchIndexerIndexProjectionsParameters",
|
|
5986
|
+
additionalProperties: { type: { name: "Object" } },
|
|
5987
|
+
modelProperties: {
|
|
5988
|
+
projectionMode: {
|
|
5989
|
+
serializedName: "projectionMode",
|
|
5990
|
+
type: {
|
|
5991
|
+
name: "String"
|
|
5992
|
+
}
|
|
5993
|
+
}
|
|
5994
|
+
}
|
|
5995
|
+
}
|
|
5996
|
+
};
|
|
5778
5997
|
const ListSkillsetsResult = {
|
|
5779
5998
|
type: {
|
|
5780
5999
|
name: "Composite",
|
|
@@ -6134,8 +6353,8 @@ const SearchField = {
|
|
|
6134
6353
|
name: "Number"
|
|
6135
6354
|
}
|
|
6136
6355
|
},
|
|
6137
|
-
|
|
6138
|
-
serializedName: "
|
|
6356
|
+
vectorSearchProfile: {
|
|
6357
|
+
serializedName: "vectorSearchProfile",
|
|
6139
6358
|
nullable: true,
|
|
6140
6359
|
type: {
|
|
6141
6360
|
name: "String"
|
|
@@ -6594,8 +6813,20 @@ const VectorSearch = {
|
|
|
6594
6813
|
name: "Composite",
|
|
6595
6814
|
className: "VectorSearch",
|
|
6596
6815
|
modelProperties: {
|
|
6597
|
-
|
|
6598
|
-
serializedName: "
|
|
6816
|
+
profiles: {
|
|
6817
|
+
serializedName: "profiles",
|
|
6818
|
+
type: {
|
|
6819
|
+
name: "Sequence",
|
|
6820
|
+
element: {
|
|
6821
|
+
type: {
|
|
6822
|
+
name: "Composite",
|
|
6823
|
+
className: "VectorSearchProfile"
|
|
6824
|
+
}
|
|
6825
|
+
}
|
|
6826
|
+
}
|
|
6827
|
+
},
|
|
6828
|
+
algorithms: {
|
|
6829
|
+
serializedName: "algorithms",
|
|
6599
6830
|
type: {
|
|
6600
6831
|
name: "Sequence",
|
|
6601
6832
|
element: {
|
|
@@ -6605,6 +6836,46 @@ const VectorSearch = {
|
|
|
6605
6836
|
}
|
|
6606
6837
|
}
|
|
6607
6838
|
}
|
|
6839
|
+
},
|
|
6840
|
+
vectorizers: {
|
|
6841
|
+
serializedName: "vectorizers",
|
|
6842
|
+
type: {
|
|
6843
|
+
name: "Sequence",
|
|
6844
|
+
element: {
|
|
6845
|
+
type: {
|
|
6846
|
+
name: "Composite",
|
|
6847
|
+
className: "VectorSearchVectorizer"
|
|
6848
|
+
}
|
|
6849
|
+
}
|
|
6850
|
+
}
|
|
6851
|
+
}
|
|
6852
|
+
}
|
|
6853
|
+
}
|
|
6854
|
+
};
|
|
6855
|
+
const VectorSearchProfile = {
|
|
6856
|
+
type: {
|
|
6857
|
+
name: "Composite",
|
|
6858
|
+
className: "VectorSearchProfile",
|
|
6859
|
+
modelProperties: {
|
|
6860
|
+
name: {
|
|
6861
|
+
serializedName: "name",
|
|
6862
|
+
required: true,
|
|
6863
|
+
type: {
|
|
6864
|
+
name: "String"
|
|
6865
|
+
}
|
|
6866
|
+
},
|
|
6867
|
+
algorithm: {
|
|
6868
|
+
serializedName: "algorithm",
|
|
6869
|
+
required: true,
|
|
6870
|
+
type: {
|
|
6871
|
+
name: "String"
|
|
6872
|
+
}
|
|
6873
|
+
},
|
|
6874
|
+
vectorizer: {
|
|
6875
|
+
serializedName: "vectorizer",
|
|
6876
|
+
type: {
|
|
6877
|
+
name: "String"
|
|
6878
|
+
}
|
|
6608
6879
|
}
|
|
6609
6880
|
}
|
|
6610
6881
|
}
|
|
@@ -6636,6 +6907,33 @@ const VectorSearchAlgorithmConfiguration = {
|
|
|
6636
6907
|
}
|
|
6637
6908
|
}
|
|
6638
6909
|
};
|
|
6910
|
+
const VectorSearchVectorizer = {
|
|
6911
|
+
type: {
|
|
6912
|
+
name: "Composite",
|
|
6913
|
+
className: "VectorSearchVectorizer",
|
|
6914
|
+
uberParent: "VectorSearchVectorizer",
|
|
6915
|
+
polymorphicDiscriminator: {
|
|
6916
|
+
serializedName: "kind",
|
|
6917
|
+
clientName: "kind"
|
|
6918
|
+
},
|
|
6919
|
+
modelProperties: {
|
|
6920
|
+
name: {
|
|
6921
|
+
serializedName: "name",
|
|
6922
|
+
required: true,
|
|
6923
|
+
type: {
|
|
6924
|
+
name: "String"
|
|
6925
|
+
}
|
|
6926
|
+
},
|
|
6927
|
+
kind: {
|
|
6928
|
+
serializedName: "kind",
|
|
6929
|
+
required: true,
|
|
6930
|
+
type: {
|
|
6931
|
+
name: "String"
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
6934
|
+
}
|
|
6935
|
+
}
|
|
6936
|
+
};
|
|
6639
6937
|
const ListIndexesResult = {
|
|
6640
6938
|
type: {
|
|
6641
6939
|
name: "Composite",
|
|
@@ -6681,6 +6979,7 @@ const GetIndexStatisticsResult = {
|
|
|
6681
6979
|
},
|
|
6682
6980
|
vectorIndexSize: {
|
|
6683
6981
|
serializedName: "vectorIndexSize",
|
|
6982
|
+
required: true,
|
|
6684
6983
|
readOnly: true,
|
|
6685
6984
|
type: {
|
|
6686
6985
|
name: "Number"
|
|
@@ -7062,6 +7361,101 @@ const HnswParameters = {
|
|
|
7062
7361
|
}
|
|
7063
7362
|
}
|
|
7064
7363
|
};
|
|
7364
|
+
const ExhaustiveKnnParameters = {
|
|
7365
|
+
type: {
|
|
7366
|
+
name: "Composite",
|
|
7367
|
+
className: "ExhaustiveKnnParameters",
|
|
7368
|
+
modelProperties: {
|
|
7369
|
+
metric: {
|
|
7370
|
+
serializedName: "metric",
|
|
7371
|
+
nullable: true,
|
|
7372
|
+
type: {
|
|
7373
|
+
name: "String"
|
|
7374
|
+
}
|
|
7375
|
+
}
|
|
7376
|
+
}
|
|
7377
|
+
}
|
|
7378
|
+
};
|
|
7379
|
+
const AzureOpenAIParameters = {
|
|
7380
|
+
type: {
|
|
7381
|
+
name: "Composite",
|
|
7382
|
+
className: "AzureOpenAIParameters",
|
|
7383
|
+
modelProperties: {
|
|
7384
|
+
resourceUri: {
|
|
7385
|
+
serializedName: "resourceUri",
|
|
7386
|
+
type: {
|
|
7387
|
+
name: "String"
|
|
7388
|
+
}
|
|
7389
|
+
},
|
|
7390
|
+
deploymentId: {
|
|
7391
|
+
serializedName: "deploymentId",
|
|
7392
|
+
type: {
|
|
7393
|
+
name: "String"
|
|
7394
|
+
}
|
|
7395
|
+
},
|
|
7396
|
+
apiKey: {
|
|
7397
|
+
serializedName: "apiKey",
|
|
7398
|
+
type: {
|
|
7399
|
+
name: "String"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
authIdentity: {
|
|
7403
|
+
serializedName: "authIdentity",
|
|
7404
|
+
type: {
|
|
7405
|
+
name: "Composite",
|
|
7406
|
+
className: "SearchIndexerDataIdentity"
|
|
7407
|
+
}
|
|
7408
|
+
}
|
|
7409
|
+
}
|
|
7410
|
+
}
|
|
7411
|
+
};
|
|
7412
|
+
const CustomVectorizerParameters = {
|
|
7413
|
+
type: {
|
|
7414
|
+
name: "Composite",
|
|
7415
|
+
className: "CustomVectorizerParameters",
|
|
7416
|
+
modelProperties: {
|
|
7417
|
+
uri: {
|
|
7418
|
+
serializedName: "uri",
|
|
7419
|
+
type: {
|
|
7420
|
+
name: "String"
|
|
7421
|
+
}
|
|
7422
|
+
},
|
|
7423
|
+
httpHeaders: {
|
|
7424
|
+
serializedName: "httpHeaders",
|
|
7425
|
+
type: {
|
|
7426
|
+
name: "Dictionary",
|
|
7427
|
+
value: { type: { name: "String" } }
|
|
7428
|
+
}
|
|
7429
|
+
},
|
|
7430
|
+
httpMethod: {
|
|
7431
|
+
serializedName: "httpMethod",
|
|
7432
|
+
type: {
|
|
7433
|
+
name: "String"
|
|
7434
|
+
}
|
|
7435
|
+
},
|
|
7436
|
+
timeout: {
|
|
7437
|
+
serializedName: "timeout",
|
|
7438
|
+
type: {
|
|
7439
|
+
name: "TimeSpan"
|
|
7440
|
+
}
|
|
7441
|
+
},
|
|
7442
|
+
authResourceId: {
|
|
7443
|
+
serializedName: "authResourceId",
|
|
7444
|
+
nullable: true,
|
|
7445
|
+
type: {
|
|
7446
|
+
name: "String"
|
|
7447
|
+
}
|
|
7448
|
+
},
|
|
7449
|
+
authIdentity: {
|
|
7450
|
+
serializedName: "authIdentity",
|
|
7451
|
+
type: {
|
|
7452
|
+
name: "Composite",
|
|
7453
|
+
className: "SearchIndexerDataIdentity"
|
|
7454
|
+
}
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7457
|
+
}
|
|
7458
|
+
};
|
|
7065
7459
|
const DistanceScoringParameters = {
|
|
7066
7460
|
type: {
|
|
7067
7461
|
name: "Composite",
|
|
@@ -7348,6 +7742,16 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
|
|
|
7348
7742
|
} })
|
|
7349
7743
|
}
|
|
7350
7744
|
};
|
|
7745
|
+
const NativeBlobSoftDeleteDeletionDetectionPolicy = {
|
|
7746
|
+
serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
7747
|
+
type: {
|
|
7748
|
+
name: "Composite",
|
|
7749
|
+
className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
|
|
7750
|
+
uberParent: "DataDeletionDetectionPolicy",
|
|
7751
|
+
polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
|
|
7752
|
+
modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties)
|
|
7753
|
+
}
|
|
7754
|
+
};
|
|
7351
7755
|
const ConditionalSkill = {
|
|
7352
7756
|
serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
|
|
7353
7757
|
type: {
|
|
@@ -7739,6 +8143,18 @@ const SplitSkill = {
|
|
|
7739
8143
|
type: {
|
|
7740
8144
|
name: "Number"
|
|
7741
8145
|
}
|
|
8146
|
+
}, pageOverlapLength: {
|
|
8147
|
+
serializedName: "pageOverlapLength",
|
|
8148
|
+
nullable: true,
|
|
8149
|
+
type: {
|
|
8150
|
+
name: "Number"
|
|
8151
|
+
}
|
|
8152
|
+
}, maximumPagesToTake: {
|
|
8153
|
+
serializedName: "maximumPagesToTake",
|
|
8154
|
+
nullable: true,
|
|
8155
|
+
type: {
|
|
8156
|
+
name: "Number"
|
|
8157
|
+
}
|
|
7742
8158
|
} })
|
|
7743
8159
|
}
|
|
7744
8160
|
};
|
|
@@ -7952,6 +8368,37 @@ const AzureMachineLearningSkill = {
|
|
|
7952
8368
|
} })
|
|
7953
8369
|
}
|
|
7954
8370
|
};
|
|
8371
|
+
const AzureOpenAIEmbeddingSkill = {
|
|
8372
|
+
serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
|
|
8373
|
+
type: {
|
|
8374
|
+
name: "Composite",
|
|
8375
|
+
className: "AzureOpenAIEmbeddingSkill",
|
|
8376
|
+
uberParent: "SearchIndexerSkill",
|
|
8377
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
8378
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { resourceUri: {
|
|
8379
|
+
serializedName: "resourceUri",
|
|
8380
|
+
type: {
|
|
8381
|
+
name: "String"
|
|
8382
|
+
}
|
|
8383
|
+
}, deploymentId: {
|
|
8384
|
+
serializedName: "deploymentId",
|
|
8385
|
+
type: {
|
|
8386
|
+
name: "String"
|
|
8387
|
+
}
|
|
8388
|
+
}, apiKey: {
|
|
8389
|
+
serializedName: "apiKey",
|
|
8390
|
+
type: {
|
|
8391
|
+
name: "String"
|
|
8392
|
+
}
|
|
8393
|
+
}, authIdentity: {
|
|
8394
|
+
serializedName: "authIdentity",
|
|
8395
|
+
type: {
|
|
8396
|
+
name: "Composite",
|
|
8397
|
+
className: "SearchIndexerDataIdentity"
|
|
8398
|
+
}
|
|
8399
|
+
} })
|
|
8400
|
+
}
|
|
8401
|
+
};
|
|
7955
8402
|
const DefaultCognitiveServicesAccount = {
|
|
7956
8403
|
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7957
8404
|
type: {
|
|
@@ -9576,6 +10023,54 @@ const HnswVectorSearchAlgorithmConfiguration = {
|
|
|
9576
10023
|
} })
|
|
9577
10024
|
}
|
|
9578
10025
|
};
|
|
10026
|
+
const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
|
|
10027
|
+
serializedName: "exhaustiveKnn",
|
|
10028
|
+
type: {
|
|
10029
|
+
name: "Composite",
|
|
10030
|
+
className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration",
|
|
10031
|
+
uberParent: "VectorSearchAlgorithmConfiguration",
|
|
10032
|
+
polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
|
|
10033
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
|
|
10034
|
+
serializedName: "exhaustiveKnnParameters",
|
|
10035
|
+
type: {
|
|
10036
|
+
name: "Composite",
|
|
10037
|
+
className: "ExhaustiveKnnParameters"
|
|
10038
|
+
}
|
|
10039
|
+
} })
|
|
10040
|
+
}
|
|
10041
|
+
};
|
|
10042
|
+
const AzureOpenAIVectorizer = {
|
|
10043
|
+
serializedName: "azureOpenAI",
|
|
10044
|
+
type: {
|
|
10045
|
+
name: "Composite",
|
|
10046
|
+
className: "AzureOpenAIVectorizer",
|
|
10047
|
+
uberParent: "VectorSearchVectorizer",
|
|
10048
|
+
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
10049
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { azureOpenAIParameters: {
|
|
10050
|
+
serializedName: "azureOpenAIParameters",
|
|
10051
|
+
type: {
|
|
10052
|
+
name: "Composite",
|
|
10053
|
+
className: "AzureOpenAIParameters"
|
|
10054
|
+
}
|
|
10055
|
+
} })
|
|
10056
|
+
}
|
|
10057
|
+
};
|
|
10058
|
+
const CustomVectorizer = {
|
|
10059
|
+
serializedName: "customWebApi",
|
|
10060
|
+
type: {
|
|
10061
|
+
name: "Composite",
|
|
10062
|
+
className: "CustomVectorizer",
|
|
10063
|
+
uberParent: "VectorSearchVectorizer",
|
|
10064
|
+
polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
|
|
10065
|
+
modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { customVectorizerParameters: {
|
|
10066
|
+
serializedName: "customVectorizerParameters",
|
|
10067
|
+
type: {
|
|
10068
|
+
name: "Composite",
|
|
10069
|
+
className: "CustomVectorizerParameters"
|
|
10070
|
+
}
|
|
10071
|
+
} })
|
|
10072
|
+
}
|
|
10073
|
+
};
|
|
9579
10074
|
const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
|
|
9580
10075
|
type: {
|
|
9581
10076
|
name: "Composite",
|
|
@@ -9604,11 +10099,13 @@ let discriminators = {
|
|
|
9604
10099
|
LexicalNormalizer: LexicalNormalizer,
|
|
9605
10100
|
Similarity: Similarity,
|
|
9606
10101
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
10102
|
+
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
9607
10103
|
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
|
|
9608
10104
|
"SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
|
|
9609
10105
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
|
|
9610
10106
|
"DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
|
|
9611
10107
|
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
|
|
10108
|
+
"DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
9612
10109
|
"SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
|
|
9613
10110
|
"SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
|
|
9614
10111
|
"SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
|
|
@@ -9628,6 +10125,7 @@ let discriminators = {
|
|
|
9628
10125
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
9629
10126
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9630
10127
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
10128
|
+
"SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
|
|
9631
10129
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
9632
10130
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
9633
10131
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -9680,7 +10178,10 @@ let discriminators = {
|
|
|
9680
10178
|
"LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
|
|
9681
10179
|
"Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
|
|
9682
10180
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
|
|
9683
|
-
"VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration
|
|
10181
|
+
"VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration,
|
|
10182
|
+
"VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration,
|
|
10183
|
+
"VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
|
|
10184
|
+
"VectorSearchVectorizer.customWebApi": CustomVectorizer
|
|
9684
10185
|
};
|
|
9685
10186
|
|
|
9686
10187
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
@@ -9691,6 +10192,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9691
10192
|
AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
|
|
9692
10193
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9693
10194
|
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
10195
|
+
AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
|
|
10196
|
+
AzureOpenAIParameters: AzureOpenAIParameters,
|
|
10197
|
+
AzureOpenAIVectorizer: AzureOpenAIVectorizer,
|
|
9694
10198
|
BM25Similarity: BM25Similarity,
|
|
9695
10199
|
CharFilter: CharFilter,
|
|
9696
10200
|
CjkBigramTokenFilter: CjkBigramTokenFilter,
|
|
@@ -9706,6 +10210,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9706
10210
|
CustomEntityAlias: CustomEntityAlias,
|
|
9707
10211
|
CustomEntityLookupSkill: CustomEntityLookupSkill,
|
|
9708
10212
|
CustomNormalizer: CustomNormalizer,
|
|
10213
|
+
CustomVectorizer: CustomVectorizer,
|
|
10214
|
+
CustomVectorizerParameters: CustomVectorizerParameters,
|
|
9709
10215
|
DataChangeDetectionPolicy: DataChangeDetectionPolicy,
|
|
9710
10216
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9711
10217
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -9722,6 +10228,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9722
10228
|
EntityLinkingSkill: EntityLinkingSkill,
|
|
9723
10229
|
EntityRecognitionSkill: EntityRecognitionSkill,
|
|
9724
10230
|
EntityRecognitionSkillV3: EntityRecognitionSkillV3,
|
|
10231
|
+
ExhaustiveKnnParameters: ExhaustiveKnnParameters,
|
|
10232
|
+
ExhaustiveKnnVectorSearchAlgorithmConfiguration: ExhaustiveKnnVectorSearchAlgorithmConfiguration,
|
|
9725
10233
|
FieldMapping: FieldMapping,
|
|
9726
10234
|
FieldMappingFunction: FieldMappingFunction,
|
|
9727
10235
|
FreshnessScoringFunction: FreshnessScoringFunction,
|
|
@@ -9766,6 +10274,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9766
10274
|
NGramTokenFilter: NGramTokenFilter,
|
|
9767
10275
|
NGramTokenFilterV2: NGramTokenFilterV2,
|
|
9768
10276
|
NGramTokenizer: NGramTokenizer,
|
|
10277
|
+
NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
|
|
9769
10278
|
OcrSkill: OcrSkill,
|
|
9770
10279
|
OutputFieldMappingEntry: OutputFieldMappingEntry,
|
|
9771
10280
|
PIIDetectionSkill: PIIDetectionSkill,
|
|
@@ -9792,10 +10301,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9792
10301
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9793
10302
|
SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
|
|
9794
10303
|
SearchIndexerError: SearchIndexerError,
|
|
10304
|
+
SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
|
|
10305
|
+
SearchIndexerIndexProjections: SearchIndexerIndexProjections,
|
|
10306
|
+
SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
|
|
9795
10307
|
SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
|
|
9796
10308
|
SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
|
|
9797
10309
|
SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
|
|
9798
10310
|
SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
|
|
10311
|
+
SearchIndexerKnowledgeStoreParameters: SearchIndexerKnowledgeStoreParameters,
|
|
9799
10312
|
SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
|
|
9800
10313
|
SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
|
|
9801
10314
|
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
@@ -9838,6 +10351,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9838
10351
|
UniqueTokenFilter: UniqueTokenFilter,
|
|
9839
10352
|
VectorSearch: VectorSearch,
|
|
9840
10353
|
VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
|
|
10354
|
+
VectorSearchProfile: VectorSearchProfile,
|
|
10355
|
+
VectorSearchVectorizer: VectorSearchVectorizer,
|
|
9841
10356
|
WebApiSkill: WebApiSkill,
|
|
9842
10357
|
WordDelimiterTokenFilter: WordDelimiterTokenFilter,
|
|
9843
10358
|
discriminators: discriminators
|
|
@@ -11348,16 +11863,11 @@ class SearchIndexClient {
|
|
|
11348
11863
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
|
|
11349
11864
|
var _a, e_1, _b, _c;
|
|
11350
11865
|
try {
|
|
11351
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
11866
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11352
11867
|
_c = _f.value;
|
|
11353
11868
|
_d = false;
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11357
|
-
}
|
|
11358
|
-
finally {
|
|
11359
|
-
_d = true;
|
|
11360
|
-
}
|
|
11869
|
+
const page = _c;
|
|
11870
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11361
11871
|
}
|
|
11362
11872
|
}
|
|
11363
11873
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -11410,16 +11920,11 @@ class SearchIndexClient {
|
|
|
11410
11920
|
return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
|
|
11411
11921
|
var _a, e_2, _b, _c;
|
|
11412
11922
|
try {
|
|
11413
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
11923
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11414
11924
|
_c = _f.value;
|
|
11415
11925
|
_d = false;
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11419
|
-
}
|
|
11420
|
-
finally {
|
|
11421
|
-
_d = true;
|
|
11422
|
-
}
|
|
11926
|
+
const page = _c;
|
|
11927
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11423
11928
|
}
|
|
11424
11929
|
}
|
|
11425
11930
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -11473,16 +11978,11 @@ class SearchIndexClient {
|
|
|
11473
11978
|
return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
|
|
11474
11979
|
var _a, e_3, _b, _c;
|
|
11475
11980
|
try {
|
|
11476
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
11981
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
11477
11982
|
_c = _f.value;
|
|
11478
11983
|
_d = false;
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11482
|
-
}
|
|
11483
|
-
finally {
|
|
11484
|
-
_d = true;
|
|
11485
|
-
}
|
|
11984
|
+
const page = _c;
|
|
11985
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
11486
11986
|
}
|
|
11487
11987
|
}
|
|
11488
11988
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
@@ -12554,12 +13054,12 @@ function odata(strings, ...values) {
|
|
|
12554
13054
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
12555
13055
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
12556
13056
|
*/
|
|
12557
|
-
/** Known values of {@link
|
|
12558
|
-
var
|
|
12559
|
-
(function (
|
|
12560
|
-
/** Api Version '2023-
|
|
12561
|
-
|
|
12562
|
-
})(
|
|
13057
|
+
/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */
|
|
13058
|
+
var KnownApiVersion20231001Preview$1;
|
|
13059
|
+
(function (KnownApiVersion20231001Preview) {
|
|
13060
|
+
/** Api Version '2023-10-01-Preview' */
|
|
13061
|
+
KnownApiVersion20231001Preview["TwoThousandTwentyThree1001Preview"] = "2023-10-01-Preview";
|
|
13062
|
+
})(KnownApiVersion20231001Preview$1 || (KnownApiVersion20231001Preview$1 = {}));
|
|
12563
13063
|
/** Known values of {@link SemanticErrorHandling} that the service accepts. */
|
|
12564
13064
|
var KnownSemanticErrorHandling;
|
|
12565
13065
|
(function (KnownSemanticErrorHandling) {
|
|
@@ -12772,6 +13272,22 @@ exports.KnownQueryCaptionType = void 0;
|
|
|
12772
13272
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
12773
13273
|
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
12774
13274
|
})(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
|
|
13275
|
+
/** Known values of {@link VectorQueryKind} that the service accepts. */
|
|
13276
|
+
var KnownVectorQueryKind;
|
|
13277
|
+
(function (KnownVectorQueryKind) {
|
|
13278
|
+
/** Vector query where a raw vector value is provided. */
|
|
13279
|
+
KnownVectorQueryKind["Vector"] = "vector";
|
|
13280
|
+
/** Vector query where a text value that needs to be vectorized is provided. */
|
|
13281
|
+
KnownVectorQueryKind["$DO_NOT_NORMALIZE$_text"] = "text";
|
|
13282
|
+
})(KnownVectorQueryKind || (KnownVectorQueryKind = {}));
|
|
13283
|
+
/** Known values of {@link VectorFilterMode} that the service accepts. */
|
|
13284
|
+
var KnownVectorFilterMode;
|
|
13285
|
+
(function (KnownVectorFilterMode) {
|
|
13286
|
+
/** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */
|
|
13287
|
+
KnownVectorFilterMode["PostFilter"] = "postFilter";
|
|
13288
|
+
/** The filter will be applied before the search query. */
|
|
13289
|
+
KnownVectorFilterMode["PreFilter"] = "preFilter";
|
|
13290
|
+
})(KnownVectorFilterMode || (KnownVectorFilterMode = {}));
|
|
12775
13291
|
/** Known values of {@link SemanticPartialResponseReason} that the service accepts. */
|
|
12776
13292
|
var KnownSemanticPartialResponseReason;
|
|
12777
13293
|
(function (KnownSemanticPartialResponseReason) {
|
|
@@ -12808,12 +13324,12 @@ var KnownSemanticFieldState;
|
|
|
12808
13324
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
12809
13325
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
12810
13326
|
*/
|
|
12811
|
-
/** Known values of {@link
|
|
12812
|
-
var
|
|
12813
|
-
(function (
|
|
12814
|
-
/** Api Version '2023-
|
|
12815
|
-
|
|
12816
|
-
})(
|
|
13327
|
+
/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */
|
|
13328
|
+
var KnownApiVersion20231001Preview;
|
|
13329
|
+
(function (KnownApiVersion20231001Preview) {
|
|
13330
|
+
/** Api Version '2023-10-01-Preview' */
|
|
13331
|
+
KnownApiVersion20231001Preview["TwoThousandTwentyThree1001Preview"] = "2023-10-01-Preview";
|
|
13332
|
+
})(KnownApiVersion20231001Preview || (KnownApiVersion20231001Preview = {}));
|
|
12817
13333
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
12818
13334
|
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
12819
13335
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -12896,6 +13412,14 @@ exports.KnownIndexingMode = void 0;
|
|
|
12896
13412
|
/** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
|
|
12897
13413
|
KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
|
|
12898
13414
|
})(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
|
|
13415
|
+
/** Known values of {@link IndexProjectionMode} that the service accepts. */
|
|
13416
|
+
var KnownIndexProjectionMode;
|
|
13417
|
+
(function (KnownIndexProjectionMode) {
|
|
13418
|
+
/** The source document will be skipped from writing into the indexer's target index. */
|
|
13419
|
+
KnownIndexProjectionMode["SkipIndexingParentDocuments"] = "skipIndexingParentDocuments";
|
|
13420
|
+
/** The source document will be written into the indexer's target index. This is the default pattern. */
|
|
13421
|
+
KnownIndexProjectionMode["IncludeIndexingParentDocuments"] = "includeIndexingParentDocuments";
|
|
13422
|
+
})(KnownIndexProjectionMode || (KnownIndexProjectionMode = {}));
|
|
12899
13423
|
/** Known values of {@link SearchFieldDataType} that the service accepts. */
|
|
12900
13424
|
var KnownSearchFieldDataType;
|
|
12901
13425
|
(function (KnownSearchFieldDataType) {
|
|
@@ -13122,6 +13646,22 @@ exports.KnownLexicalNormalizerName = void 0;
|
|
|
13122
13646
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
13123
13647
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
13124
13648
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
13649
|
+
/** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
|
|
13650
|
+
var KnownVectorSearchAlgorithmKind;
|
|
13651
|
+
(function (KnownVectorSearchAlgorithmKind) {
|
|
13652
|
+
/** Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
|
|
13653
|
+
KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
|
|
13654
|
+
/** Exhaustive KNN algorithm which will perform brute-force search. */
|
|
13655
|
+
KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
|
|
13656
|
+
})(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
|
|
13657
|
+
/** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */
|
|
13658
|
+
var KnownVectorSearchVectorizerKind;
|
|
13659
|
+
(function (KnownVectorSearchVectorizerKind) {
|
|
13660
|
+
/** Generate embeddings using an Azure Open AI service at query time. */
|
|
13661
|
+
KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
|
|
13662
|
+
/** Generate embeddings using a custom web endpoint at query time. */
|
|
13663
|
+
KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
|
|
13664
|
+
})(KnownVectorSearchVectorizerKind || (KnownVectorSearchVectorizerKind = {}));
|
|
13125
13665
|
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
13126
13666
|
exports.KnownTokenFilterName = void 0;
|
|
13127
13667
|
(function (KnownTokenFilterName) {
|