AzureAISearchDocumentMetadata: {
    source: string;
    attributes?: {
        key: string;
        value: string;
    }[];
    embedding?: number[];
}

Azure AI Search options metadata schema. If yout want to add custom data, use the attributes property.