PoliSync is an intelligent chatbot that leverages RAG (Retrieval-Augmented Generation) technology to help users understand and navigate company policies effectively. Built with Next.js 13+, TypeScript, and modern web technologies, PoliSync provides an intuitive interface for policy queries and information retrieval.
- 🤖 AI-powered chat interface for policy questions
- 📑 PDF document ingestion and processing
- 🔍 Intelligent search and retrieval of policy information
- 💾 Supabase integration for data persistence
- 🎨 Modern UI with Radix UI components
- 🌐 Responsive design for all devices
- Framework: Next.js 13+
- Language: TypeScript
- UI Components: Radix UI
- Styling: Tailwind CSS
- Database: Supabase
- AI Integration: Google Generative AI
- PDF Processing: PDF Parse
-
Clone the repository
-
Install dependencies:
bun install # or bun install -
Set up environment variables: Create a
.env.localfile with the following variables:GOOGLE_API_KEY=your_google_api_key SUPABASE_URL=your_supabase_url SUPABASE_ANON_KEY=your_supabase_anon_key -
Run the development server:
bun run dev # or bun run dev -
To ingest PDF documents:
bun run ingest # or bun run seed:pdf
- Upload company policy documents in the
/public/pdfdirectory - Ask questions about policies in natural language
- Receive accurate, context-aware responses based on your documents
- Browse through conversation history and save important responses
bun run dev: Start development serverbun run build: Build for productionbun run start: Start production serverbun run lint: Run ESLintbun run seed:pdf: Ingest PDF documents
/app: Main application pages and API routes/components: Reusable UI components/lib: Utility functions and configurations/hooks: Custom React hooks/public: Static assets/scripts: Data ingestion and seeding scripts
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request