Git Product home page Git Product logo

rivetchain's Introduction

🟧️RivetChain

This package integrates Rivet backend to Chainlit frontend, using a Rivet Node.js server, a Python client, and a Chainlit app.

🚀 Setup

1. Clone RivetChain repository

Create the root folder of the project (say, RivetChain), cd to it, then git clone the repository:

git clone https://github.com/igor2c/RivetChain.git

2. Rivet installation

@ironclad/rivet-node requires Node.js 16 or higher.

cd to the root folder of the project, install the @ironclad/rivet-node Node.js library using NPM:

npm install @ironclad/rivet-node

3. Express installation

cd to the root folder of the project, install the express Node.js library using NPM:

npm install express

4. Create Conda virtual environment

Create and activate a conda environment:

conda create --name rivetchain_env python=3.11
conda activate rivetchain_env

5. Chainlit installation

chainlit requires python>=3.8.

In conda environment, install chainlit via pip as follows:

pip install chainlit

6. Create .env file

In the root folder of the project, create a .env file with the following contents:

OPENAI_API_KEY=
LITERAL_API_KEY=
CHAINLIT_AUTH_SECRET=

7. Run RivetChain

cd to the root folder of the project, and run:

conda activate rivetchain_env
chainlit run app.py -w

The -w flag tells Chainlit to enable auto-reloading, so you don’t need to restart the server every time you make changes to your application. Your chatbot UI should now be accessible at http://localhost:8000.

🔧 Future updates

  • RivetChain: cd to root folder of the project, git pull origin master
  • Rivet: cd to root folder of the project (where package.json is located) and npm update @ironclad/rivet-node
  • Chainlit: In conda environment, pip install chainlit --upgrade --upgrade-strategy only-if-needed (font)

⚙️ Customization

rivetchain's People

Stargazers

Beckett avatar  avatar

Watchers

 avatar

Forkers

makemoney2023

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.