Knowledge Bases - Create Or Update

新しいナレッジベースを作成したり、すでに存在しているナレッジベースを更新します。

PUT {endpoint}/knowledgebases('{knowledgeBaseName}')?api-version=2026-11-01-preview

URI パラメーター

Name / 必須 型 説明
endpoint
path True

string (uri)

検索サービスのエンドポイント URL。

knowledgeBaseName
path True

string

ナレッジ ベースの名前。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

要求ヘッダー

Name 必須 型 説明
x-ms-client-request-id

string (uuid)

要求の非透過的なグローバルに一意のクライアント生成文字列識別子。

Accept

Accept

Acceptヘッダーです。

If-Match

string

If-Match 条件を定義します。 この操作は、サーバー上の ETag がこの値に一致する場合にのみ実行されます。

If-None-Match

string

If-None-Match 条件を定義します。 この操作は、サーバー上の ETag がこの値と一致しない場合にのみ実行されます。

Prefer True

Prefer

HTTP PUT 要求の場合、成功時に作成/更新されたリソースを返すようにサービスに指示します。

要求本文

Name 必須 型 説明
knowledgeSources True

KnowledgeSourceReference[]

このナレッジベースで参照される知識源。

name True

string

ナレッジ ベースの名前。

@odata.etag

string

ナレッジベースの ETag。

answerInstructions

string

回答を生成する際にナレッジベースが考慮する指示。

corsOptions

CorsOptions

ナレッジベースにおけるクロスオリジン資源共有(CORS)の制御オプション。

description

string

ナレッジベースの説明。

encryptionKey

SearchResourceEncryptionKey

Azure Key Vault で作成する暗号化キーの説明。

models KnowledgeBaseModel[]:

AI モデルへの接続方法に関する構成オプションが含まれています。

outputMode

KnowledgeRetrievalOutputMode

ナレッジベースの出力モードです。

retrievalInstructions

string

クエリプラン作成時にナレッジベースが考慮する指示。

retrievalReasoningEffort KnowledgeRetrievalReasoningEffort:

検索推論の努力構成。

retrieveDefaults

KnowledgeBaseRetrieveDefaults

このナレッジベースのリクエスト全体での永続的な取得デフォルト。 これらの値は対応するフィールドを省略したリクエストの取得に適用されます。存在する場合はリクエスト時間の値が優先されます。

tags

object

ナレッジベースを分類し、その利用状況やコストを割り当てるユーザー定義のキー-値ペア。

tools

KnowledgeBaseTool[]

名前付き検索ツールは、それぞれこのナレッジベースのソースの一部に限定されています。 設定されると、MCPは組み込みのknowledge_base_retrieveツールに加えてこれらのツールを宣伝します。ツールはナレッジベース全体から取得します。 このAPIバージョンでツールを省略したり空の配列を指定すると、既存のツールがクリアされます。

応答

Name 型 説明
200 OK

KnowledgeBase

要求は成功しました。

201 Created

KnowledgeBase

要求が成功し、結果として新しいリソースが作成されました。

Other Status Codes

ErrorResponse

予期しないエラー応答。

セキュリティ

api-key

型: apiKey
/: header

OAuth2Auth

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/v2.0/authorize

スコープ

Name 説明
https://search.azure.com/.default

例

SearchServiceCreateOrUpdateKnowledgeBase
SearchServiceCreateOrUpdateKnowledgeBaseMicrosoftRetriever1
SearchServiceCreateOrUpdateKnowledgeBaseOpenAICompatible
SearchServiceCreateOrUpdateKnowledgeBaseOpenAICompatibleUserAssignedIdentity

SearchServiceCreateOrUpdateKnowledgeBase

要求のサンプル

PUT https://typespecpreviewexampleservice.search.windows.net/knowledgebases('base-preview-test')?api-version=2026-11-01-preview






