Giter VIP home page Giter VIP logo

chatbot-ai-safety-test-project's Introduction

Chatbot AI Safety

How to run locally

Clone the repository

Create a virtual environment with Python 3.10

install requirement via pip

pip3 install -r requirements.txt

Configure environment variables:

copy .env.example to .env and set the variables

RUN

uvicorn main:app

or

python3 main.py

Task description

  • clean up the code in the langchain-upgrade notebook (remove unused imports etc.)
  • load prompts from text files
  • implement the new chatbot chain inside main.py, in the /ws endpoint (currently, main.py is using an older LangChain version so when you run it with python3 main.py, it will not work)
  • run and test the chatbot: https://share.cleanshot.com/b3HhfB4Y
  • deploy the chatbot to a server using Github Actions
  • suggest improvements and next steps for the project
    • what would make this chatbot better for the user?
    • What other LangChain features could be used to improve the quality of responses, performance etc?
    • code-level improvements / refactoring that could be done in the future to improve maintainability

Note: you can use GPT-3.5-turbo or GPT-4. We will cover any reasonable costs for the API.

chatbot-ai-safety-test-project's People

Contributors

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