Initial development release of foundryR, a tidy interface to Microsoft Azure AI Foundry.
foundry_chat()for interacting with LLMs (GPT-4, Claude, Llama, Mistral, etc.)- Support for system prompts and conversation history
- Compatible with both
max_tokensandmax_completion_tokensparameters
foundry_embed()for generating text embeddingsfoundry_embed_batch()for parallel batch processing with progress trackingfoundry_similarity()for computing pairwise cosine similarities- Support for configurable embedding dimensions
step_foundry_embed()recipe step for embedding text columns in ML pipelines- Full compatibility with tidymodels cross-validation and tuning workflows
foundry_moderate()for content moderation across hate, violence, sexual, and self-harm categoriesfoundry_groundedness()for hallucination detection in AI responsesfoundry_shield()for prompt injection and jailbreak detection
foundry_image()for generating images with DALL-E modelsfoundry_save_image()for saving generated images locally- Support for separate image endpoint/key configuration
foundry_set_key()andfoundry_set_endpoint()for credential managementfoundry_check_setup()for validating configuration- Environment variable support for persistent configuration
- Separate configuration for Content Safety and Image Generation resources
- Comprehensive vignettes: Getting Started, Embeddings, Content Safety, Image Generation, tidymodels
- Full roxygen2 documentation for all exported functions
- pkgdown site with Azure-inspired styling