{
  "name": "base-preview-test",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ],
  "models": [
    {
      "kind": "azureOpenAI",
      "azureOpenAIParameters": {
        "resourceUri": "https://test-sample.openai.azure.com/",
        "deploymentId": "myDeployment",
        "apiKey": "api-key",
        "modelName": "gpt-4o-mini"
      }
    }
  ],
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "outputMode": "extractiveData",
  "@odata.etag": "0x1234568AE7E58A1",
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "description": "Description of the knowledge base.",
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  }
}

応答のサンプル

{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "base-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "azureOpenAI",
      "azureOpenAIParameters": {
        "resourceUri": "https://test-sample.openai.azure.com/",
        "deploymentId": "myDeployment",
        "apiKey": "api-key",
        "modelName": "gpt-4o-mini"
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}
{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "base-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "azureOpenAI",
      "azureOpenAIParameters": {
        "resourceUri": "https://test-sample.openai.azure.com/",
        "deploymentId": "myDeployment",
        "apiKey": "api-key",
        "modelName": "gpt-4o-mini"
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}

SearchServiceCreateOrUpdateKnowledgeBaseMicrosoftRetriever1

要求のサンプル

PUT https://typespecpreviewexampleservice.search.windows.net/knowledgebases('travel-knowledgebase')?api-version=2026-11-01-preview




{
  "name": "travel-knowledgebase",
  "knowledgeSources": [
    {
      "name": "hotels"
    }
  ],
  "models": [
    {
      "kind": "microsoftRetriever1"
    }
  ],
  "outputMode": "extractiveData",
  "description": "Find hotels using Microsoft Retriever 1."
}

応答のサンプル

{
  "name": "travel-knowledgebase",
  "knowledgeSources": [
    {
      "name": "hotels"
    }
  ],
  "models": [
    {
      "kind": "microsoftRetriever1"
    }
  ],
  "outputMode": "extractiveData",
  "description": "Find hotels using Microsoft Retriever 1."
}
{
  "name": "travel-knowledgebase",
  "knowledgeSources": [
    {
      "name": "hotels"
    }
  ],
  "models": [
    {
      "kind": "microsoftRetriever1"
    }
  ],
  "outputMode": "extractiveData",
  "description": "Find hotels using Microsoft Retriever 1."
}

SearchServiceCreateOrUpdateKnowledgeBaseOpenAICompatible

要求のサンプル

PUT https://typespecpreviewexampleservice.search.windows.net/knowledgebases('compatible-model-preview-test')?api-version=2026-11-01-preview






{
  "name": "compatible-model-preview-test",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini",
        "headers": {
          "api-key": "EXAMPLE-NOT-A-REAL-SECRET"
        }
      }
    }
  ],
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "outputMode": "extractiveData",
  "@odata.etag": "0x1234568AE7E58A1",
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "description": "Description of the knowledge base.",
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  }
}

応答のサンプル

{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "compatible-model-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini"
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}
{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "compatible-model-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini"
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}

SearchServiceCreateOrUpdateKnowledgeBaseOpenAICompatibleUserAssignedIdentity

要求のサンプル

PUT https://typespecpreviewexampleservice.search.windows.net/knowledgebases('compatible-model-preview-test')?api-version=2026-11-01-preview






{
  "name": "compatible-model-preview-test",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini",
        "managedIdentityAudience": "11111111-2222-3333-4444-555555555555",
        "authIdentity": {
          "@odata.type": "#Microsoft.Azure.Search.DataUserAssignedIdentity",
          "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/search-identities/providers/Microsoft.ManagedIdentity/userAssignedIdentities/catalog-model-caller"
        }
      }
    }
  ],
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "outputMode": "extractiveData",
  "@odata.etag": "0x1234568AE7E58A1",
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "description": "Description of the knowledge base.",
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  }
}

応答のサンプル

