Skip to main content

knowledge_bases

Creates, updates, deletes, gets or lists a knowledge_bases resource.

Overview

Nameknowledge_bases
TypeResource
Idazure.ai_discovery.knowledge_bases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID for the resource.
namestringThe knowledgeBase name. Required.
bookshelfNamestringThe name of the associated Bookshelf tracked resource. Required.
copilotInstructionstringThe copilot instruction. Required.
createdAtstring (date-time)The timestamp when the resource was created.
createdBystringThe ID of the user who created this resource.
createdByTypestringThe type of user who created this resource. Known values are: "User", "Application", and "System". (User, Application, System)
descriptionstringThe description. Required.
knowledgeBaseUrlstringURL to access the knowledge base.
lastModifiedAtstring (date-time)The timestamp when the resource was last updated.
lastModifiedBystringThe ID of the user who updated this resource.
lastModifiedByTypestringThe type of user who updated this resource. Known values are: "User", "Application", and "System". (User, Application, System)
provisioningStatestringProvisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Provisioning, Updating, Deleting)
statusstringThe status. Known values are: "NotStarted", "Running", "Succeeded", "Canceled", and "Failed". (NotStarted, Running, Succeeded, Canceled, Failed)
storageAssetReferencesarrayStorage asset references to index.
tagsarrayThe tags.
versionstringVersion. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectendpointList KnowledgeBase resources.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

SELECT examples

List KnowledgeBase resources.

SELECT
id,
name,
bookshelfName,
copilotInstruction,
createdAt,
createdBy,
createdByType,
description,
knowledgeBaseUrl,
lastModifiedAt,
lastModifiedBy,
lastModifiedByType,
provisioningState,
status,
storageAssetReferences,
tags,
version
FROM azure.ai_discovery.knowledge_bases
WHERE endpoint = '{{ endpoint }}' -- required
;