Code Monkey home page Code Monkey logo

poc-react-app's Introduction

ReAct アプリケーション

全体アーキテクチャ

概要

  1. 人からの質問
  2. OpenAI へ質問を投げかける。(この時 OpenAI へ送るプロンプトにツールとして BingSearch が使えることを含める)
  3. OpenAI だけでの解答が難しい場合は、BingSearch を使って検索を行い、情報を得る
  4. BingSearch から得た情報も含めて再度 OpenAI へ情報を送り、回答の要約を作成する
  5. 人へ回答を返す

検証方法

  1. Azure へリソースを Deploy

以下 3 つのリソースを作成してください。

  • Azure OpenAI Service
  • Bing Search
  • Azure Static Web Apps
  1. 環境変数ファイルの作成及び、Static Web Apps に環境変数を設定 .env.loca ファイルを作成し、以下の内容を記載します。
AZURE_OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AZURE_OPENAI_API_INSTANCE_NAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AZURE_OPENAI_API_DEPLOYMENT_NAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AZURE_OPENAI_API_VERSION=2023-08-01-preview
AZURE_OPENAI_API_ENDPOINT=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AZURE_BINGSEARCH_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

AZURE_OPENAI_API_KEY: Azure OpenAI Service の API キー AZURE_OPENAI_API_KEY: Azure OpenAI Service の リソース名 AZURE_OPENAI_API_DEPLOYMENT_NAME: Azure OpenAI Studio の デプロイメント名 AZURE_OPENAI_API_VERSION: 2023-08-01-preview で ok AZURE_OPENAI_API_ENDPOINT: Azure OpenAI Service の エンドポイント AZURE_BINGSEARCH_API_KEY: Bing Search の API キー

  1. Azure Static Web Apps へデプロイ Azure へ移動し、Azure Static Web Apps のデプロイ設定へ github の URL を指定し、CI/CD を有効にします。

  2. 動作確認 自動デプロイが完了した後、Azure Static Web Apps の URL へアクセスします。

poc-react-app's People

Contributors

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