{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "compatible-model-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini",
        "managedIdentityAudience": "11111111-2222-3333-4444-555555555555",
        "authIdentity": {
          "@odata.type": "#Microsoft.Azure.Search.DataUserAssignedIdentity",
          "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/search-identities/providers/Microsoft.ManagedIdentity/userAssignedIdentities/catalog-model-caller"
        }
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}
{
  "@odata.etag": "0x1234568AE7E58A1",
  "name": "compatible-model-preview-test",
  "description": "Description of the knowledge base.",
  "retrievalInstructions": "Instructions for retrieval for the knowledge base.",
  "answerInstructions": "Instructions for answer synthesis.",
  "outputMode": "extractiveData",
  "knowledgeSources": [
    {
      "name": "ks-preview-test"
    }
  ],
  "models": [
    {
      "kind": "openAICompatible",
      "openAICompatibleParameters": {
        "uri": "https://model-gateway.contoso.com/teams/catalog/chat/completions?route=primary&api-version=2026-01-01",
        "modelName": "gpt-4.1-mini",
        "managedIdentityAudience": "11111111-2222-3333-4444-555555555555",
        "authIdentity": {
          "@odata.type": "#Microsoft.Azure.Search.DataUserAssignedIdentity",
          "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/search-identities/providers/Microsoft.ManagedIdentity/userAssignedIdentities/catalog-model-caller"
        }
      }
    }
  ],
  "encryptionKey": {
    "keyVaultKeyName": "myUserManagedEncryptionKey-createdinAzureKeyVault",
    "keyVaultKeyVersion": "myKeyVersion-32charAlphaNumericString",
    "keyVaultUri": "https://myKeyVault.vault.azure.net",
    "isServiceLevelKey": false,
    "accessCredentials": {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "applicationSecret": "<applicationSecret>"
    }
  },
  "tags": {
    "businessUnit": "Contoso Engineering Department",
    "costCenter": "ABC-123",
    "owner": "Contoso"
  },
  "retrievalReasoningEffort": {
    "kind": "low"
  },
  "corsOptions": {
    "allowedOrigins": [
      "https://myapp.example.com"
    ],
    "maxAgeInSeconds": 300
  },
  "retrieveDefaults": {
    "maxRuntimeInSeconds": 45,
    "maxOutputDocuments": 8,
    "maxOutputSizeInTokens": 12000
  },
  "tools": [
    {
      "name": "product-search",
      "description": "Search product documentation.",
      "knowledgeSources": [
        {
          "name": "ks-preview-test",
          "alwaysQuerySource": false,
          "filterAddOn": "id ne null",
          "maxOutputDocuments": 50,
          "failOnError": true
        }
      ],
      "retrievalReasoningEffort": {
        "kind": "low"
      },
      "retrieveDefaults": {
        "maxRuntimeInSeconds": 30,
        "maxOutputDocuments": 2,
        "maxOutputSizeInTokens": 5000
      }
    }
  ]
}

定義

Name 説明
Accept

Acceptヘッダーです。

AzureOpenAIModelName

呼び出される Azure Open AI モデル名。

AzureOpenAIVectorizerParameters

Azure OpenAI リソースに接続するためのパラメーターを指定します。

CorsOptions

インデックスのクロスオリジン リソース共有 (CORS) を制御するオプションを定義します。

ErrorAdditionalInfo

リソース管理エラーの追加情報

ErrorDetail

エラーの詳細。

ErrorResponse

失敗した操作のエラーの詳細を返す、すべての Azure Resource Manager API の一般的なエラー応答。 (これは、OData エラー応答形式にも従います)。

KnowledgeBase

ナレッジベースの定義を表しています。

KnowledgeBaseAzureOpenAIModel

クエリ計画の実行に使用する Azure OpenAI リソースを指定します。

KnowledgeBaseMicrosoftRetriever1Model

クエリの計画および取得に使用される Microsoft Retriever 1 を指定します。

KnowledgeBaseModelKind

クエリ計画に使用される AI モデル。

KnowledgeBaseOpenAICompatibleModel

