Giter Club home page Giter Club logo

hr-chatbot's Introduction

Onepoint HR Chatbot

This is a simple HR chatbot based on Chainlit with memory support and able to choose its vector database based on geolocation.

Installation

conda create -n langchain_chainlit python=3.11
conda activate langchain_chainlit
pip install langchain
pip install python-dotenv
pip install openai
pip install faiss-cpu
pip install tiktoken
pip install chainlit
pip install pdfminer
pip install pypdfium2
pip install prompt_toolkit

Custom environment

# conda activate base
# conda remove -n langchain_chainlit_2 --all
conda create -n langchain_chainlit_2 python=3.11
conda activate langchain_chainlit_2
# pip install --force-reinstall /home/ubuntu/chainlit-0.5.3-py3-none-any.whl
pip install --force-reinstall C:\development\playground\chainlit\src\dist\chainlit-0.5.3-py3-none-any.whl
pip install langchain
pip install faiss-cpu
pip install tiktoken
pip install pdfminer
pip install pypdfium2
pip install black

Configuration

Please make sure that you have a .env file with the following variables:

OPENAI_API_KEY=<open ai key>
DOC_LOCATION=<absolute path of the pdf files>
FAISS_STORE=<Location of the FAISS internal files>
HUMOUR=<true|false>

Running

With Chainlit:

chainlit run hr_chatbot_chainlit.py --port 8081

For Development:

chainlit run hr_chatbot_chainlit.py -w --port 8081

Command line:

python ./hr_chatbot_cli.py

hr-chatbot's People

Contributors

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