Package com.sap.ai.sdk.grounding
Class GroundingClient
java.lang.Object
com.sap.ai.sdk.grounding.GroundingClient
Service class for the Document Grounding APIs.
- Since:
- 1.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.GroundingClient(AiCoreService service) Constructor with custom AI Core service instance.GroundingClient(AiCoreService service, String basePath) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected List<com.sap.cloud.sdk.cloudplatform.connectivity.Header> protected AiCoreServiceGet the Pipelines API.Get the Retrieval API.vector()Get the Vector API.withHeader(String key, String value) Create a new OpenAI client with a custom header added to every call made with this client
-
Constructor Details
-
GroundingClient
public GroundingClient()Default constructor. -
GroundingClient
Constructor with custom AI Core service instance.- Parameters:
service- The instance of AI Core service
-
GroundingClient
-
-
Method Details
-
pipelines
Get the Pipelines API.- Returns:
- The Pipelines API.
-
vector
Get the Vector API.- Returns:
- The Vector API.
-
retrieval
Get the Retrieval API.- Returns:
- The Retrieval API.
-
withHeader
Create a new OpenAI client with a custom header added to every call made with this client- Parameters:
key- the key of the custom header to addvalue- the value of the custom header to add- Returns:
- a new client.
- Since:
- 1.17.0
-
getService
-
getBasePath
-
getCustomHeaders
-