Code Monkey home page Code Monkey logo

langchain-chatbot's Introduction







Efficiently use Langchain for Complex Tasks

๐Ÿš€ Installation

Pre-Setup

Prerequisites:

Setup

git clone https://github.com/Haste171/langchain-chatbot.git

Recommended to use a virtual environment

pip install -r requirements.txt

Reference example.env to create credentials file

OPENAI_API_KEY=
PINECONE_API_KEY=
PINECONE_ENVIRONMENT=
PINECONE_INDEX=

Run Terminal Interface

python chatbot.py

Run Chat Interface

streamlit run streamlit.py

In-App Usage

Click to expand

Terminal

For usage of the terminal interface place files in the docs folder to be ingested

Once Files are ingested one can choose to ingest more files in future usage or just query the existing vector database

Chat Interface

For usage of the chat interface upload files directly to the Browse Files section

All

  • Temperature: The amount of creativity/burstiness the AI will use when querying files
  • Sources: The amount of sources the AI will base it's answer off of and use for context

๐Ÿ”ง Key Features

  • Conversational answers with chat history
  • Compatibility for PDF documents (more soon)
  • Local and external vector database compatibility

Soon:

  • Externally hosted user accessible chat interface
  • Compatibility with multiple files types (Llama Index)
  • Compatibility with offline models (HuggingFace, Vicuna, Alpaca)

๐Ÿ’ป Contributing

If you would like to contribute to the LangChain Chatbot, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature or bug fix
  3. Write tests for your changes
  4. Implement your changes and ensure that all tests pass
  5. Submit a pull request

๐Ÿ“ Credits

The LangChain Chatbot was developed by Haste171 with much inspiration from Mayo with the GPT4 & LangChain Chatbot for large PDF docs. This project is mainly a port to Python from the Mayo chatbot.

๐Ÿ”จ License

The LangChain Chatbot is released under the MIT License.

๐Ÿ’ป Terminal

preview_1 preview_2

๐Ÿ’ป Interface

fixed-prev

langchain-chatbot's People

Contributors

haste171 avatar eliujl avatar chicoman25 avatar ahgsql 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.