ナレッジベース検索または最小モードナレッジソース画像の言語化のための顧客管理型OpenAI互換モデルを指定します。 取得時には、モデルプロファイルがチャット完了または応答を選択します。 Standard/CU 抽出や Web ナレッジソースのナレッジベースにはサポートされていません。

KnowledgeBaseOpenAICompatibleParameters

OpenAI互換のチャット完了または応答エンドポイントの接続パラメータ。 作成には、空でないヘッダーまたは managedIdentityAudience のいずれかがちょうど 1 つ必要です。 更新では、変更されていない接続およびモデルプロファイルに対して認証情報を保持するためにヘッダーを省略することができます。

KnowledgeBaseRetrieveDefaults

ナレッジベースの取得リクエストに対してリクエスト全体のデフォルトを永続化します。 各値は対応するリトリート-リクエストフィールドのデフォルトを提供します。サービスデフォルトは設定されていない時に適用され、リクエストタイムの値が存在する場合は優先されます。

KnowledgeBaseTool

顧客提供の説明とナレッジベースのソースの一部を含む名前付き検索ツール。

KnowledgeBaseToolKnowledgeSourceReference

既存のナレッジソースおよび選択された永続検索デフォルトの一部への参照であり、完全なリクエスト時間パラメータモデルではありません。 参照元のソースが種類を決定します。ナレッジベースを保存すると、互換性のないデフォルトは拒否されます。 明示的な取得リクエスト値が優先されますが、フィルターはANDと組み合わせられます。

KnowledgeRetrievalAutoReasoningEffort

検索時に自動的に推論努力を選択します。 サービスはすべてのリクエストを最も安価なティアでシードし、サービスの最大利用可能なティアまで必要な範囲でのみエスカレーションします。

KnowledgeRetrievalLowReasoningEffort

知識検索は、推論の手間を抑えて実行しましょう。

KnowledgeRetrievalMediumReasoningEffort

中程度の推論作業で知識検索を実行します。

KnowledgeRetrievalMinimalReasoningEffort

最小限の推論で知識検索を実行しましょう。

KnowledgeRetrievalOutputMode

この取得の出力設定。

KnowledgeRetrievalReasoningEffortKind

取得中に使用する作業量。

KnowledgeSourceReference

知識源への言及。

Prefer

HTTP PUT 要求の場合、成功時に作成/更新されたリソースを返すようにサービスに指示します。

SearchIndexerDataNoneIdentity

データソースの ID プロパティをクリアします。

SearchIndexerDataUserAssignedIdentity

使用するデータソースの ID を指定します。

SearchResourceEncryptionKey

Azure Key Vault のカスタマー マネージド暗号化キー。 作成および管理するキーを使用して、インデックスやシノニム マップなどの保存データの暗号化または暗号化解除を行うことができます。

Accept

Acceptヘッダーです。

値 説明
application/json;odata.metadata=minimal

AzureOpenAIModelName

呼び出される Azure Open AI モデル名。

値 説明
text-embedding-ada-002

TextEmbeddingAda002モデル。

text-embedding-3-large

TextEmbedding3Largeモデル。

text-embedding-3-small

TextEmbedding3Small モデル。

gpt-4o

GPT4oモデル。

gpt-4o-mini

GPT4oMiniモデル。

gpt-4.1

GPT41モデル。

gpt-4.1-mini

GPT41Miniモデルです。

gpt-4.1-nano

GPT41Nanoモデル。

gpt-5

GPT5モデル。

gpt-5-mini

GPT5Miniモデル。

gpt-5-nano

Gpt5Nanoモデルです。

gpt-5.1

GPT51モデル。

gpt-5.2

GPT52モデル。

gpt-5.4

GPT54モデルです。

gpt-5.4-mini

GPT54Miniモデル。

gpt-5.4-nano

Gpt54Nanoモデル。

gpt-5.5

GPT55モデルです。

gpt-5.6-sol

GPT56Solモデル。

gpt-5.6-terra

GPT56Terraモデル。

