Welcome to the AI Assistant project! This website provides an interactive chat interface using advanced language models, integrated with Redis for session management and Upstash for cloud storage.
The AI Assistant project consists of a Next.js website that leverages modern React components and server-side functionality to create a seamless chat experience. It includes features for managing chat sessions, processing messages, and interacting with a language model hosted on Upstash.
meta-llama/Meta-Llama-3-8B-Instruct
model for generating responses.To get started with the AI Assistant project, follow these steps:
Clone the Repository
git clone https://github.com/zhrafin/AI-Assistant.git
cd AI-Assistant
Install Dependencies
For Python dependencies:
pip install -r requirements.txt
For Node.js dependencies:
npm install
Set Up Environment Variables
Create a .env
file in the root directory of the project and add the following:
Run the Application
For development:
npm run dev
For production:
npm run build
npm start
/pages
: Contains the Next.js pages. Includes page.tsx
for the chat interface and route.ts
for handling API requests./components
: Contains React components used in the application, such as ChatWrapper.tsx
, ChatInput.tsx
, Messages.tsx
, and Message.tsx
./lib
: Contains utility files such as redis.ts
for Redis client configuration and rag-chat.ts
for setting up the RAGChat instance./public
: Contains static assets and images./styles
: Contains global styles and Tailwind CSS configuration.Below are some screenshots showcasing the GUI of the AI Assistant:
Watch the video demonstration of the AI Assistant application:
Feel free to reach out if you have any questions or need further assistance!