Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public enum SearchServiceVersion implements ServiceVersion {
*/
V2025_09_01("2025-09-01"),
/**
* Enum value 2025-11-01-preview.
* Enum value 2026-04-01.
*/
V2025_11_01_PREVIEW("2025-11-01-preview");
V2026_04_01("2026-04-01");

private final String version;

Expand All @@ -51,6 +51,6 @@ public String getVersion() {
* @return The latest {@link SearchServiceVersion}.
*/
public static SearchServiceVersion getLatest() {
return V2025_11_01_PREVIEW;
return V2026_04_01;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,27 @@ public KnowledgeBaseRetrievalClientImpl(HttpPipeline httpPipeline, SerializerAda
@Host("{endpoint}")
@ServiceInterface(name = "KnowledgeBaseRetrievalClient")
public interface KnowledgeBaseRetrievalClientService {
@Post("/retrieve/{knowledgeBaseName}")
@Post("/knowledgebases('{knowledgeBaseName}')/retrieve")
@ExpectedResponses({ 200, 206 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> retrieve(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
@PathParam("knowledgeBaseName") String knowledgeBaseName, @HeaderParam("Content-Type") String contentType,
@BodyParam("application/json") BinaryData retrievalRequest, RequestOptions requestOptions, Context context);
@QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String knowledgeBaseName,
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData retrievalRequest,
RequestOptions requestOptions, Context context);

@Post("/retrieve/{knowledgeBaseName}")
@Post("/knowledgebases('{knowledgeBaseName}')/retrieve")
@ExpectedResponses({ 200, 206 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept,
@PathParam("knowledgeBaseName") String knowledgeBaseName, @HeaderParam("Content-Type") String contentType,
@BodyParam("application/json") BinaryData retrievalRequest, RequestOptions requestOptions, Context context);
@QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String knowledgeBaseName,
@HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData retrievalRequest,
RequestOptions requestOptions, Context context);
}

/**
Expand All @@ -177,8 +177,8 @@ Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>x-ms-query-source-authorization</td><td>String</td><td>No</td><td>Token identifying the user for which
* the query is being executed. This token is used to enforce security restrictions on documents.</td></tr>
* <tr><td>Accept</td><td>String</td><td>No</td><td>The Accept header. Allowed values:
* "application/json;odata.metadata=minimal".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
Expand All @@ -202,19 +202,14 @@ Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
* }
* ]
* maxRuntimeInSeconds: Integer (Optional)
* maxOutputSize: Integer (Optional)
* retrievalReasoningEffort (Optional): {
* kind: String(minimal/low/medium) (Required)
* }
* maxOutputSizeInTokens: Integer (Optional)
* includeActivity: Boolean (Optional)
* outputMode: String(extractiveData/answerSynthesis) (Optional)
* knowledgeSourceParams (Optional): [
* (Optional){
* kind: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required)
* kind: String(searchIndex/azureBlob/indexedOneLake/web) (Required)
* knowledgeSourceName: String (Required)
* includeReferences: Boolean (Optional)
* includeReferenceSourceData: Boolean (Optional)
* alwaysQuerySource: Boolean (Optional)
* rerankerThreshold: Float (Optional)
* }
* ]
Expand All @@ -239,7 +234,7 @@ Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
* ]
* activity (Optional): [
* (Optional){
* type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint/modelQueryPlanning/modelAnswerSynthesis/agenticReasoning) (Required)
* type: String(searchIndex/azureBlob/indexedOneLake/web/agenticReasoning) (Required)
* id: int (Required)
* elapsedMs: Integer (Optional)
* error (Optional): {
Expand All @@ -262,7 +257,7 @@ Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
* ]
* references (Optional): [
* (Optional){
* type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required)
* type: String(searchIndex/azureBlob/indexedOneLake/web) (Required)
* id: String (Required)
* activitySource: int (Required)
* sourceData (Optional): {
Expand All @@ -288,10 +283,9 @@ Response<BinaryData> retrieveSync(@HostParam("endpoint") String endpoint,
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBaseName, BinaryData retrievalRequest,
RequestOptions requestOptions) {
final String accept = "application/json;odata.metadata=minimal";
final String contentType = "application/json";
return FluxUtil
.withContext(context -> service.retrieve(this.getEndpoint(), this.getServiceVersion().getVersion(), accept,
.withContext(context -> service.retrieve(this.getEndpoint(), this.getServiceVersion().getVersion(),
knowledgeBaseName, contentType, retrievalRequest, requestOptions, context));
}

Expand All @@ -301,8 +295,8 @@ public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBase
* <table border="1">
* <caption>Header Parameters</caption>
* <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
* <tr><td>x-ms-query-source-authorization</td><td>String</td><td>No</td><td>Token identifying the user for which
* the query is being executed. This token is used to enforce security restrictions on documents.</td></tr>
* <tr><td>Accept</td><td>String</td><td>No</td><td>The Accept header. Allowed values:
* "application/json;odata.metadata=minimal".</td></tr>
* </table>
* You can add these to a request with {@link RequestOptions#addHeader}
* <p><strong>Request Body Schema</strong></p>
Expand All @@ -326,19 +320,14 @@ public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBase
* }
* ]
* maxRuntimeInSeconds: Integer (Optional)
* maxOutputSize: Integer (Optional)
* retrievalReasoningEffort (Optional): {
* kind: String(minimal/low/medium) (Required)
* }
* maxOutputSizeInTokens: Integer (Optional)
* includeActivity: Boolean (Optional)
* outputMode: String(extractiveData/answerSynthesis) (Optional)
* knowledgeSourceParams (Optional): [
* (Optional){
* kind: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required)
* kind: String(searchIndex/azureBlob/indexedOneLake/web) (Required)
* knowledgeSourceName: String (Required)
* includeReferences: Boolean (Optional)
* includeReferenceSourceData: Boolean (Optional)
* alwaysQuerySource: Boolean (Optional)
* rerankerThreshold: Float (Optional)
* }
* ]
Expand All @@ -363,7 +352,7 @@ public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBase
* ]
* activity (Optional): [
* (Optional){
* type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint/modelQueryPlanning/modelAnswerSynthesis/agenticReasoning) (Required)
* type: String(searchIndex/azureBlob/indexedOneLake/web/agenticReasoning) (Required)
* id: int (Required)
* elapsedMs: Integer (Optional)
* error (Optional): {
Expand All @@ -386,7 +375,7 @@ public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBase
* ]
* references (Optional): [
* (Optional){
* type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required)
* type: String(searchIndex/azureBlob/indexedOneLake/web) (Required)
* id: String (Required)
* activitySource: int (Required)
* sourceData (Optional): {
Expand All @@ -411,9 +400,8 @@ public Mono<Response<BinaryData>> retrieveWithResponseAsync(String knowledgeBase
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> retrieveWithResponse(String knowledgeBaseName, BinaryData retrievalRequest,
RequestOptions requestOptions) {
final String accept = "application/json;odata.metadata=minimal";
final String contentType = "application/json";
return service.retrieveSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept,
knowledgeBaseName, contentType, retrievalRequest, requestOptions, Context.NONE);
return service.retrieveSync(this.getEndpoint(), this.getServiceVersion().getVersion(), knowledgeBaseName,
contentType, retrievalRequest, requestOptions, Context.NONE);
}
}
Loading
Loading