Giter VIP home page Giter VIP logo

buildxlchatbot's Introduction

BuildXL Chat Bot

An AI assistant that can help with BuildXL tasks.

Currently, it is capable of

  • answering questions about BuildXL,
  • constructing BuildXL command-line arguments (that even BuildXL developers do not know by heart),
  • creating a CloudBuild build request, and
  • submitting the build request to the CloudBuild service.

This AI assistant is far from being production quality. One can use it as a platform to learn about semantic kernel and prompt design/engineering.

Feel free to contribute to this chat bot by adding more functionalities or features (e.g., adding semantic memory).

Requirements

  • .NET >= 8

How to run

  • Set/add environment variable OPENAI_SETTINGS, whose value has information regarding the model, end point, and API key. The format of value is UseOpenAI;Model;EndPoint;ApiKey;OrgId, where

    • UseOpenAI: whether to use Open AI or Azure Open AI; true for using Open AI, and false for using Azure Open AI.
    • Model: model to use, e.g., gpt-3.5-turbo.
    • EndPoint: end point; not applicable when using Open AI, so leave it blank.
    • ApiKey: API key.
    • OrgId: organization id; leave it blank if not applicable.

    Examples:

    • true;gpt-3.5-turbo;;sk-12345; - for OpenAI, with gpt-3.5-turbo model and API key sk-12345
    • false;gpt-35-turbo-a;https://1es.openai.azure.com/;5e1ec7ed; - for Azure OpenAI, with gpt-35-turbo-a model, https://1es.openai.azure.com endpoint, and API key 5e1ec7ed

    Note that in both examples the organization id is left blank.

    To set the environment variable:

    • PowerShell:
      $env:OPENAI_SETTINGS='false;gpt-35-turbo-a;https://1es.openai.azure.com/;5e1ec7ed;'
    • CMD:
      set OPENAI_SETTINGS=false;gpt-35-turbo-a;https://1es.openai.azure.com/;5e1ec7ed;
    • Bash:
      export OPENAI_SETTINGS=false;gpt-35-turbo-a;https://1es.openai.azure.com/;5e1ec7ed;
  • Run AI assistant:

    dotnet run

Screenshots

Screenshot 1

Screenshot 2

References

buildxlchatbot's People

Contributors

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