gpt-5.6-luna

GPT56Lunaモデル。

gpt-6-astra

Gpt6Astraモデル。

gpt-6-sol

Gpt6Solモデル。

gpt-6-luna

Gpt6Lunaモデル。

gpt-6.1-sol

Gpt61Solモデル。

AzureOpenAIVectorizerParameters

Azure OpenAI リソースに接続するためのパラメーターを指定します。

Name 型 説明
apiKey

string

指定された Azure OpenAI リソースの API キー。

authIdentity SearchIndexerDataIdentity:

送信接続に使用されるユーザー割り当てマネージド ID。

deploymentId

string

指定されたリソースに対する Azure OpenAI モデルデプロイの ID。

modelName

AzureOpenAIModelName

指定された deploymentId パスにデプロイされる埋め込みモデルの名前。

resourceUri

string (uri)

Azure OpenAI リソースのリソース URI。

CorsOptions

インデックスのクロスオリジン リソース共有 (CORS) を制御するオプションを定義します。

Name 型 説明
allowedOrigins

string[]

JavaScript コードにインデックスへのアクセスを許可されるオリジンのリスト。 {protocol}://{fully-qualified-domain-name}[:{port#}] 形式のホストのリスト、またはすべてのオリジンを許可する 1 つの '*' を含めることができます (推奨されません)。

maxAgeInSeconds

integer (int64)

ブラウザーが CORS プリフライト応答をキャッシュする期間。 デフォルトは 5 分です。

ErrorAdditionalInfo

リソース管理エラーの追加情報

Name 型 説明
info

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

Name 型 説明
additionalInfo

ErrorAdditionalInfo[]

エラーに関する追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細。

message

string

エラー メッセージ。

target

string

エラーの対象。

ErrorResponse

失敗した操作のエラーの詳細を返す、すべての Azure Resource Manager API の一般的なエラー応答。 (これは、OData エラー応答形式にも従います)。

Name 型 説明
error

ErrorDetail

エラー オブジェクト。

KnowledgeBase

ナレッジベースの定義を表しています。

Name 型 説明
@odata.etag

string

ナレッジベースの ETag。

answerInstructions

string

回答を生成する際にナレッジベースが考慮する指示。

corsOptions

CorsOptions

ナレッジベースにおけるクロスオリジン資源共有(CORS)の制御オプション。

description

string

ナレッジベースの説明。

encryptionKey

SearchResourceEncryptionKey

Azure Key Vault で作成する暗号化キーの説明。

knowledgeSources

KnowledgeSourceReference[]

このナレッジベースで参照される知識源。

models KnowledgeBaseModel[]:

AI モデルへの接続方法に関する構成オプションが含まれています。

name

string

ナレッジ ベースの名前。

outputMode

KnowledgeRetrievalOutputMode

ナレッジベースの出力モードです。

retrievalInstructions

string

クエリプラン作成時にナレッジベースが考慮する指示。

retrievalReasoningEffort KnowledgeRetrievalReasoningEffort:

検索推論の努力構成。

retrieveDefaults

KnowledgeBaseRetrieveDefaults

このナレッジベースのリクエスト全体での永続的な取得デフォルト。 これらの値は対応するフィールドを省略したリクエストの取得に適用されます。存在する場合はリクエスト時間の値が優先されます。

tags

object

ナレッジベースを分類し、その利用状況やコストを割り当てるユーザー定義のキー-値ペア。

tools

KnowledgeBaseTool[]

名前付き検索ツールは、それぞれこのナレッジベースのソースの一部に限定されています。 設定されると、MCPは組み込みのknowledge_base_retrieveツールに加えてこれらのツールを宣伝します。ツールはナレッジベース全体から取得します。 このAPIバージョンでツールを省略したり空の配列を指定すると、既存のツールがクリアされます。

KnowledgeBaseAzureOpenAIModel

クエリ計画の実行に使用する Azure OpenAI リソースを指定します。

