KnowledgeBaseInput interface
Input for creating or updating a knowledge base with any of the supported AI model kinds. The legacy KnowledgeBase response type remains unchanged.
- Extends
-
Omit<KnowledgeBase, "models">
Properties
| models | Model configurations for Azure OpenAI, Microsoft Retriever 1, or an OpenAI-compatible endpoint. |
Inherited Properties
| answer |
Instructions considered by the knowledge base when generating answers. |
| cors |
Options to control Cross-Origin Resource Sharing (CORS) for the knowledge base. |
| description | The description of the knowledge base. |
| encryption |
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. |
| etag | The ETag of the knowledge base. |
| knowledge |
Knowledge sources referenced by this knowledge base. |
| name | The name of the knowledge base. |
| output |
The output mode for the knowledge base. |
| retrieval |
Instructions considered by the knowledge base when developing the query plan. |
| retrieval |
The retrieval reasoning effort configuration applied at retrieval time. |
| retrieve |
Persisted request-wide retrieve defaults for this knowledge base. These values apply to retrieve requests that omit the corresponding fields; request-time values take precedence when present. |
| tags | User-defined metadata for organizing the knowledge base. Tags do not control billing attribution or retrieval behavior. |
| tools | Tools exposed by this knowledge base for scoped retrieval. |
Property Details
models
Model configurations for Azure OpenAI, Microsoft Retriever 1, or an OpenAI-compatible endpoint.
models?: KnowledgeBaseModelInput[]
Property Value
Inherited Property Details
answerInstructions
Instructions considered by the knowledge base when generating answers.
answerInstructions?: string
Property Value
string
Inherited From Omit.answerInstructions
corsOptions
Options to control Cross-Origin Resource Sharing (CORS) for the knowledge base.
corsOptions?: CorsOptions
Property Value
Inherited From Omit.corsOptions
description
The description of the knowledge base.
description?: string
Property Value
string
Inherited From Omit.description
encryptionKey
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.
encryptionKey?: SearchResourceEncryptionKey
Property Value
Inherited From Omit.encryptionKey
etag
The ETag of the knowledge base.
etag?: string
Property Value
string
Inherited From Omit.etag
knowledgeSources
Knowledge sources referenced by this knowledge base.
knowledgeSources: KnowledgeSourceReference[]
Property Value
Inherited From Omit.knowledgeSources
name
The name of the knowledge base.
name: string
Property Value
string
Inherited From Omit.name
outputMode
The output mode for the knowledge base.
outputMode?: string
Property Value
string
Inherited From Omit.outputMode
retrievalInstructions
Instructions considered by the knowledge base when developing the query plan.
retrievalInstructions?: string
Property Value
string
Inherited From Omit.retrievalInstructions
retrievalReasoningEffort
The retrieval reasoning effort configuration applied at retrieval time.
retrievalReasoningEffort?: KnowledgeRetrievalReasoningEffortUnion
Property Value
Inherited From Omit.retrievalReasoningEffort
retrieveDefaults
Persisted request-wide retrieve defaults for this knowledge base. These values apply to retrieve requests that omit the corresponding fields; request-time values take precedence when present.
retrieveDefaults?: KnowledgeBaseRetrieveDefaults
Property Value
Inherited From Omit.retrieveDefaults
tags
User-defined metadata for organizing the knowledge base. Tags do not control billing attribution or retrieval behavior.
tags?: Record<string, string>
Property Value
Record<string, string>
Inherited From Omit.tags
tools
Tools exposed by this knowledge base for scoped retrieval.
tools?: KnowledgeBaseTool[]
Property Value
Inherited From Omit.tools