KnowledgeBaseRetrievalClient Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. KnowledgeBaseRetrievalClient
- com.
public final class KnowledgeBaseRetrievalClient
Initializes a new instance of the synchronous KnowledgeBaseRetrievalClient type.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getEndpoint()
Gets the endpoint used to communicate with the Azure AI Search service. |
|
Search |
getServiceVersion()
Gets the SearchServiceVersion used to communicate with the Azure AI Search service. |
|
Knowledge |
retrieve(KnowledgeBaseRetrievalOptions retrievalRequest)
Knowledge |
|
Knowledge |
retrieve(KnowledgeBaseRetrievalOptions retrievalRequest, String querySourceAuthorization)
Knowledge |
|
Response<Knowledge |
retrieveWithResponse(KnowledgeBaseRetrievalOptions retrievalRequest, RequestOptions requestOptions)
Knowledge |
Methods inherited from java.lang.Object
Method Details
getEndpoint
public String getEndpoint()
Gets the endpoint used to communicate with the Azure AI Search service.
Returns:
getServiceVersion
public SearchServiceVersion getServiceVersion()
Gets the SearchServiceVersion used to communicate with the Azure AI Search service.
Returns:
retrieve
public KnowledgeBaseRetrievalResult retrieve(KnowledgeBaseRetrievalOptions retrievalRequest)
KnowledgeBase retrieves relevant data from backing stores.
Parameters:
Returns:
retrieve
public KnowledgeBaseRetrievalResult retrieve(KnowledgeBaseRetrievalOptions retrievalRequest, String querySourceAuthorization)
KnowledgeBase retrieves relevant data from backing stores.
Parameters:
Returns:
retrieveWithResponse
public Response<KnowledgeBaseRetrievalResult> retrieveWithResponse(KnowledgeBaseRetrievalOptions retrievalRequest, RequestOptions requestOptions)
KnowledgeBase retrieves relevant data from backing stores.
Header Parameters
| ------------------------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Name | Type | Required | Description |
| x-ms-query-source-authorization | String | No | Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns: