GithubHelp home page GithubHelp logo

lexi2.0's Introduction

LEXI: Large Language Models Experimental Interface

An innovative platform by Affective Intelligence and Robotics Laboratory (AFAR) of the University of Cambridge for conducting social interaction experiments with bots and Language Learning & Modeling Systems (LLMS).

๐ŸŒ Project Overview

This platform is designed to facilitate advanced research in the field of user-bot interactions and LLMS models. It offers a comprehensive environment for conducting, monitoring, and analyzing experiments in this cutting-edge domain.

๐Ÿš€ Quick Start

To set up and start using the project, follow these steps:

Step 0: Download the following pre-requirements:

Node.JS - https://nodejs.org/en
Npm - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
Git - https://git-scm.com/downloads
Python 3 - https://www.python.org/downloads/
OpenAI api key - OpenAI api key info

Step 1: Set Up MongoDB Database

Before setting up the project, you'll need a MongoDB database. You can set this up locally on your machine, or use MongoDB Atlas for a cloud-based solution.

  • Setting up MongoDB Locally: Follow this guide to install MongoDB locally on your system.

  • Setting up MongoDB on Atlas: MongoDB Atlas offers a cloud-based solution. You can set up a free cluster following this guide.

    Make sure you are adding your ip to be white listed

Step 2: Clone the Repository

git clone https://github.com/veb7vmehra/Lexi2.0.git

Step 3: Install Dependencies

  • For the client:

    cd client
    npm run setup
  • For the server:

    cd server
    npm run setup

Setup Process Details

During the setup process, you'll be guided through a series of prompts to configure your environment:

  • OPENAI_API_KEY: Enter your OpenAI API key.
  • MONGODB_USER: Enter the MongoDB username.
  • MONGODB_PASSWORD: Enter the password for MongoDB.
  • MONGODB_URL: Provide the MongoDB URL (mongodb+srv://.mongodb.net).
  • MONGODB_DB_NAME: Choose a name for your MongoDB database.

Additionally, the setup script will guide you in creating an administrative user for your system. You'll need to provide a username and password for this user.

Functions of the Setup Script

The setup script automates several important tasks to get your server up and running:

  • Configures Environment Variables:
    • It creates a .env file containing essential environment variables like your OpenAI API key, MongoDB credentials, and other necessary configurations.
  • Installs Dependencies:
    • Executes npm install to install all the necessary npm packages that the server requires to function properly.
  • Builds the Project:
    • Runs the build process for your TypeScript code, compiling it and preparing your server for execution.
  • Initializes Admin User:
    • Creates an admin user within your system using the credentials you provide, facilitating immediate access to admin-level features.

This comprehensive setup ensures that all necessary components are correctly configured, laying the foundation for a smooth and efficient operation of the server.

Step 4: Setting up openFace

The current openFace version downloaded with this github contains windows exe files, for linux and macOS, you can follow the following steps:

If you haven't until now, irrespective of your OS, run the download_models.ps1 (for Windows) or download_models.sh (for Unix and MacOS), you can find these scripts inside the openFace folder.

Step 5: Install pip requirements

Run the following command inside the Lexi2.0 folder from terminal.

pip install -r requirements.txt

Step 6: Running the Project

  • For the Client:
    cd client
    npm start

client will run on: http://localhost:3000

  • For the Server:
    cd server
    npm run dev

server will run on: http://localhost:5000

  • For action unit extaction:
    python AU_extractor.py

Encountering difficulties with your local environment setup? Consult our Troubleshooting Guide for assistance in resolving your issues.

๐ŸŒ Deployment

Intersted to deploy Lexi? Please read our Deployment Guide for information on how to deploy.

๐Ÿ› ๏ธ Contributing

Interested in contributing? We value your input and contributions! Please read our Contributing Guidelines for information on how to get started.

๐Ÿ”— Useful Links

๐Ÿ“„ License

This project is licensed under the CC BY-NC 4.0 License.

๐Ÿ“ž Contact

For any inquiries or further information, reach out to us at [email protected].

๐Ÿ‘ Show Your Support

Give a โญ๏ธ if this project helped you! Your support encourages us tremendously.

lexi2.0's People

Contributors

veb7vmehra avatar tomer-lavan avatar guylaban 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.