Code Monkey home page Code Monkey logo

chatbots's Introduction

1. 安装依赖

# 仅第一次使用
python -m venv .bot

# 激活虚拟环境
source .bot/bin/activate

# 安装依赖
pip install -r requirements.txt

2. 聊天

2.1 启动

  • 无会话
python oncebot.py

  • 有会话
python chatbot.py

2.2 退出

退出快捷键: Ctl + C

2.3 安装全局命令

克隆 repo 到本地, 进入 repo 执行下面的脚本

export GOOGLE_API_KEY=xxxx

pip install -r requirements.txt

mkdir -p $HOME/.local/bin
export PATH="$HOME/.local/bin:$PATH"

make install

2.4 调试

如果想要查看 langchain 的一些输出, 可以增加 DEBUG 环境变量, 例如:

DEBUG=1 python chatbot.py

3. 其他

  • 生成 requirements

    pipreqs . --force --ignore .bot

chatbots's People

Contributors

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