Ingestion Jobs - Create
Hiermee maakt u een opnametaak met de opgegeven taak-id.
PUT {endpoint}/openai/ingestion/jobs/{job-id}?api-version=2025-01-01-preview
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string url |
Ondersteunde Cognitive Services-eindpunten (protocol en hostnaam, bijvoorbeeld: https://aoairesource.openai.azure.com. Vervang 'aoairesource' door de naam van uw Azure OpenAI-account). |
job-id
|
path | True |
string |
De id van de taak die wordt gemaakt. |
api-version
|
query | True |
string |
De aangevraagde API-versie. |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
mgmt-user-token |
string |
Het token dat wordt gebruikt voor toegang tot de werkruimte (alleen nodig voor rekentaken van gebruikers). |
|
aml-user-token |
string |
Het token dat wordt gebruikt voor toegang tot de resources binnen de taak in de werkruimte (alleen nodig voor rekentaken van gebruikers). |
Aanvraagbody
De aanvraagtekst kan een van de volgende zijn:
Name | Description |
---|---|
Ingestion |
|
Ingestion |
IngestionJobSystemCompute
Name | Vereist | Type | Description |
---|---|---|---|
kind | True |
string:
System |
IngestionJobType |
completionAction |
De voltooiingsactie. |
||
dataRefreshIntervalInHours |
integer |
||
datasource | SystemComputeDatasource: |
SystemComputeDatasource |
|
jobId |
string |
||
searchServiceConnection | BaseConnection: |
BaseConnection |
IngestionJobUserCompute
Name | Vereist | Type | Description |
---|---|---|---|
kind | True |
string:
User |
IngestionJobType |
workspaceId | True |
string |
|
compute | JobCompute: |
JobCompute |
|
dataRefreshIntervalInHours |
integer |
||
datasource | UserComputeDatasource: |
UserComputeDatasource |
|
jobId |
string |
||
target | TargetIndex: |
TargetIndex |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK | IngestionJob: |
Succes |
Other Status Codes |
Er is een fout opgetreden. |
Beveiliging
api-key
VERIFICATIE van API-sleutel
Type:
apiKey
In:
header
OAuth2Auth
OAuth2-verificatie
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Bereiken
Name | Description |
---|---|
https://cognitiveservices.azure.com/.default |
Voorbeelden
Create a system-compute ingestion job |
Create a user-compute ingestion job |
Create a system-compute ingestion job
Voorbeeldaanvraag
PUT {endpoint}/openai/ingestion/jobs/ingestion-job?api-version=2025-01-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"
}
Voorbeeldrespons
operation-location: https://aoairesource.openai.azure.com/openai/ingestion/jobs/ingestion-job/runs/72a2792ef7d24ba7b82c7fe4a37e379f?api-version=2025-01-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
Voorbeeldaanvraag
PUT {endpoint}/openai/ingestion/jobs/ingestion-job?api-version=2025-01-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"
}
}
Voorbeeldrespons
operation-location: https://aoairesource.openai.azure.com/openai/ingestion/jobs/ingestion-job/runs/72a2792ef7d24ba7b82c7fe4a37e379f?api-version=2025-01-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"
}
}
Definities
Name | Description |
---|---|
Azure |
Azure AI Search-index. |
Chunking |
ChunkingSettings |
Compute |
Het rekentype. |
Connection |
Verbindingsreeksverbinding. |
Connection |
Het verbindingstype. |
Cosmos |
CosmosDB-index. |
Crawling |
CrawlingSettings |
Custom |
Aangepaste berekening. |
Deployment |
Relatieve implementatieverbinding. |
Endpoint |
Verbinding met eindpuntsleutel. |
Endpoint |
Managed Identity-verbinding met eindpunt. |
Error |
Fout |
Error |
Foutcode |
Error |
ErrorResponse |
Generic |
ConnectionEmbeddingSettings |
Ingestion |
De voltooiingsactie. |
Ingestion |
|
Ingestion |
IngestionJobType |
Ingestion |
|
Inner |
InnerError |
Inner |
InnerErrorCode |
Pinecone |
Pinecone Index. |
Serverless |
Serverloze berekening. |
System |
Het gegevensbrontype. |
System |
SystemComputeStorage |
System |
SystemComputeUrl |
Target |
Het doeltype. |
User |
UserComputeStorage |
User |
Het gegevensbrontype. |
User |
UserComputeUrl |
Workspace |
AML-werkruimteverbinding. |
Workspace |
WorkspaceConnectionEmbeddingSettings |
AzureAISearchIndex
Azure AI Search-index.
Name | Type | Description |
---|---|---|
connectionId |
string |
De id van de verbinding die verwijst naar de Azure AI Search-index. |
kind |
string:
Azure |
Het doeltype. |
ChunkingSettings
ChunkingSettings
Name | Type | Description |
---|---|---|
maxChunkSizeInTokens |
integer |
ComputeType
Het rekentype.
Name | Type | Description |
---|---|---|
CustomCompute |
string |
Aangepaste rekenkracht van gebruikers. |
ServerlessCompute |
string |
Serverloze gebruikers berekenen. |
ConnectionStringConnection
Verbindingsreeksverbinding.
Name | Type | Description |
---|---|---|
connectionString |
string |
Verbindingsreeks |
kind |
string:
Connection |
Het verbindingstype. |
ConnectionType
Het verbindingstype.
Name | Type | Description |
---|---|---|
ConnectionString |
string |
Verbindingsreeks. |
EndpointWithKey |
string |
Eindpunt- en sleutelverbinding. |
EndpointWithManagedIdentity |
string |
Eindpunt en beheerde identiteit. |
RelativeConnection |
string |
Relatieve implementatie |
WorkspaceConnection |
string |
AML-werkruimteverbinding. |
CosmosDBIndex
CosmosDB-index.
Name | Type | Description |
---|---|---|
collectionName |
string |
De naam van de cosmos DB-verzameling. |
connectionId |
string |
De id van de verbinding die verwijst naar de cosmos DB. |
databaseName |
string |
De naam van de cosmos DB-database. |
kind |
string:
CosmosDB |
Het doeltype. |
CrawlingSettings
CrawlingSettings
Name | Type | Description |
---|---|---|
maxCrawlDepth |
integer |
|
maxCrawlTimeInMins |
integer |
|
maxDownloadTimeInMins |
integer |
|
maxFileSize |
integer |
|
maxFiles |
integer |
|
maxRedirects |
integer |
CustomCompute
Aangepaste berekening.
Name | Type | Description |
---|---|---|
computeId |
string |
Id van de aangepaste berekening |
kind | string: |
Het rekentype. |
DeploymentConnection
Relatieve implementatieverbinding.
Name | Type | Description |
---|---|---|
kind |
string:
Relative |
Het verbindingstype. |
EndpointKeyConnection
Verbinding met eindpuntsleutel.
Name | Type | Description |
---|---|---|
endpoint |
string |
Eindpunt |
key |
string |
Sleutel |
kind |
string:
Endpoint |
Het verbindingstype. |
EndpointMIConnection
Managed Identity-verbinding met eindpunt.
Name | Type | Description |
---|---|---|
endpoint |
string |
Eindpunt |
kind |
string:
Endpoint |
Het verbindingstype. |
resourceId |
string |
Resource-id |
Error
Fout
Name | Type | Description |
---|---|---|
code |
Foutcode |
|
details |
Error[] |
De foutdetails indien beschikbaar. |
innererror |
InnerError |
|
message |
string |
Het bericht van deze fout. |
target |
string |
De locatie waar de fout is opgetreden, indien beschikbaar. |
ErrorCode
Foutcode
Name | Type | Description |
---|---|---|
conflict |
string |
De aangevraagde bewerking conflicteert met de huidige resourcestatus. |
contentFilter |
string |
Het genereren van installatiekopieën is mislukt als gevolg van ons veiligheidssysteem. |
fileImportFailed |
string |
Importeren van bestand is mislukt. |
forbidden |
string |
De bewerking is verboden voor de huidige gebruiker/API-sleutel. |
internalFailure |
string |
Interne fout. Probeer het opnieuw. |
invalidPayload |
string |
De aanvraaggegevens zijn ongeldig voor deze bewerking. |
itemDoesAlreadyExist |
string |
Het item bestaat al. |
jsonlValidationFailed |
string |
Validatie van jsonl-gegevens is mislukt. |
notFound |
string |
De resource is niet gevonden. |
quotaExceeded |
string |
Het quotum is overschreden. |
serviceUnavailable |
string |
De service is momenteel niet beschikbaar. |
tooManyRequests |
string |
Te veel aanvragen. Probeer het later opnieuw. |
unauthorized |
string |
De huidige sleutel van de gebruiker/API is niet geautoriseerd voor de bewerking. |
unexpectedEntityState |
string |
De bewerking kan niet worden uitgevoerd in de status van de huidige resource. |
ErrorResponse
ErrorResponse
Name | Type | Description |
---|---|---|
error |
Fout |
GenericEmbeddingSettings
ConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connection | BaseConnection: |
BaseConnection |
deploymentName |
string |
|
modelName |
string |
IngestionJobCompletionAction
De voltooiingsactie.
Name | Type | Description |
---|---|---|
cleanUpTempAssets |
string |
Hiermee worden tussenliggende assets opgeschoond die tijdens het opnameproces zijn gemaakt. |
keepAllAssets |
string |
De tussenliggende assets die tijdens het opnameproces zijn gemaakt, worden niet opgeschoond. |
IngestionJobSystemCompute
Name | Type | Description |
---|---|---|
completionAction |
De voltooiingsactie. |
|
dataRefreshIntervalInHours |
integer |
|
datasource | SystemComputeDatasource: |
SystemComputeDatasource |
jobId |
string |
|
kind |
string:
System |
IngestionJobType |
searchServiceConnection | BaseConnection: |
BaseConnection |
IngestionJobType
IngestionJobType
Name | Type | Description |
---|---|---|
SystemCompute |
string |
Taken die worden uitgevoerd op resources die eigendom zijn van de service. |
UserCompute |
string |
Taken die worden uitgevoerd op de werkruimte die eigendom is van de gebruiker. |
IngestionJobUserCompute
Name | Type | Description |
---|---|---|
compute | JobCompute: |
JobCompute |
dataRefreshIntervalInHours |
integer |
|
datasource | UserComputeDatasource: |
UserComputeDatasource |
jobId |
string |
|
kind |
string:
User |
IngestionJobType |
target | TargetIndex: |
TargetIndex |
workspaceId |
string |
InnerError
InnerError
Name | Type | Description |
---|---|---|
code |
InnerErrorCode |
|
innererror |
InnerError |
InnerErrorCode
InnerErrorCode
Name | Type | Description |
---|---|---|
invalidPayload |
string |
De aanvraaggegevens zijn ongeldig voor deze bewerking. |
PineconeIndex
Pinecone Index.
Name | Type | Description |
---|---|---|
connectionId |
string |
De id van de verbinding die verwijst naar de pinecone. |
kind |
string:
Pinecone |
Het doeltype. |
ServerlessCompute
Serverloze berekening.
Name | Type | Description |
---|---|---|
instanceCount |
integer |
Het aantal exemplaren waarop de taak moet worden uitgevoerd. |
kind | string: |
Het rekentype. |
sku |
string |
SKU-niveau |
SystemComputeDatasourceType
Het gegevensbrontype.
Name | Type | Description |
---|---|---|
Storage |
string |
Azure Storage-account. |
Urls |
string |
URL's. |
SystemComputeStorage
SystemComputeStorage
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
containernaam |
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Storage |
Het gegevensbrontype. |
SystemComputeUrl
SystemComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
containernaam |
crawling |
CrawlingSettings |
|
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Urls |
Het gegevensbrontype. |
urls |
string[] |
TargetType
Het doeltype.
Name | Type | Description |
---|---|---|
AzureAISearch |
string |
Azure AI Search-index. |
CosmosDB |
string |
CosmosDB-index. |
Pinecone |
string |
Pinecone Index. |
UserComputeDataset
UserComputeStorage
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
datasetId |
string |
|
datasetType |
string |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Dataset |
Het gegevensbrontype. |
UserComputeDatasourceType
Het gegevensbrontype.
Name | Type | Description |
---|---|---|
Dataset |
string |
Werkruimtegegevensset. |
Urls |
string |
URL's. |
UserComputeUrl
UserComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
crawling |
CrawlingSettings |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Urls |
Het gegevensbrontype. |
urls |
string[] |
WorkspaceConnection
AML-werkruimteverbinding.
Name | Type | Description |
---|---|---|
connectionId |
string |
ConnectionId |
kind | string: |
Het verbindingstype. |
WorkspaceConnectionEmbeddingSettings
WorkspaceConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connectionId |
string |
|
deploymentName |
string |
|
modelName |
string |