Code Monkey home page Code Monkey logo

azopenaievals's Introduction

AzOpenAIEvals

This repo contains a completionfunction for using azure openai chat completions api for running evals.

NOTE: this requires an Azure OpenAI resource and credentials for that resource, even though we will be running evaluations against that Azure OpenAI API resource, there is still a need to provide a key for OpenAI API as the oaieval CLI requires it.

Usage

  1. Install project required packages by runing the following command

    pip install -r requirements.txt
    
  2. Create a .env file in the top level directory to hold your azure openai configurations and secrets, example file is found here

  3. Run the following command to set environment variables from your newly created .env file

    source setenv.sh
    
  4. Add current directory to python envrironment to be able to use modules and packages

    pip install -e .
    
  5. Test evals against your Azure OpenAI API

    # Since some of the evaluation sets are quite large, we add the max_samples parameter to avoid overwhelming your Azure OpneAI resource
    
    oaieval azure_openai test-match --registry_path registry --max_samples 5
    

azopenaievals's People

Contributors

pragmatical avatar

Watchers

 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.