Coder Social home page Coder Social logo

chat-sphere's Introduction

Chat-Sphere

An AI-powered chatbot application developed using the MERN stack, TypeScript, and Langchain. This project features user authentication, chat history management, document analysis, and the ability to access external tools for accurate responses.

Features

  • AI-Powered Chatbot: Interact with an AI chatbot that provides personalized and relevant responses.
  • User Authentication: Secure login and session management for users.
  • Document Upload: Upload documents for the AI to analyze and interact with.
  • External Tools Integration: Uses Langchain to access tools like Wikipedia and Google Search for comprehensive answers.
  • Chat History: Save multiple chat sessions with the ability to access and continue previous chats, maintaining context for a personalized experience.

Tech Stack :

Tech Stack

  • Frontend: React, TypeScript
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • Other Tools: Langchain

Getting Started

Prerequisites

  • Node.js (v14 or later)
  • MongoDB

Contributing to the Project

  1. Fork the Repository: Start by forking the repository to your own GitHub account.

  2. Clone the Repository: Next, clone the forked repository to your local machine:

    git clone https://github.com/<your-username>/<repository-name>.git
  3. Create a New Branch: Navigate into the cloned repository and create a new branch for your changes:

    cd <repository-name>
    git checkout -b <branch-name>

    Replace <branch-name> with a descriptive name for your branch (e.g., add-new-feature).

  4. Make Your Changes: Make the changes you want to contribute. Be sure to follow the project's coding standards and conventions.

  5. Commit Your Changes: Once you've made your changes, stage and commit them:

    git add .
    git commit -m "Your descriptive commit message"
  6. Push Your Changes: Push your changes to your forked repository on GitHub:

    git push origin <branch-name>
  7. Before committing your changes, make sure to configure the OAuth credentials for Google and GitHub. Obtain the OAuth client ID and secret for both platforms and add them to the .env file in the project root directory. The file should look like this:

Environment Variables Setup

Environment Variable Description
JWT_SECRET Secret key for JSON Web Tokens
COOKIE_SECRET Secret key for cookies
OPEN_AI_SECRET API key for OpenAI
MONGODB_URL Connection string for MongoDB
GOOGLE_API_KEY API key for Google services
TAVILY_API_KEY API key for Tavily services
SERPAPI_API_KEY API key for SerpAPI
BASE_APP_URL Base URL for the frontend application
BASE_API_URL Base URL for the backend API

chat-sphere's People

Contributors

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