ss2d22 / LiAiMedChat

LiMedAI is a sophisticated chat application designed specifically for medical students from Zhejiang Shuren University. It leverages AI technology to provide intelligent responses to queries with context to the module textbooks, enhancing the learning experience for students.

Home Page:https://bump.sh/sriramprojects/doc/limedai

Repository from Github https://github.comss2d22/LiAiMedChatRepository from Github https://github.comss2d22/LiAiMedChat

🧠 LiMedAI Chat App

An AI-powered chat application for medical students form Zhejiang Shuren University in China.

React Redux Toolkit TypeScript Express MongoDB Socket.IO Docker OpenAPI ESLint Tailwind CSS

πŸ“– About

LiMedAI is a sophisticated chat application designed specifically for medical students from Zhejiang Shuren University. It leverages AI technology to provide intelligent responses to queries with context to the module textbooks, enhancing the learning experience for students.

🌟 Features

  • πŸ€– AI-powered responses using LangChain and Zhipu Ai (OpenAI GPT-4o till approval)
  • πŸ’¬ Real-time chat functionality with Socket.IO
  • πŸ“š Context-aware conversations with vector-based retrieval
  • πŸ‘» Ghost buttons for viewing message context
  • 🌐 Responsive design for seamless use across devices
  • πŸ” Secure authentication system
  • πŸ“Š OpenAPI 3.0 compliant API documentation

πŸ› οΈ Technologies

  • Frontend: React, Redux Toolkit, TypeScript, Tailwind CSS, Shad/Cn
  • Backend: Express, Node.js, TypeScript
  • Database: MongoDB
  • Real-time Communication: Socket.IO
  • AI: LangChain, ZhipuAi/OpenAI GPT-4
  • API Documentation: OpenAPI 3.0, Swagger
  • Containerization: Docker
  • Code Quality: ESLint
  • Architecture: MVC Design Pattern

πŸš€ Getting Started

Frontend Setup

  1. Navigate to the frontend directory:
git clone https://github.com/ss2d22/LiAiMedChat.git

cd limedaifrontend
  1. Create a .env.local file with the following content:
VITE_BACKEND_BASE_URL=your_backend_url
  1. Build and run the Docker container:
docker-compose up --build

Note: On some systems, you may need to use docker compose up --build

Backend Setup

  1. Navigate to the backend directory:
cd limedaiserver

Note: from project root

  1. Create a .env file with the following content:
PORT=your_port
FRONT_ORIGIN=your_frontend_origin
MONGODB_URI=mongodb://db:27017/limedaichat-app
OPENAI_API_KEY=your_openai_api_key
APP_HOST_PORT=your_host_port
APP_CONTAINER_PORT=your_container_port
JWT_ENCRYPTION_KEY=your_jwt_key

Note: if you modify ports for mongodb or are using cloud instead pls change accordingly or remove the depends on db

  1. build and run the Docker container:
  • For development:
docker-compose -f docker-compose.dev.yml up --build

Note: On some systems, you may need to use docker compose up -f docker-compose.dev.yml up --build

  • For production:
docker-compose -f docker-compose.prod.yml up --build

Note: On some systems, you may need to use docker compose up -f docker-compose.prod.yml up --build

πŸ“š API Documentation

The API is fully documented and compliant with OpenAPI 3.0 standards. You can view the documentation at:

view api documentation here

πŸ‘₯ Contact

For any queries or suggestions, please open an issue in this repository or reach out to me on discord at @sriram_0_7.


Made with ❀️ for technology

About

LiMedAI is a sophisticated chat application designed specifically for medical students from Zhejiang Shuren University. It leverages AI technology to provide intelligent responses to queries with context to the module textbooks, enhancing the learning experience for students.

https://bump.sh/sriramprojects/doc/limedai


Languages

Language:TypeScript 94.9%Language:JavaScript 2.4%Language:CSS 1.3%Language:Dockerfile 1.2%Language:HTML 0.2%