An AI-powered chat application for medical students form Zhejiang Shuren University in China.
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.
- π€ 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
- 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
- Navigate to the frontend directory:
git clone https://github.com/ss2d22/LiAiMedChat.git
cd limedaifrontend
- Create a
.env.localfile with the following content:
VITE_BACKEND_BASE_URL=your_backend_url
- Build and run the Docker container:
docker-compose up --build
Note: On some systems, you may need to use docker compose up --build
- Navigate to the backend directory:
cd limedaiserver
Note: from project root
- Create a
.envfile 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
- 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
The API is fully documented and compliant with OpenAPI 3.0 standards. You can view the documentation at:
For any queries or suggestions, please open an issue in this repository or reach out to me on discord at @sriram_0_7.