Name 型 説明
azureOpenAIParameters

AzureOpenAIVectorizerParameters

Azure OpenAIパラメータ。

kind string:

azureOpenAI

クエリ計画に使用される AI モデル。

KnowledgeBaseMicrosoftRetriever1Model

クエリの計画および取得に使用される Microsoft Retriever 1 を指定します。

Name 型 説明
kind string:

microsoftRetriever1

クエリ計画に使用される AI モデル。

KnowledgeBaseModelKind

クエリ計画に使用される AI モデル。

値 説明
azureOpenAI

クエリ計画に Azure Open AI モデルを使用します。

openAICompatible

ナレッジベース取得やナレッジソース画像の言語化には、顧客管理のOpenAI互換エンドポイントを使用します。

microsoftRetriever1

クエリの計画と取得には Microsoft Retriever 1 を使用してください。

KnowledgeBaseOpenAICompatibleModel

ナレッジベース検索または最小モードナレッジソース画像の言語化のための顧客管理型OpenAI互換モデルを指定します。 取得時には、モデルプロファイルがチャット完了または応答を選択します。 Standard/CU 抽出や Web ナレッジソースのナレッジベースにはサポートされていません。

Name 型 説明
kind string:

openAICompatible

クエリ計画に使用される AI モデル。

openAICompatibleParameters

KnowledgeBaseOpenAICompatibleParameters

OpenAI互換エンドポイントの接続および認証パラメータ。

KnowledgeBaseOpenAICompatibleParameters

OpenAI互換のチャット完了または応答エンドポイントの接続パラメータ。 作成には、空でないヘッダーまたは managedIdentityAudience のいずれかがちょうど 1 つ必要です。 更新では、変更されていない接続およびモデルプロファイルに対して認証情報を保持するためにヘッダーを省略することができます。

Name 型 説明
authIdentity SearchIndexerDataIdentity:

managedIdentityAudience のトークンを取得するために使用されたユーザー割り当てのマネージドアイデンティティ。 検索サービスのシステム割り当てIDを使用しないこと。 managedIdentityAudienceでのみ許可されます。

headers

object (password)

エンドポイント認証用の空でない保存されたHTTPヘッダー。 名前と値はどちらも秘密であり、応答で返されることはありません。 空のマップは無効です。 managedIdentityAudience および authIdentity と相互排他的。 更新時には、省略されたヘッダーは、正確なエンドポイント、モデルプロファイル、認証IDが変更されていない限り、同じリソースおよびモデルバインディング上にのみ保持されます。それ以外の場合は、新しい認証情報を入力してください。

managedIdentityAudience

string

マネージドID認証用の顧客のサードパーティ製Microsoft Entraアプリケーションの標準的なアプリケーションGUID。 api:// プレフィックスや/.デフォルト接尾辞は含めないでください。 ヘッダーを使った相互排他的。

modelName

AzureOpenAIModelName

検索の機能と制限を決定するサポートされているチャットモデル名。 ナレッジソース画像の言語化については、リクエスト本文のモデルセレクターとして送信されます。URIパスは、この名前とは無関係にチャット完了または応答を選択します。 ナレッジベース検索のために、GPT-6モデルプロファイルはレスポンスを使用し、既存のモデルプロファイルはチャットコンプリートを使用します。エンドポイントは選択したプロトコルをサポートし、レスポンス用のステートレスツール継続も含めて対応する必要があります。 取得要求ボディはモデルを省略します。URIまたはゲートウェイは実際のモデルを選択し、必要なプロバイダーモデル識別子を提供します。 埋め込みモデルや任意のプロバイダープロトコルはサポートされていません。

uri

string (uri)

パスパラメータおよびクエリパラメータを含む完全なHTTPS POST URLです。 パスやAPIバージョンを追加せずに変更せずに送信されます。リダイレクトは実行されません。 ナレッジベース取得を行うには、エンドポイントがモデルプロファイルのチャット完了または応答プロトコルを受け入れる必要があります。 ナレッジソース画像の言語化では、URIパスの末尾は/chat/completionsまたは/responseで終わる必要があります。クエリパラメータはプロトコルを選択しません。

