Here’s a simplified workflow using Python and Azure Machine Learning:
from azureml.core import Workspace, Dataset, Datastore
from azureml.train.automl import AutoMLConfig
from azureml.core.experiment import Experiment
ws = Workspace.from_config()
datastore = Datastore.get(ws, 'workspaceblobstore')
dataset = Dataset.Tabular.from_delimited_files(path=(datastore, 'data/training_data.csv'))
automl_config = AutoMLConfig(
task='classification',
training_data=dataset,
label_column_name='label',
primary_metric='accuracy',
compute_target='your_compute_target'
)
experiment = Experiment(ws, 'classify_embeddings')
run = experiment.submit(automl_config)
run.wait_for_completion()
best_run, fitted_model = run.get_output()
model = run.register_model(model_name='embedding_classifier', model_path='outputs/')
Key Points:
- Utilize Azure AI Foundry’s capabilities to preprocess data, train models, and deploy them.
- Ensure compatibility between training embeddings and embeddings from Azure OpenAI.
- Use Azure Machine Learning for efficient model training and deployment.
Some links
AI Foundry Docs https://learn.microsoft.com/azure/ai-studio
AI Foundry SDK https://learn.microsoft.com/azure/ai-studio/how-to/develop/sdk-overview
Azure ML Docs https://learn.microsoft.com/azure/machine-learning
Learning Azure ML https://learn.microsoft.com/azure/machine-learning/tutorial-azure-ml-in-a-day