Giter Site home page Giter Site logo

amantaras / azure-privateml-openai-integration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jcguidry/azure-privateml-openai-integration

0.0 0.0 0.0 40 KB

Securely integrates Azure Machine Learning and OpenAI services for data-sensitive AI applications.

Python 38.62% Batchfile 0.24% Jupyter Notebook 61.14%

azure-privateml-openai-integration's Introduction

Azure-PrivateML-OpenAI-Integration

Description

This repository enables the automated creation of a private Azure Machine Learning (AML) workspace, Blob Storage, Container Registry, Secrets Manager, and Azure OpenAI Service - all configured to operate within an Azure Virtual Network (VNet), ensuring data privacy and secure API interactions.

Motivation

To provision workspaces for secure AI solutions, particularly using Language Learning Models (LLMs) for question-answering on sensitive, domain-specific client data. Azure OpenAI service offers safety against data leakage to OpenAI, but developing solutions with it securely is non-trivial. The aim here is to create an AML workspace that restricts public outbound network traffic, but will allow traffic between private Azure services like OpenAI, assuring clients of data integrity. Automating this proces can accelerate the development speed of LLM solutions in privacy-critical applications.

Features

  • Private Networking: Isolate all services within a VNet.
  • Firewall: Allow traffic to whitelisted domains.
  • Azure Machine Learning Workspace: Run and manage ML tasks.
  • Azure OpenAI Service: Leverage OpenAI capabilities within the same VNet.
  • Blob Storage: Storage for AML, project development, and client data.
  • API Security: Use private endpoints for AML-OpenAI communication.

Useful Azure Machine Learning (AML) Reference Docs:

Quick Start

Follow the step-by-step guide using Azure's Python SDK to configure and deploy the services.

Project Setup on Windows

Prerequisites

  • Python installed
  • Azure CLI installed
  • VS Code (optional)
  1. Authenticate CLI with Azure (Optional)

    • Run 'az login' and follow on-screen instructions
    • Enables Azure interavtivity, using personal account
    • May require restart, to be added to system path
  2. Create a Service Principal in Azure and create config.yaml file

    • Create a service principal with the the contributer role
    • take note of its client id, tenant id, and obtain a secret key from it.
    • take note of the subscription id for the azure directory you wish to work in.
    • add these to the config_template.yaml file and rename it to config.yaml
  3. Clone this repo

  4. Setup Python Virtual Environment & Install Requirements (Windows)

    • 4.1 Open project folder In VS Code
    • 4.2 Go to Terminal --> New Terminal
    • 4.3 Type .\setup.bat and hit return
    • Alternatively, do this from regular command line
  5. Execute the create-worspace notebook

    • Connected to the py_env virtual environment
    • Easiest to run in VS Code

azure-privateml-openai-integration's People

Contributors

jcguidry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.