Giter Club home page Giter Club logo

web-chat-bot's Introduction

Chat Bot Web Application

The Chat Bot Web Application is a web-based interactive chatbot that utilizes Large Language Models (LLMs) and Langchain technology to interact with documents and data managed on the Admin Dashboard. This application allows users to have natural language conversations with the chatbot, making it a powerful tool for retrieving information, answering questions, and assisting users with various tasks.

Features

  • Natural Language Interaction: The chatbot uses state-of-the-art Large Language Models (LLMs) to understand and respond to user queries in a human-like manner.
  • Seamless Integration: The chatbot is seamlessly integrated with the Admin Dashboard, enabling access to documents and data managed by the administrator.
  • Interactive Communication: Users can have real-time interactive conversations with the chatbot, making it a user-friendly and engaging experience.
  • Advanced Search: The chatbot utilizes Langchain technology to perform advanced searches across documents, ensuring accurate and relevant responses to user queries.
  • User-Friendly Interface: The web application offers an intuitive and user-friendly interface, making it accessible to users with varying levels of technical expertise.

Getting Started

To set up and run the Chat Bot Web Application, follow these steps:

  1. Pinecone Vector database: Note that you should have an already prepared index on Pinecone, or use the admin portal application for creating an index and uploading data on there.

  2. Clone the Repository: Clone this repository to your local machine.

  3. Install Dependencies: Ensure you have Python and the required libraries installed. Use the following command to install the necessary dependencies:

    pip install -r requirements.txt
  4. Set Environment Variables: Create a .env file and set the following environment variables:

    FLASK_SECRET_KEY=your_secret_key_here
    

    Replace your_secret_key_here with a strong random key for Flask session management.

  5. Load Admin Users: Prepare an users.json file containing the admin user data, and place it in the root directory of the application. The JSON file should have the following format:

    [
        {
            "username": "user1",
            "password": "password1"
        },
        {
            "username": "user1",
            "password": "password2"
        },
        // Add more users as needed
    ]

    Make sure to replace user1, user2, etc., with actual usernames, and password1, password2, etc., with the passwords of the respective users.

  6. Start the Application: Run the Flask application using the following command:

    python app.py

    The application will be accessible at http://localhost:8081.

Usage

Chatbot Interaction: To use the Chat Bot Web Application, go to http://localhost:8081/chat. Start interacting with the chatbot by typing your queries in natural language.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.


Note: Replace http://localhost:8081 with the actual deployment URL if the application is hosted on a remote server.

web-chat-bot's People

Contributors

madhav-mknc avatar akn714 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.