demo-python/code/custom-vectorizer/azure.yaml (17 lines of code) (raw):
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: custom-embeddings
services:
api:
project: ./api/functions
language: python
host: function
hooks:
prepackage:
shell: pwsh
run: ./scripts/download_embedding_model.ps1
interactive: true
continueOnError: false
postdeploy:
shell: pwsh
run: ./scripts/setup_search_service.ps1
interactive: true
continueOnError: false