The error message 'Training data is missing: Could not find any training data at the given path' typically indicates that the specified path to your training data in the Azure Blob Storage is incorrect or that the data is not accessible. Here are some steps you can take to resolve this issue:
- Check the SAS Token: Ensure that the SAS token you are using in the
trainingBlobContainerUrl
has the correct permissions (Read, Write, Delete, and List) and that it is not expired. - Verify the Blob Container URL: Make sure that the URL you are using for the blob container is correctly formatted. It should look like this:
https://<storage account>.blob.core.windows.net/<container name>?<SAS value>
. Double-check that the container name and the storage account name are correct. - Ensure Data Exists: Confirm that the training data (documents) is indeed uploaded to the specified container in Azure Blob Storage. You can do this by accessing the Azure portal and navigating to your storage account.
- Organize Your Data: If your training data is organized in subfolders, ensure that your API call is configured to include subfolders. You may need to adjust your request body to specify the prefix if you're using subfolders.
- Use the Correct Build Mode: Ensure that you are using the correct build mode for your documents. The
DocumentBuildMode.Template
is suitable for documents with a consistent structure.
By following these steps, you should be able to identify and resolve the issue with your training data path.
References: