Skip to content

Commit 6dc62d1

Browse files
committed
[Search] Fix SplitTextSkill missing properties
1 parent 6ec713f commit 6dc62d1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

sdk/search/search-documents/CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Release History
22

3+
## 12.1.1 (Unreleased)
4+
5+
### Bugs Fixed
6+
7+
- Exposed missing configuration for page-based text splitting in `SplitTextSkill` [#31882](https://github.com/Azure/azure-sdk-for-js/pull/31882)
8+
39
## 12.1.0 (2024-07-24)
410

511
### Features Added
612

7-
- Added support for text queries against vector fields [#30494](https://github.com/Azure/azure-sdk-for-js/pull/29597)
13+
- Added support for text queries against vector fields [#30494](https://github.com/Azure/azure-sdk-for-js/pull/30494)
814
- Create text queries against vector fields with the `VectorizedTextQuery` variant of `VectorQuery`. Such queries are supported by configuring the corresponding index field with a `VectorSearchVectorizer`. This configuration describes a delegate, which the service uses to generate vector embeddings for the query text.
915
- Added `AzureOpenAIEmbeddingSkill` to allow for `SearchIndexer`s to populate embedding fields at index-time.
1016
- Added index configuration for vector quantization through `VectorSearchCompression`

sdk/search/search-documents/review/search-documents.api.md

+2
Original file line numberDiff line numberDiff line change
@@ -2531,8 +2531,10 @@ export interface SoftDeleteColumnDeletionDetectionPolicy extends BaseDataDeletio
25312531
// @public
25322532
export interface SplitSkill extends BaseSearchIndexerSkill {
25332533
defaultLanguageCode?: SplitSkillLanguage;
2534+
maximumPagesToTake?: number;
25342535
maxPageLength?: number;
25352536
odatatype: "#Microsoft.Skills.Text.SplitSkill";
2537+
pageOverlapLength?: number;
25362538
textSplitMode?: TextSplitMode;
25372539
}
25382540

sdk/search/search-documents/src/serviceModels.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2364,12 +2364,16 @@ export interface SentimentSkill extends BaseSearchIndexerSkill {
23642364
export interface SplitSkill extends BaseSearchIndexerSkill {
23652365
/** Polymorphic discriminator, which specifies the different types this object can be */
23662366
odatatype: "#Microsoft.Skills.Text.SplitSkill";
2367-
/** A value indicating which language code to use. Default is en. */
2367+
/** A value indicating which language code to use. Default is `en`. */
23682368
defaultLanguageCode?: SplitSkillLanguage;
23692369
/** A value indicating which split mode to perform. */
23702370
textSplitMode?: TextSplitMode;
23712371
/** The desired maximum page length. Default is 10000. */
23722372
maxPageLength?: number;
2373+
/** Only applicable when textSplitMode is set to 'pages'. If specified, n+1th chunk will start with this number of characters/tokens from the end of the nth chunk. */
2374+
pageOverlapLength?: number;
2375+
/** Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document. */
2376+
maximumPagesToTake?: number;
23732377
}
23742378

23752379
/** A skill to translate text from one language to another. */

0 commit comments

Comments
 (0)