Giter Site home page Giter Site logo

openai-poc-az-func's Introduction

openai-poc-az-func

poc using the Azure OpenAI cognitive service (chatgpg 3.5 turbo) and llama_index to build and index to use with the LLM

How-to

Pull this project and create your virtual env, install packages and you can simply run func start (see prerequisites)

python3 -m venv .venv
source .venv/bin/activate
pip install openai azure-identity azure-keyvault-secrets llama-index azure-storage-blob langchain

Then once you finish the setup for configs bellow you can simply func start and use your function service.

Deploy to Azure.

Using the Azure extension you can selection your function and click on Deploy ... make sure to select the appropriate subscription and then you will be prompted with a list of applications you can deploy to, select the one that is tied to your proper resource group. You can also, once deployed, pushs your local.settings.json in the cloud directly (as env settings, on the App screen you can view those in the Configuration menu).

Pre-requisites

  • VSCode with Azure Dev tools such as anything needed to run app dev locally.
  • .NET runtime ..
  • etc.

Set KeyVault setting to your local.settings.json we will be using DefaultAzureCredential to conect to Key Vault.

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "KEY_VAULT_NAME": "ScDC-CIO-DTO-Infra-kv",
    "OPENAI_ENDPOINT_NAME":"scdc-cio-dto-openai-poc-oai",
    "OPENAI_DEPLOYMENT_NAME":"gpt-35-poc-dev"
  }
}

Documentation

Other references used as inspiration

openai-poc-az-func's People

Contributors

guillaumeturcotte 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.