- Introduction
- Features
- Prerequisites
- Getting Started
- Environment Setup
- Project Structure
- Development
- Deployment
The Miami Book Fair AI Chat Assistant is an intelligent chatbot designed to help users discover information about authors, events, and programming at the Miami Book Fair. It provides an intuitive interface for accessing event details, author information, and general fair-related queries.
- Interactive AI chat interface
- Real-time responses to queries about Miami Book Fair
- Document ingestion for up-to-date fair information
- Markdown support for formatted responses
- Supabase integration for vector storage
- OpenAI integration for natural language processing
- Modern UI with Tailwind CSS
- Full TypeScript support
Before you begin, ensure you have:
- Node.js (v18.x or later)
- npm (comes with Node.js)
- Git
You'll also need:
- OpenAI API key
- Supabase account and credentials
- Clone the repository:
git clone https://github.com/costavisions/mbf_chat_front.git
cd mbf_chat_front
- Install dependencies:
npm install
- Create a
.env
file in the root directory:
OPENAI_API_KEY=your_openai_api_key
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
mbf_chat_front/
├── app/
│ ├── api/
│ │ └── chat/
│ │ └── retrieval/
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ ├── ChatMessage.tsx
│ ├── ChatWindow.tsx
│ └── UploadDocumentsForm.tsx
├── lib/
│ └── utils.ts
├── public/
│ └── images/
├── .env
└── README.md
- Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser
-
To add new content to the chat assistant:
- Use the upload form to ingest new documents
- Content will be automatically vectorized and stored in Supabase
- Build the application:
npm run build
-
Deploy to your hosting platform:
- Vercel (recommended)
- Netlify
- Other platforms supporting Next.js
-
Configure environment variables on your hosting platform
For support, please open an issue in the GitHub repository or contact the development team.
Built with ❤️ for Miami Book Fair