Language

KnowledgeBaseRetrievalClient Class

Definition

The KnowledgeBaseRetrievalClient.

public class KnowledgeBaseRetrievalClient
type KnowledgeBaseRetrievalClient = class
Public Class KnowledgeBaseRetrievalClient
Inheritance
KnowledgeBaseRetrievalClient

Constructors

Name Description
KnowledgeBaseRetrievalClient()

Initializes a new instance of KnowledgeBaseRetrievalClient for mocking.

KnowledgeBaseRetrievalClient(KnowledgeBaseRetrievalClientSettings)

Initializes a new instance of KnowledgeBaseRetrievalClient from a KnowledgeBaseRetrievalClientSettings.

KnowledgeBaseRetrievalClient(Uri, String, AzureKeyCredential, SearchClientOptions)

Initializes a new instance of KnowledgeBaseRetrievalClient.

KnowledgeBaseRetrievalClient(Uri, String, AzureKeyCredential)

Initializes a new instance of KnowledgeBaseRetrievalClient.

KnowledgeBaseRetrievalClient(Uri, String, TokenCredential, SearchClientOptions)

Initializes a new instance of KnowledgeBaseRetrievalClient.

KnowledgeBaseRetrievalClient(Uri, String, TokenCredential)

Initializes a new instance of KnowledgeBaseRetrievalClient.

Properties

Name Description
Endpoint

Gets the URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net".

KnowledgeBaseName

Gets the name of the knowledge base.

Pipeline

The HTTP pipeline for sending and receiving REST requests and responses.

Methods

Name Description
Retrieve(KnowledgeBaseRetrievalRequest, String, String, CancellationToken)

KnowledgeBase retrieves relevant data from backing stores.

Retrieve(RequestContent, RequestContext)

KnowledgeBase retrieves relevant data from backing stores.

Retrieve(RequestContent, String, String, RequestContext)

[Protocol Method] KnowledgeBase retrieves relevant data from backing stores.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
RetrieveAsync(KnowledgeBaseRetrievalRequest, String, String, CancellationToken)

KnowledgeBase retrieves relevant data from backing stores.

RetrieveAsync(RequestContent, RequestContext)

KnowledgeBase retrieves relevant data from backing stores.

RetrieveAsync(RequestContent, String, String, RequestContext)

[Protocol Method] KnowledgeBase retrieves relevant data from backing stores.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
RetrieveStreamAsync(KnowledgeBaseRetrievalRequest, String, String, CancellationToken)

KnowledgeBase retrieves relevant data from backing stores, streaming progress and results as server-sent events on the same connection as they become available, instead of waiting for the full retrieval to complete.

RetrieveStreamAsync(RequestContent, String, String, RequestContext)

[Protocol Method] Retrieves relevant data from backing stores and streams progress and results as server-sent events. Process the response incrementally using server-sent event framing. Each event contains an event name and a JSON-encoded data payload. The stream ends with either a response.completed event or an error event. OpenAPI 2.0 represents the response body as a string, so generated clients may expose the raw response without typed event parsing. Do not deserialize the complete response body as a single JSON document.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

Applies to