Giter Site home page Giter Site logo

my_langchain_pa's Introduction

Requirements

Quick start

If you have all the requirements installed, you can run the following commands to start the app.

# Setup all the things
make setup

# Run all the things
make runall
# Or if you installed tmux
make tmux

# Run the backend
make backend

# Run the frontend
make frontend

Slow start

If you don't have make installed, you can follow the steps below to start the app.

1. Environment variables

# Create a .env.local file
cp .env.local.example .env.local

And fill in the values for the environment variables.

2. Setup the backend

Launch the backend server first.

Or

cd backend

# Download necessary packages
poetry install
# or
pip install -r requirements.txt

# Start your backend server
poetry run uvicorn api.conversation_chain:app --reload
# or
python uvicorn api.conversation_chain:app

3. Setup the frontend

Open up another terminal (tab or window) and keep your backend running.

# In the new terminal cd into the next-app directory
cd frontend

# Install all dependencies
yarn install

# Start your frontend app
yarn dev

Opening http://localhost:3000/ in your browser should now show your frontend Next.js app.

Shell script for starting frontend and backend at the same time using tmux

Requirement: Unix like shell, zsh or bash; tmux installed.

In project folder "my_langchain_pa", you can use rundev.sh to start the app.

./rundev.sh

backend playground

When you successfully launch the backend server, you can visit http://localhost:8000 to use the playground.

Refernce

Credit

my_langchain_pa's People

Contributors

brlaney avatar wayne930242 avatar jchans avatar weijyunye avatar

Stargazers

 avatar

Watchers

 avatar  avatar

my_langchain_pa's Issues

從前端更改聊天模式

做一個前端介面,可以自訂聊天範本。

可以調整的東西有:

  1. Chat Template
  2. 溫度
  3. verbose or not
  4. Customize token max length
  5. System prompt template(「你是....的機器人」)
  6. Customize prompt
  7. Customize template

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.