Ingestion Jobs - Create
Hiermee maakt u een opnametaak met de opgegeven taak-id.
PUT {endpoint}/openai/ingestion/jobs/{job-id}?api-version=2024-05-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 |
---|---|---|---|
api-key | True |
string |
Geef hier uw Azure OpenAI-accountsleutel voor Cognitive Services op. |
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 in de taak in de werkruimte (alleen nodig voor gebruikersrekentaken). |
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: |
Geslaagd |
Other Status Codes |
Er is een fout opgetreden. |
Beveiliging
api-key
Geef hier uw Azure OpenAI-accountsleutel voor Cognitive Services op.
Type:
apiKey
In:
header
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/{job-id}?api-version=2024-05-01-preview
{
"kind": "SystemCompute",
"searchServiceConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://aykame-dev-search.search.windows.net"
},
"datasource": {
"kind": "Storage",
"storageAccountConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://mystorage.blob.core.windows.net/",
"resourceId": "ResourceId=/subscriptions/1234567-abcd-1234-5678-1234abcd/resourceGroups/my-resource/providers/Microsoft.Storage/storageAccounts/mystorage"
},
"containerName": "container",
"chunkingSettings": {
"maxChunkSizeInTokens": 2048
},
"embeddingsSettings": [
{
"embeddingResourceConnection": {
"kind": "RelativeConnection"
},
"modelProvider": "AOAI",
"deploymentName": "Ada"
}
]
},
"dataRefreshIntervalInHours": 24,
"completionAction": 0
}
Voorbeeldrespons
operation-location: https://aoairesource.openai.azure.com/openai/ingestion/jobs/ingestion-job/runs/72a2792ef7d24ba7b82c7fe4a37e379f?api-version=2024-05-01-preview
{
"kind": "SystemCompute",
"jobId": "ingestion-job",
"searchServiceConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://aykame-dev-search.search.windows.net"
},
"datasource": {
"kind": "Storage",
"storageAccountConnection": {
"kind": "EndpointWithManagedIdentity",
"endpoint": "https://mystorage.blob.core.windows.net/",
"resourceId": "ResourceId=/subscriptions/1234567-abcd-1234-5678-1234abcd/resourceGroups/my-resource/providers/Microsoft.Storage/storageAccounts/mystorage"
},
"containerName": "container",
"chunkingSettings": {
"maxChunkSizeInTokens": 2048
},
"embeddingsSettings": [
{
"embeddingResourceConnection": {
"kind": "RelativeConnection"
},
"modelProvider": "AOAI",
"deploymentName": "Ada"
}
]
},
"dataRefreshIntervalInHours": 24,
"completionAction": 0
}
Create a user-compute ingestion job
Voorbeeldaanvraag
PUT {endpoint}/openai/ingestion/jobs/{job-id}?api-version=2024-05-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=2024-05-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 |
---|---|
ACSIndex |
ACS-index. |
Base |
BaseConnection |
Chunking |
ChunkingSettings |
Compute |
Het rekentype. |
Connection |
Verbindingsreeksverbinding. |
Connection |
Het verbindingstype. |
Cosmos |
CosmosDB-index. |
Crawling |
CrawlingSettings |
Custom |
Aangepaste rekenkracht. |
Datasource |
Het type gegevensbron. |
Deployment |
Relatieve implementatieverbinding. |
Endpoint |
Verbinding met eindpuntsleutel. |
Endpoint |
Eindpunt beheerde identiteit-verbinding. |
Error |
Fout |
Error |
ErrorCode |
Error |
Foutresponse |
Generic |
ConnectionEmbeddingSettings |
Ingestion |
De voltooiingsactie. |
Ingestion |
|
Ingestion |
IngestionJobType |
Ingestion |
|
Inner |
InnerError |
Inner |
InnerErrorCode |
Pinecone |
Pinecone Index. |
Serverless |
Serverloze rekenkracht. |
System |
SystemComputeDatasource |
System |
SystemComputeStorage |
System |
SystemComputeUrl |
Target |
Het doeltype. |
User |
UserComputeStorage |
User |
UserComputeUrl |
Workspace |
Verbinding met AML-werkruimte. |
Workspace |
WorkspaceConnectionEmbeddingSettings |
ACSIndex
ACS-index.
Name | Type | Description |
---|---|---|
connectionId |
string |
De id van de verbinding die verwijst naar de ACS-index. |
kind |
string:
acs |
Het doeltype. |
BaseConnection
BaseConnection
Name | Type | Description |
---|---|---|
kind |
Het verbindingstype. |
ChunkingSettings
ChunkingSettings
Name | Type | Description |
---|---|---|
maxChunkSizeInTokens |
integer |
ComputeType
Het rekentype.
Name | Type | Description |
---|---|---|
custom |
string |
Aangepaste gebruikersberekening. |
serverless |
string |
Serverloze gebruikersberekening. |
ConnectionStringConnection
Verbindingsreeksverbinding.
Name | Type | Description |
---|---|---|
connectionString |
string |
Verbindingsreeks |
kind |
Het verbindingstype. |
ConnectionType
Het verbindingstype.
Name | Type | Description |
---|---|---|
connectionString |
string |
Verbindingsreeks. |
endpointKey |
string |
Eindpunt- en sleutelverbinding. |
endpointMI |
string |
Eindpunt en beheerde identiteit. |
workspace |
string |
Verbinding met AML-werkruimte. |
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 rekenkracht.
Name | Type | Description |
---|---|---|
computeId |
string |
Id van de aangepaste berekening |
kind |
string:
custom |
Het rekentype. |
DatasourceType
Het type gegevensbron.
Name | Type | Description |
---|---|---|
storage |
string |
Azure Storage-account. |
urls |
string |
Urls. |
DeploymentConnection
Relatieve implementatieverbinding.
Name | Type | Description |
---|---|---|
kind |
Het verbindingstype. |
EndpointKeyConnection
Verbinding met eindpuntsleutel.
Name | Type | Description |
---|---|---|
endpoint |
string |
Eindpunt |
key |
string |
Sleutel |
kind |
Het verbindingstype. |
EndpointMIConnection
Eindpunt beheerde identiteit-verbinding.
Name | Type | Description |
---|---|---|
endpoint |
string |
Eindpunt |
kind |
Het verbindingstype. |
Error
Fout
Name | Type | Description |
---|---|---|
code |
ErrorCode |
|
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
ErrorCode
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 |
Het importeren van het 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 gebruiker/API-sleutel is niet geautoriseerd voor de bewerking. |
unexpectedEntityState |
string |
De bewerking kan niet worden uitgevoerd in de status van de huidige resource. |
ErrorResponse
Foutresponse
Name | Type | Description |
---|---|---|
error |
Fout |
GenericEmbeddingSettings
ConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connection | BaseConnection: |
BaseConnection |
deploymentName |
string |
|
modelName |
string |
IngestionJobCompletionAction
De voltooiingsactie.
Name | Type | Description |
---|---|---|
cleanUpAssets |
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 |
---|---|---|
system |
string |
Taken die worden uitgevoerd op resources die eigendom zijn van de service. |
user |
string |
Taken die worden uitgevoerd in een 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 naar de pinecone wijst. |
kind |
string:
pinecone |
Het doeltype. |
ServerlessCompute
Serverloze rekenkracht.
Name | Type | Description |
---|---|---|
instanceCount |
integer |
Het aantal exemplaren waarop de taak moet worden uitgevoerd. |
kind |
string:
serverless |
Het rekentype. |
sku |
string |
SKU-niveau |
SystemComputeDatasource
SystemComputeDatasource
Name | Type | Description |
---|---|---|
kind |
Het type gegevensbron. |
SystemComputeStorage
SystemComputeStorage
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
containernaam |
embeddings |
ConnectionEmbeddingSettings |
|
kind |
Het type gegevensbron. |
SystemComputeUrl
SystemComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
containernaam |
crawling |
CrawlingSettings |
|
embeddings |
ConnectionEmbeddingSettings |
|
kind |
Het type gegevensbron. |
|
urls |
string[] |
TargetType
Het doeltype.
Name | Type | Description |
---|---|---|
acs |
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 type gegevensbron. |
UserComputeUrl
UserComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
crawling |
CrawlingSettings |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
urls |
Het gegevensbrontype. |
urls |
string[] |
WorkspaceConnection
Verbinding met AML-werkruimte.
Name | Type | Description |
---|---|---|
connectionId |
string |
ConnectionId |
kind |
Het verbindingstype. |
WorkspaceConnectionEmbeddingSettings
WorkspaceConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connectionId |
string |
|
deploymentName |
string |
|
modelName |
string |