KnowledgeBaseRetrieveDefaults

ナレッジベースの取得リクエストに対してリクエスト全体のデフォルトを永続化します。 各値は対応するリトリート-リクエストフィールドのデフォルトを提供します。サービスデフォルトは設定されていない時に適用され、リクエストタイムの値が存在する場合は優先されます。

Name 型 説明
maxOutputDocuments

integer (int32)

取得出力のデフォルト最大ドキュメント数です。

maxOutputSizeInTokens

integer (int32)

リトリーブ出力のコンテンツのデフォルトの最大サイズ(トークン単位)です。

maxRuntimeInSeconds

integer (int32)

取得リクエストのデフォルトの最大実行時間は秒単位です。

KnowledgeBaseTool

顧客提供の説明とナレッジベースのソースの一部を含む名前付き検索ツール。

Name 型 説明
description

string

minLength: 1
maxLength: 1024

ツールを使用するタイミングの空ではない説明(最大1024文字)。 MCPカタログにそのまま掲載されていました。

knowledgeSources

KnowledgeBaseToolKnowledgeSourceReference[]

一意のソース参照の空ではないリスト。 各ソースはナレッジベースに属していなければなりません。 異なるツールが同じ出典を参照している場合もあります。

name

string

minLength: 2
maxLength: 64
pattern: ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])$

唯一無二の大文字大文字・小文字を区別するツール名。 2〜64個までの小文字のASCII文字、数字、またはハイフンを含み、先頭や末尾のハイフンはありません。

retrievalReasoningEffort KnowledgeRetrievalReasoningEffort:

このツールに対するナレッジベースの推論作業を上書きします。 明示的な retrieve-request 値が優先されます。

retrieveDefaults

KnowledgeBaseRetrieveDefaults

このツールのナレッジベースのデフォルトを上書きするデフォルトを取得します。 明示的な retrieve-request 値が優先されます。

KnowledgeBaseToolKnowledgeSourceReference

既存のナレッジソースおよび選択された永続検索デフォルトの一部への参照であり、完全なリクエスト時間パラメータモデルではありません。 参照元のソースが種類を決定します。ナレッジベースを保存すると、互換性のないデフォルトは拒否されます。 明示的な取得リクエスト値が優先されますが、フィルターはANDと組み合わせられます。

Name 型 説明
alwaysQuerySource

boolean

ソースを照会する必要があるかどうか。 MCPサーバーソースにはサポートされていません。 明示的なリクエスト除外が優先されます。

failOnError

boolean

このソースがエラーに遭遇した場合に取得を失敗させるかどうか。

filterAddOn

string

検索インデックスソース用の追加の OData フィルター。 ナレッジベースが保存された際にサポートされていないソースの種類に対して拒否されます。 ソースフィルターとリクエストフィルターをANDで組み合わせて。

maxOutputDocuments

integer (int32)

minimum: 50
maximum: 200

このソースから取得できる文書の最大数は、50〜200 の間です。

name

string

minLength: 1

ナレッジベース内の知識ソースの名前。

rerankerThreshold

number (float)

返送された文書に対する最低リランクスコア。 ランク変更を有効にする必要があります。

KnowledgeRetrievalAutoReasoningEffort

検索時に自動的に推論努力を選択します。 サービスはすべてのリクエストを最も安価なティアでシードし、サービスの最大利用可能なティアまで必要な範囲でのみエスカレーションします。

Name 型 説明
kind string:

auto

推論の努力のようなものです。

KnowledgeRetrievalLowReasoningEffort

知識検索は、推論の手間を抑えて実行しましょう。

Name 型 説明
kind string:

low

推論の努力のようなものです。

KnowledgeRetrievalMediumReasoningEffort

中程度の推論作業で知識検索を実行します。

