Skip to content

Commit

Permalink
[Search] Fix 10-01-Preview and 11-01 GA swaggers (#26219)
Browse files Browse the repository at this point in the history
* add Edm.Single which was mistakenly omitted
* fix customWebApiParameters
* add exhaustive knn examples for 10-01-preview
* Add missing SplitSkill languages
  • Loading branch information
robertklee authored and jnlycklama committed Nov 8, 2023
1 parent 0cfe097 commit ebff28d
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@
"kind": "hnsw",
"hnswParameters": {
"m": 4,
"metric": "cosine",
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
Expand Down Expand Up @@ -541,6 +550,13 @@
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
],
"profiles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@
"kind": "hnsw",
"hnswParameters": {
"m": 4,
"metric": "cosine",
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
Expand Down Expand Up @@ -539,6 +548,13 @@
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
],
"profiles": [
Expand Down Expand Up @@ -893,6 +909,13 @@
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
],
"profiles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@
"efConstruction": 400,
"efSearch": 500
}
},
{
"name": "myExhaustiveKnn",
"kind": "exhaustiveKnn",
"exhaustiveKnnParameters": {
"metric": "cosine"
}
}
],
"profiles": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6415,15 +6415,15 @@
}
],
"properties": {
"customVectorizerParameters": {
"x-ms-client-name": "CustomVectorizerParameters",
"$ref": "#/definitions/CustomVectorizerParameters",
"customWebApiParameters": {
"x-ms-client-name": "CustomWebApiParameters",
"$ref": "#/definitions/CustomWebApiParameters",
"description": "Specifies the properties of the user-defined vectorizer."
}
},
"description": "Specifies a user-defined vectorizer for generating the vector embedding of a query string. Integration of an external vectorizer is achieved using the custom Web API interface of a skillset."
},
"CustomVectorizerParameters": {
"CustomWebApiParameters": {
"type": "object",
"properties": {
"uri": {
Expand Down Expand Up @@ -10758,20 +10758,56 @@
"SplitSkillLanguage": {
"type": "string",
"enum": [
"am",
"bs",
"cs",
"da",
"de",
"en",
"es",
"et",
"fi",
"fr",
"he",
"hi",
"hr",
"hu",
"id",
"is",
"it",
"ja",
"ko",
"pt"
"lv",
"nb",
"nl",
"pl",
"pt",
"pt-br",
"ru",
"sk",
"sl",
"sr",
"sv",
"tr",
"ur",
"zh"
],
"x-ms-enum": {
"name": "SplitSkillLanguage",
"modelAsString": true,
"values": [
{
"value": "am",
"description": "Amharic"
},
{
"value": "bs",
"description": "Bosnian"
},
{
"value": "cs",
"description": "Czech"
},
{
"value": "da",
"description": "Danish"
Expand All @@ -10788,6 +10824,10 @@
"value": "es",
"description": "Spanish"
},
{
"value": "et",
"description": "Estonian"
},
{
"value": "fi",
"description": "Finnish"
Expand All @@ -10796,17 +10836,97 @@
"value": "fr",
"description": "French"
},
{
"value": "he",
"description": "Hebrew"
},
{
"value": "hi",
"description": "Hindi"
},
{
"value": "hr",
"description": "Croatian"
},
{
"value": "hu",
"description": "Hungarian"
},
{
"value": "id",
"description": "Indonesian"
},
{
"value": "is",
"description": "Icelandic"
},
{
"value": "it",
"description": "Italian"
},
{
"value": "ja",
"description": "Japanese"
},
{
"value": "ko",
"description": "Korean"
},
{
"value": "lv",
"description": "Latvian"
},
{
"value": "nb",
"description": "Norwegian"
},
{
"value": "nl",
"description": "Dutch"
},
{
"value": "pl",
"description": "Polish"
},
{
"value": "pt",
"description": "Portuguese"
"description": "Portuguese (Portugal)"
},
{
"value": "pt-br",
"description": "Portuguese (Brazil)"
},
{
"value": "ru",
"description": "Russian"
},
{
"value": "sk",
"description": "Slovak"
},
{
"value": "sl",
"description": "Slovenian"
},
{
"value": "sr",
"description": "Serbian"
},
{
"value": "sv",
"description": "Swedish"
},
{
"value": "tr",
"description": "Turkish"
},
{
"value": "ur",
"description": "Urdu"
},
{
"value": "zh",
"description": "Chinese (Simplified)"
}
]
},
Expand Down
Loading

0 comments on commit ebff28d

Please sign in to comment.