Ingestion Jobs - Create
Belirtilen iş kimliğine sahip bir alma işi oluşturur.
PUT {endpoint}/openai/ingestion/jobs/{job-id}?api-version=2025-02-01-preview
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
endpoint
|
path | True |
string (url) |
Desteklenen Bilişsel Hizmetler uç noktaları (protokol ve konak adı, örneğin: https://aoairesource.openai.azure.com. "aoairesource" yerine Azure OpenAI hesap adınızı yazın). |
job-id
|
path | True |
string |
Oluşturulacak işin kimliği. |
api-version
|
query | True |
string |
İstenen API sürümü. |
İstek Başlığı
Name | Gerekli | Tür | Description |
---|---|---|---|
mgmt-user-token |
string |
Çalışma alanına erişmek için kullanılan belirteç (yalnızca kullanıcı işlem işleri için gereklidir). |
|
aml-user-token |
string |
Çalışma alanında işin içindeki kaynaklara erişmek için kullanılan belirteç (yalnızca kullanıcı işlem işleri için gereklidir). |
İstek Gövdesi
İstek gövdesi şunlardan biri olabilir:
Name | Description |
---|---|
Ingestion |
|
Ingestion |
IngestionJobSystemCompute
Name | Gerekli | Tür | Description |
---|---|---|---|
kind | True |
string:
System |
IngestionJobType |
completionAction |
Tamamlama eylemi. |
||
dataRefreshIntervalInHours |
integer |
||
datasource | SystemComputeDatasource: |
SystemComputeDatasource |
|
jobId |
string |
||
searchServiceConnection | BaseConnection: |
BaseConnection |
IngestionJobUserCompute
Name | Gerekli | Tür | Description |
---|---|---|---|
kind | True |
string:
User |
IngestionJobType |
workspaceId | True |
string |
|
compute | JobCompute: |
jobcompute |
|
dataRefreshIntervalInHours |
integer |
||
datasource | UserComputeDatasource: |
UserComputeDatasource |
|
jobId |
string |
||
target | TargetIndex: |
TargetIndex |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK | IngestionJob: |
Başarı |
Other Status Codes |
Bir hata oluştu. |
Güvenlik
api-key
API anahtarı kimlik doğrulaması
Tür:
apiKey
İçinde:
header
OAuth2Auth
OAuth2 kimlik doğrulaması
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Kapsamlar
Name | Description |
---|---|
https://cognitiveservices.azure.com/.default |
Örnekler
Create a system-compute ingestion job |
Create a user-compute ingestion job |
Create a system-compute ingestion job
Örnek isteği
PUT {endpoint}/openai/ingestion/jobs/ingestion-job?api-version=2025-02-01-preview
{
"kind": "SystemCompute",
"searchServiceConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://aykame-dev-search.search.windows.net"
},
"datasource": {
"kind": "Storage",
"connection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://mystorage.blob.core.windows.net/",
"resourceId": "/subscriptions/1234567-abcd-1234-5678-1234abcd/resourceGroups/my-resource/providers/Microsoft.Storage/storageAccounts/mystorage"
},
"containerName": "container",
"chunking": {
"maxChunkSizeInTokens": 2048
},
"embeddings": [
{
"connection": {
"kind": "RelativeConnection"
},
"deploymentName": "Ada"
}
]
},
"dataRefreshIntervalInHours": 24,
"completionAction": "keepAllAssets"
}
Örnek yanıt
operation-location: https://aoairesource.openai.azure.com/openai/ingestion/jobs/ingestion-job/runs/72a2792ef7d24ba7b82c7fe4a37e379f?api-version=2025-02-01-preview
{
"kind": "SystemCompute",
"jobId": "ingestion-job",
"searchServiceConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://aykame-dev-search.search.windows.net"
},
"datasource": {
"kind": "Storage",
"connection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://mystorage.blob.core.windows.net/",
"resourceId": "/subscriptions/1234567-abcd-1234-5678-1234abcd/resourceGroups/my-resource/providers/Microsoft.Storage/storageAccounts/mystorage"
},
"containerName": "container",
"chunking": {
"maxChunkSizeInTokens": 2048
},
"embeddings": [
{
"connection": {
"kind": "RelativeConnection"
},
"deploymentName": "Ada"
}
]
},
"dataRefreshIntervalInHours": 24,
"completionAction": "keepAllAssets"
}
Create a user-compute ingestion job
Örnek isteği
PUT {endpoint}/openai/ingestion/jobs/ingestion-job?api-version=2025-02-01-preview
{
"kind": "UserCompute",
"workspaceId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev",
"compute": {
"kind": "ServerlessCompute"
},
"target": {
"kind": "AzureAISearch",
"connectionId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev/connections/search-connection"
},
"datasource": {
"kind": "Dataset",
"datasetId": "azureml://locations/centraluseuap/workspaces/83317fe6-efa6-4e4a-b020-d0edd11ec382/data/PlainText/versions/1",
"datasetType": "uri_folder"
}
}
Örnek yanıt
operation-location: https://aoairesource.openai.azure.com/openai/ingestion/jobs/ingestion-job/runs/72a2792ef7d24ba7b82c7fe4a37e379f?api-version=2025-02-01-preview
{
"kind": "UserCompute",
"jobId": "ingestion-job",
"workspaceId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev",
"compute": {
"kind": "ServerlessCompute"
},
"target": {
"kind": "AzureAISearch",
"connectionId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev/connections/search-connection"
},
"datasource": {
"kind": "Dataset",
"datasetId": "azureml://locations/centraluseuap/workspaces/83317fe6-efa6-4e4a-b020-d0edd11ec382/data/PlainText/versions/1",
"datasetType": "uri_folder"
}
}
Tanımlar
Name | Description |
---|---|
Azure |
Azure AI Arama Dizini. |
Chunking |
ChunkingSettings |
Compute |
İşlem türü. |
Connection |
Bağlantı dizesi bağlantısı. |
Connection |
Bağlantı türü. |
Cosmos |
CosmosDB Dizini. |
Crawling |
GezinmeAyarları |
Custom |
Özel işlem. |
Deployment |
Göreli dağıtım bağlantısı. |
Endpoint |
Uç nokta anahtarı bağlantısı. |
Endpoint |
Uç Nokta Yönetilen Kimlik bağlantısı. |
Error |
Hata |
Error |
ErrorCode |
Error |
ErrorResponse |
Generic |
ConnectionEmbeddingSettings |
Ingestion |
Tamamlama eylemi. |
Ingestion |
|
Ingestion |
IngestionJobType |
Ingestion |
|
Inner |
InnerError |
Inner |
InnerErrorCode |
Pinecone |
Pinecone Dizini. |
Serverless |
Sunucusuz işlem. |
System |
Veri kaynağı türü. |
System |
SystemComputeStorage |
System |
SystemComputeUrl |
Target |
Hedef türü. |
User |
UserComputeStorage |
User |
Veri kaynağı türü. |
User |
UserComputeUrl |
Workspace |
AML Çalışma Alanı bağlantısı. |
Workspace |
WorkspaceConnectionEmbeddingSettings |
AzureAISearchIndex
Azure AI Arama Dizini.
Name | Tür | Description |
---|---|---|
connectionId |
string |
Azure AI Arama Dizini'ni işaret eden bağlantının kimliği. |
kind |
string:
Azure |
Hedef türü. |
ChunkingSettings
ChunkingSettings
Name | Tür | Description |
---|---|---|
maxChunkSizeInTokens |
integer |
ComputeType
İşlem türü.
Değer | Description |
---|---|
CustomCompute |
Özel kullanıcı işlem. |
ServerlessCompute |
Sunucusuz kullanıcı işlem. |
ConnectionStringConnection
Bağlantı dizesi bağlantısı.
Name | Tür | Description |
---|---|---|
connectionString |
string |
Bağlantı dizesi |
kind |
string:
Connection |
Bağlantı türü. |
ConnectionType
Bağlantı türü.
Değer | Description |
---|---|
ConnectionString |
Bağlantı dizesi. |
EndpointWithKey |
Uç nokta ve anahtar bağlantısı. |
EndpointWithManagedIdentity |
Uç nokta ve yönetilen kimlik. |
RelativeConnection |
Göreli dağıtım |
WorkspaceConnection |
AML Çalışma Alanı bağlantısı. |
CosmosDBIndex
CosmosDB Dizini.
Name | Tür | Description |
---|---|---|
collectionName |
string |
Cosmos DB koleksiyonunun adı. |
connectionId |
string |
Cosmos DB'ye işaret eden bağlantının kimliği. |
databaseName |
string |
Cosmos DB veritabanının adı. |
kind |
string:
CosmosDB |
Hedef türü. |
CrawlingSettings
GezinmeAyarları
Name | Tür | Description |
---|---|---|
maxCrawlDepth |
integer |
|
maxCrawlTimeInMins |
integer |
|
maxDownloadTimeInMins |
integer |
|
maxFileSize |
integer |
|
maxFiles |
integer |
|
maxRedirects |
integer |
CustomCompute
Özel işlem.
Name | Tür | Description |
---|---|---|
computeId |
string |
Özel işlemin kimliği |
kind | string: |
İşlem türü. |
DeploymentConnection
Göreli dağıtım bağlantısı.
Name | Tür | Description |
---|---|---|
kind |
string:
Relative |
Bağlantı türü. |
EndpointKeyConnection
Uç nokta anahtarı bağlantısı.
Name | Tür | Description |
---|---|---|
endpoint |
string |
Bitiş noktası |
key |
string |
Anahtar |
kind |
string:
Endpoint |
Bağlantı türü. |
EndpointMIConnection
Uç Nokta Yönetilen Kimlik bağlantısı.
Name | Tür | Description |
---|---|---|
endpoint |
string |
Bitiş noktası |
kind |
string:
Endpoint |
Bağlantı türü. |
resourceId |
string |
Kaynak Kimliği |
Error
Hata
Name | Tür | Description |
---|---|---|
code |
ErrorCode |
|
details |
Error[] |
Varsa hata ayrıntıları. |
innererror |
InnerError |
|
message |
string minLength: 1 |
Bu hatanın iletisi. |
target |
string |
Varsa hatanın oluştuğu konum. |
ErrorCode
ErrorCode
Değer | Description |
---|---|
conflict |
İstenen işlem geçerli kaynak durumuyla çakişer. |
contentFilter |
Görüntü oluşturma, güvenlik sistemimizin bir sonucu olarak başarısız oldu. |
fileImportFailed |
Dosya içeri aktarılamadı. |
forbidden |
geçerli kullanıcı/api anahtarı için işlem yasaktır. |
internalFailure |
İç hata. Lütfen yeniden deneyin. |
invalidPayload |
İstek verileri bu işlem için geçersiz. |
itemDoesAlreadyExist |
Öğe zaten var. |
jsonlValidationFailed |
Jsonl verileri doğrulanamadı. |
notFound |
Kaynak bulunamadı. |
quotaExceeded |
Kota aşıldı. |
serviceUnavailable |
Hizmet şu anda kullanılamıyor. |
tooManyRequests |
Çok fazla istek var. Lütfen daha sonra yeniden deneyin. |
unauthorized |
Geçerli kullanıcı/api anahtarı işlem için yetkilendirilmedi. |
unexpectedEntityState |
İşlem geçerli kaynağın durumunda yürütülemez. |
ErrorResponse
ErrorResponse
Name | Tür | Description |
---|---|---|
error |
Hata |
GenericEmbeddingSettings
ConnectionEmbeddingSettings
Name | Tür | Description |
---|---|---|
connection | BaseConnection: |
BaseConnection |
deploymentName |
string |
|
modelName |
string |
IngestionJobCompletionAction
Tamamlama eylemi.
Değer | Description |
---|---|
cleanUpTempAssets |
Alma işlemi sırasında oluşturulan ara varlıkları temizler. |
keepAllAssets |
Alım işlemi sırasında oluşturulan ara varlıkların hiçbirini temizlemez. |
IngestionJobSystemCompute
Name | Tür | Description |
---|---|---|
completionAction |
Tamamlama eylemi. |
|
dataRefreshIntervalInHours |
integer |
|
datasource | SystemComputeDatasource: |
SystemComputeDatasource |
jobId |
string |
|
kind |
string:
System |
IngestionJobType |
searchServiceConnection | BaseConnection: |
BaseConnection |
IngestionJobType
IngestionJobType
Değer | Description |
---|---|
SystemCompute |
Hizmete ait kaynaklarda çalışan işler. |
UserCompute |
Kullanıcıya ait çalışma alanında çalışan işler. |
IngestionJobUserCompute
Name | Tür | Description |
---|---|---|
compute | JobCompute: |
jobcompute |
dataRefreshIntervalInHours |
integer |
|
datasource | UserComputeDatasource: |
UserComputeDatasource |
jobId |
string |
|
kind |
string:
User |
IngestionJobType |
target | TargetIndex: |
TargetIndex |
workspaceId |
string |
InnerError
InnerError
Name | Tür | Description |
---|---|---|
code |
InnerErrorCode |
|
innererror |
InnerError |
InnerErrorCode
InnerErrorCode
Değer | Description |
---|---|
invalidPayload |
İstek verileri bu işlem için geçersiz. |
PineconeIndex
Pinecone Dizini.
Name | Tür | Description |
---|---|---|
connectionId |
string |
Pinecone'a işaret eden bağlantının kimliği. |
kind |
string:
Pinecone |
Hedef türü. |
ServerlessCompute
Sunucusuz işlem.
Name | Tür | Description |
---|---|---|
instanceCount |
integer |
İşi çalıştırılacak örneklerin sayısı. |
kind | string: |
İşlem türü. |
sku |
string |
SKU Düzeyi |
SystemComputeDatasourceType
Veri kaynağı türü.
Değer | Description |
---|---|
Storage |
Azure Depolama Hesabı. |
Urls |
URL'ler. |
SystemComputeStorage
SystemComputeStorage
Name | Tür | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
kapsayıcı adı |
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Storage |
Veri kaynağı türü. |
SystemComputeUrl
SystemComputeUrl
Name | Tür | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
kapsayıcı adı |
crawling |
GezinmeAyarları |
|
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Urls |
Veri kaynağı türü. |
urls |
string[] |
TargetType
Hedef türü.
Değer | Description |
---|---|
AzureAISearch |
Azure AI Arama Dizini. |
CosmosDB |
CosmosDB Dizini. |
Pinecone |
Pinecone Dizini. |
UserComputeDataset
UserComputeStorage
Name | Tür | Description |
---|---|---|
chunking |
ChunkingSettings |
|
datasetId |
string |
|
datasetType |
string |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Dataset |
Veri kaynağı türü. |
UserComputeDatasourceType
Veri kaynağı türü.
Değer | Description |
---|---|
Dataset |
Çalışma Alanı Veri Kümesi. |
Urls |
URL'ler. |
UserComputeUrl
UserComputeUrl
Name | Tür | Description |
---|---|---|
chunking |
ChunkingSettings |
|
crawling |
GezinmeAyarları |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Urls |
Veri kaynağı türü. |
urls |
string[] |
WorkspaceConnection
AML Çalışma Alanı bağlantısı.
Name | Tür | Description |
---|---|---|
connectionId |
string |
ConnectionId |
kind | string: |
Bağlantı türü. |
WorkspaceConnectionEmbeddingSettings
WorkspaceConnectionEmbeddingSettings
Name | Tür | Description |
---|---|---|
connectionId |
string |
|
deploymentName |
string |
|
modelName |
string |