Name 型 説明
kind string:

medium

推論の努力のようなものです。

KnowledgeRetrievalMinimalReasoningEffort

最小限の推論で知識検索を実行しましょう。

Name 型 説明
kind string:

minimal

推論の努力のようなものです。

KnowledgeRetrievalOutputMode

この取得の出力設定。

値 説明
extractiveData

生成変更なしでナレッジ ソースから直接データを返します。

answerSynthesis

応答ペイロードの回答を合成します。

KnowledgeRetrievalReasoningEffortKind

取得中に使用する作業量。

値 説明
minimal

ソースの選択、クエリの計画、または反復検索は実行しません。

low

検索中は低い推論を使用します。

medium

検索中は適度な量の推論を使用します。

auto

回収時に自動的に理由付けの努力を選択し、最も安い階層から必要な範囲だけエスカレーションします。

KnowledgeSourceReference

知識源への言及。

Name 型 説明
enableFreshness

boolean

この知識ソースに対して新鮮度認識検索を有効にするべきかどうかを示します。 正しい場合、検索時に新しさスコアプロファイルが適用され、結果は新しい文書に偏ります。

enableImageServing

boolean

この知識ソースに対して画像提供を有効にするべきかどうかを示します。 もしそうであれば、インジェスト時に抽出された画像はクエリ時に下流モデルに提供されます。

name

string

ナレッジソースの名前。

Prefer

HTTP PUT 要求の場合、成功時に作成/更新されたリソースを返すようにサービスに指示します。

値 説明
return=representation

SearchIndexerDataNoneIdentity

データソースの ID プロパティをクリアします。

Name 型 説明
@odata.type string:

#Microsoft.Azure.Search.DataNoneIdentity

ID のタイプを指定する URI フラグメント。

SearchIndexerDataUserAssignedIdentity

使用するデータソースの ID を指定します。

Name 型 説明
@odata.type string:

#Microsoft.Azure.Search.DataUserAssignedIdentity

ID のタイプを指定する URI フラグメント。

federatedIdentityClientId

string

マルチテナント User-Assigned マネージドIDサポート:ユーザー割り当てのマネージデンティティIDとフェデレートするように設定されたマルチテンタントアプリのクライアントID。

userAssignedIdentity

string

通常、ユーザー割り当てマネージド ID の完全修飾 Azure リソース ID は、検索サービスに割り当てられている必要がある "/subscriptions/12345678-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" の形式です。

SearchResourceEncryptionKey

Azure Key Vault のカスタマー マネージド暗号化キー。 作成および管理するキーを使用して、インデックスやシノニム マップなどの保存データの暗号化または暗号化解除を行うことができます。

Name 型 規定値 説明
accessCredentials.applicationId

string

保存データの暗号化時に使用される Azure Key Vault に対する必要なアクセス許可が付与された AAD アプリケーション ID。 アプリケーション ID は、AAD アプリケーションのオブジェクト ID と混同しないでください。

accessCredentials.applicationSecret

string

指定した AAD アプリケーションの認証キー。

identity SearchIndexerDataIdentity:

この暗号化キーに使用する明示的なマネージド ID。 指定されず、アクセス資格情報プロパティが null の場合は、システム割り当てマネージド ID が使用されます。 リソースの更新時に、明示的な ID が指定されていない場合、変更されません。 "none" が指定されている場合、このプロパティの値はクリアされます。

isServiceLevelKey

boolean

False

このキーがサービスレベルキーかどうかを示すオプションの値です。 既定値は falseです。

keyVaultKeyName

string

保存データの暗号化に使用する Azure Key Vault キーの名前。

keyVaultKeyVersion

string

保存データの暗号化に使用する Azure Key Vault キーのバージョン。

keyVaultUri

string

保存データの暗号化に使用するキーを含む Azure Key Vault の URI (DNS 名とも呼ばれます)。 URI の例は、https://my-keyvault-name.vault.azure.net可能性があります。