/ChatBot_

Primary LanguageJavaScript

LLM Chatbot

chrome_wneM6SomgN

LLM Chatbot is a project designed to provide users with a platform where they can ask any query and receive answers generated by a Large Language Model (LLM). The application is built using the OpenAI API and Langchain framework, enabling seamless integration of a powerful language model for natural language processing tasks.

Features

  • Query and Answer System: Users can ask questions on various topics and receive relevant answers generated by the LLM.
  • Authentication: The application implements JWT-based authentication, ensuring that only registered users can access the system.
  • Secure Communication: All communication between the client and the server is encrypted to maintain data integrity and user privacy.
  • Chat History: The application integrates with a database to store each user's chat history for future reference and analysis.

Technologies Used

  • OpenAI API: Utilized for accessing the Large Language Model for generating responses to user queries.
  • Langchain Framework: Integrated to facilitate seamless communication between the OpenAI API and the application.
  • JSON Web Tokens (JWT): Employed for user authentication and authorization.
  • Database (PostgreSQL): Integrated to store user chat history securely.

Getting Started

To run the LLM Chatbot locally or deploy it to your own server, follow these steps:

  1. Clone the repository: git clone https://github.com/PrakharMasih/ChatBot_.git
  2. Install dependencies: npm install
  3. Set up environment variables:
    • Create a .env file in the root directory.
    • Define the following variables:
      • OPENAI_API_KEY: Your OpenAI API key for accessing the language model.
      • JWT_SECRET: Secret key used for JWT token generation.
      • Other configuration variables as required.
  4. Start the server: npm start
  5. Access the application at http://localhost:3000 in your web browser.

Usage

  1. Register as a new user if you haven't already done so.
  2. Log in using your credentials.
  3. Enter your query in the provided input field.
  4. Submit your query to receive an answer generated by the LLM.
  5. Log out when you're done using the application.

Contribution

Contributions to the LLM Chatbot project are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix: git checkout -b feature/your-feature-name
  3. Make your changes and commit them: git commit -m 'Add new feature'
  4. Push to your branch: git push origin feature/your-feature-name
  5. Submit a pull request to the main repository.

Please ensure that your code follows the established coding standards and includes appropriate documentation.

License

The LLM Chatbot project is licensed under the MIT License.

Thank you for using LLM Chatbot! Happy querying!