Code Monkey home page Code Monkey logo

seven-33 / langchain-chat Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 443 KB

langchain-chat is an AI-driven Q&A system that leverages OpenAI's GPT-4 model and FAISS for efficient document indexing. It loads and splits documents from websites or PDFs, remembers conversations, and provides accurate, context-aware answers based on the indexed data. Easy to set up and extend.

Python 100.00%
chatbot chatbots embedding-models embedding-python embedding-model embedding-similarity faiss faiss-backend gpt-3 gpt-4

langchain-chat's Introduction

langchain-chat

langchain-chat is a powerful AI-driven Q&A system that leverages OpenAI's GPT-4 model to provide relevant and accurate answers to user queries. The system indexes documents from websites or PDF files using FAISS (Facebook AI Similarity Search) and offers a convenient interface for interacting with the data.

Features

  • Load and split documents from websites or PDF files
  • Index documents using FAISS for efficient similarity search
  • Utilize OpenAI's GPT-4 to generate human-like responses
  • Remember previous conversations and provide context-aware answers
  • Easy to set up and extend

Installation

  1. Clone the repository
  2. Create a virtual environment
    python -m venv venv
  3. Activate the virtual environment
    source venv/Scripts/activate
  4. Install the dependencies
    pip install -r requirements.txt
  5. Copy the .env.example file to .env and fill in the required values
    cp .env.example .env
    OPEN_AI_KEY = "sk-"
    WEBSITE_URLS="https://website1, https://website2"
  6. Run the application
    python with_faiss.py

Example Images

Example 1

langchain-chat's People

Contributors

seven-33 avatar

Stargazers

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