Giter Site home page Giter Site logo

andreped / referencebot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 48 KB

KnowledgeGPT + Azure OpenAI = <3

License: MIT License

Python 93.20% Dockerfile 4.44% Shell 2.35%
ai azure bot chatbot huggingface huggingface-spaces llm mit openai streamlit

referencebot's Introduction

title colorFrom colorTo sdk app_port emoji pinned license app_file
ReferenceBot: KnowledgeGPT + Azure OpenAI = <3
indigo
indigo
docker
8501
๐Ÿ’ฌ
false
mit
knowledge_gpt/main.py

License Streamlit App CI/CD

Build Type Status
HF Deploy Deploy
File size check Filesize
Formatting check Filesize

Follow the instructions below to run the Streamlit server locally.

Make sure you have Python โ‰ฅ3.10 installed.

These instructions were tested on macOS 13.6 Ventura with ARM CPU and Python 3.10.11.

  1. Clone the repository:
git clone https://github.com/andreped/ReferenceBot
cd ReferenceBot
  1. Setup virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Create the secrets file at .streamlit/secrets.toml and fill in the relevant info:
OPENAI_API_KEY = "<insert OpenAI API key>"
CHATGPT_MODEL = "<insert model name>"
OPENAI_API_BASE = "https://<insert-openai-service-name>.openai.azure.com"
OPENAI_API_VERSION = "<insert version>"
ENGINE = "<insert deployment model name>"
ENGINE_EMBEDDING = "<insert deployment embedding name>"
  1. Run the Streamlit server
streamlit run knowledge_gpt/main.py

Run the following commands to build and run the Docker image.

docker build -t reference-bot .
docker run -p 8501:8501 reference-bot

Open http://localhost:8501 in your browser to access the app.

A live demonstration is hosted at Hugging Face! Click the ๐Ÿค— badge above.

Screenshot 2023-10-30 at 15 35 51

We have built on-top of KnowledgeGPT to enable the tool be be used with Azure OpenAI Services. Thus, all credit should go towards the original developers.

Distributed under the MIT License. See LICENSE for more information.

referencebot's People

Contributors

andreped avatar

Stargazers

 avatar  avatar

Watchers

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