Giter VIP home page Giter VIP logo

openai-gameplan-qna's Introduction

OpenAI on Azure - ISE Gameplan QnA

This repo demonstrates how to interrogate custom data (ISE gameplan documents) using OpenAI LLMs.

Prerequisites

Instructions

  1. Clone this repo to a local folder. Open the folder (as a devcontainer) in VS Code.

  2. Once you have access to OpenAI on Azure, create a new OpenAI resource.

  3. Deploy a 'text-davinci-003' model to your OpenAI resource.

  4. Deploy a 'text-embedding-ada-002' (v2) model to your OpenAI resource.

  5. Copy template.env into a new file called '.env'. Update the API_BASE and API_KEY values using those found in the Azure portal for your provisioned OpenAI resource. For API_VERSION use '2023-03-15-preview'. For COMPLETION_DEPLOYMENT_NAME use the name of the 'davinci' model you deployed in the previous step. For EMBEDDINGS_DEPLOYMENT_NAME use the 'text-embedding-ada-002' deployment.

  6. Copy one or more gameplan DOCX files into the data folder. These are the custom data sources you'll be querying using your OpenAI model. For this PoC use gameplan docs which adhere to the gameplan template.

  7. Run the notebooks cells in main.ipynb in order to invoke your deployed LLM in Azure. Output of the last cells should show examples of gameplan prompts and answers.

Ideas for Next Steps

  1. Try adjusting the temperature of your model, to see how results change

  2. Incorporate multiple documents into the QnA functionality

  3. Parse tables in the gameplan doc to include more information

  4. Store vectorized results in a vector database

  5. Try other document types (CPR, etc.)

openai-gameplan-qna's People

Contributors

jplane avatar

Stargazers

Kevin Jain 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.