KnowledgeBase Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. KnowledgeBase
- com.
Implements
public final class KnowledgeBase
implements JsonSerializable<KnowledgeBase>
The KnowledgeBase model.
Constructor Summary
| Constructor | Description |
|---|---|
| KnowledgeBase(String name, List<KnowledgeSourceReference> knowledgeSources) |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
| String |
getAnswerInstructions()
Get the answer |
| String |
getDescription()
Get the description property: The description of the knowledge base. |
|
Search |
getEncryptionKey()
Get the encryption |
| String |
getETag()
Get the e |
|
List<Knowledge |
getKnowledgeSources()
Get the knowledge |
|
List<Knowledge |
getModels()
Get the models property: Contains configuration options on how to connect to AI models. |
| String |
getName()
Get the name property: The name of the knowledge knowledge base. |
|
Knowledge |
getOutputMode()
Get the output |
| String |
getRetrievalInstructions()
Get the retrieval |
|
Knowledge |
getRetrievalReasoningEffort()
Get the retrieval |
|
Knowledge |
setAnswerInstructions(String answerInstructions)
Set the answer |
|
Knowledge |
setDescription(String description)
Set the description property: The description of the knowledge base. |
|
Knowledge |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryption |
|
Knowledge |
setETag(String eTag)
Set the e |
|
Knowledge |
setModels(List<KnowledgeBaseModel> models)
Set the models property: Contains configuration options on how to connect to AI models. |
|
Knowledge |
setOutputMode(KnowledgeRetrievalOutputMode outputMode)
Set the output |
|
Knowledge |
setRetrievalInstructions(String retrievalInstructions)
Set the retrieval |
|
Knowledge |
setRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffort retrievalReasoningEffort)
Set the retrieval |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeBase
public KnowledgeBase(String name, List<KnowledgeSourceReference> knowledgeSources)
Creates an instance of KnowledgeBase class.
Parameters:
Method Details
fromJson
public static KnowledgeBase fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBase from the JsonReader.
Parameters:
Returns:
Throws:
getAnswerInstructions
public String getAnswerInstructions()
Get the answerInstructions property: Instructions considered by the knowledge knowledge base when generating answers.
Returns:
getDescription
public String getDescription()
Get the description property: The description of the knowledge base.
Returns:
getEncryptionKey
public SearchResourceEncryptionKey getEncryptionKey()
Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.
Returns:
getETag
public String getETag()
Get the eTag property: The ETag of the knowledge base.
Returns:
getKnowledgeSources
public List<KnowledgeSourceReference> getKnowledgeSources()
Get the knowledgeSources property: The knowledgeSources property.
Returns:
getModels
public List<KnowledgeBaseModel> getModels()
Get the models property: Contains configuration options on how to connect to AI models.
Returns:
getName
public String getName()
Get the name property: The name of the knowledge knowledge base.
Returns:
getOutputMode
public KnowledgeRetrievalOutputMode getOutputMode()
Get the outputMode property: The output configuration for this retrieval.
Returns:
getRetrievalInstructions
public String getRetrievalInstructions()
Get the retrievalInstructions property: Instructions considered by the knowledge knowledge base when developing query plan.
Returns:
getRetrievalReasoningEffort
public KnowledgeRetrievalReasoningEffort getRetrievalReasoningEffort()
Get the retrievalReasoningEffort property: The retrievalReasoningEffort property.
Returns:
setAnswerInstructions
public KnowledgeBase setAnswerInstructions(String answerInstructions)
Set the answerInstructions property: Instructions considered by the knowledge knowledge base when generating answers.
Parameters:
Returns:
setDescription
public KnowledgeBase setDescription(String description)
Set the description property: The description of the knowledge base.
Parameters:
Returns:
setEncryptionKey
public KnowledgeBase setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.
Parameters:
Returns:
setETag
public KnowledgeBase setETag(String eTag)
Set the eTag property: The ETag of the knowledge base.
Parameters:
Returns:
setModels
public KnowledgeBase setModels(List<KnowledgeBaseModel> models)
Set the models property: Contains configuration options on how to connect to AI models.
Parameters:
Returns:
setOutputMode
public KnowledgeBase setOutputMode(KnowledgeRetrievalOutputMode outputMode)
Set the outputMode property: The output configuration for this retrieval.
Parameters:
Returns:
setRetrievalInstructions
public KnowledgeBase setRetrievalInstructions(String retrievalInstructions)
Set the retrievalInstructions property: Instructions considered by the knowledge knowledge base when developing query plan.
Parameters:
Returns:
setRetrievalReasoningEffort
public KnowledgeBase setRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffort retrievalReasoningEffort)
Set the retrievalReasoningEffort property: The retrievalReasoningEffort property.
Parameters:
Returns: