KnowledgeBaseRetrievalOptions Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseRetrievalOptions
- com.
Implements
public final class KnowledgeBaseRetrievalOptions
implements JsonSerializable<KnowledgeBaseRetrievalOptions>
The input contract for the retrieval request.
Constructor Summary
| Constructor | Description |
|---|---|
| KnowledgeBaseRetrievalOptions() |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
|
List<Knowledge |
getIntents()
Get the intents property: A list of intended queries to execute without model query planning. |
|
List<Knowledge |
getKnowledgeSourceParams()
Get the knowledge |
| Integer |
getMaxOutputSizeInTokens()
Get the max |
| Integer |
getMaxRuntimeInSeconds()
Get the max |
| Boolean |
isIncludeActivity()
Get the include |
|
Knowledge |
setIncludeActivity(Boolean includeActivity)
Set the include |
|
Knowledge |
setIntents(KnowledgeRetrievalIntent[] intents)
Set the intents property: A list of intended queries to execute without model query planning. |
|
Knowledge |
setIntents(List<KnowledgeRetrievalIntent> intents)
Set the intents property: A list of intended queries to execute without model query planning. |
|
Knowledge |
setKnowledgeSourceParams(List<KnowledgeSourceParams> knowledgeSourceParams)
Set the knowledge |
|
Knowledge |
setMaxOutputSizeInTokens(Integer maxOutputSizeInTokens)
Set the max |
|
Knowledge |
setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeBaseRetrievalOptions
public KnowledgeBaseRetrievalOptions()
Creates an instance of KnowledgeBaseRetrievalOptions class.
Method Details
fromJson
public static KnowledgeBaseRetrievalOptions fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBaseRetrievalOptions from the JsonReader.
Parameters:
Returns:
Throws:
getIntents
public List<KnowledgeRetrievalIntent> getIntents()
Get the intents property: A list of intended queries to execute without model query planning.
Returns:
getKnowledgeSourceParams
public List<KnowledgeSourceParams> getKnowledgeSourceParams()
Get the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.
Returns:
getMaxOutputSizeInTokens
public Integer getMaxOutputSizeInTokens()
Get the maxOutputSizeInTokens property: Limits the maximum size of the content in the output.
Returns:
getMaxRuntimeInSeconds
public Integer getMaxRuntimeInSeconds()
Get the maxRuntimeInSeconds property: The maximum runtime in seconds.
Returns:
isIncludeActivity
public Boolean isIncludeActivity()
Get the includeActivity property: Indicates retrieval results should include activity information.
Returns:
setIncludeActivity
public KnowledgeBaseRetrievalOptions setIncludeActivity(Boolean includeActivity)
Set the includeActivity property: Indicates retrieval results should include activity information.
Parameters:
Returns:
setIntents
public KnowledgeBaseRetrievalOptions setIntents(KnowledgeRetrievalIntent[] intents)
Set the intents property: A list of intended queries to execute without model query planning.
Parameters:
Returns:
setIntents
public KnowledgeBaseRetrievalOptions setIntents(List<KnowledgeRetrievalIntent> intents)
Set the intents property: A list of intended queries to execute without model query planning.
Parameters:
Returns:
setKnowledgeSourceParams
public KnowledgeBaseRetrievalOptions setKnowledgeSourceParams(List<KnowledgeSourceParams> knowledgeSourceParams)
Set the knowledgeSourceParams property: A list of runtime parameters for the knowledge sources.
Parameters:
Returns:
setMaxOutputSizeInTokens
public KnowledgeBaseRetrievalOptions setMaxOutputSizeInTokens(Integer maxOutputSizeInTokens)
Set the maxOutputSizeInTokens property: Limits the maximum size of the content in the output.
Parameters:
Returns:
setMaxRuntimeInSeconds
public KnowledgeBaseRetrievalOptions setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds)
Set the maxRuntimeInSeconds property: The maximum runtime in seconds.
Parameters:
Returns: