A web application that helps users detect Personally Identifiable Information (PII) in PDF documents using AI capabilities. Built with Next.js and the Vercel AI SDK.
- 🤖 AI-powered chat interface for compliance assistance
- 📄 PDF document processing and PII detection
- 🔍 Detection of common PII patterns:
- Email addresses
- Phone numbers
- Social security numbers
- Credit card numbers
- ⚡ Real-time streaming responses
- 🎨 Modern UI with TailwindCSS and shadcn/ui
- Frontend: Next.js 14 (App Router)
- Language: TypeScript
- Styling: TailwindCSS
- UI Components: shadcn/ui
- AI Integration: Vercel AI SDK
- LLM Provider: OpenAI API
- Deployment: Vercel
- Node.js 18.17 or later
- npm or yarn
- OpenAI API key
- Clone the repository:
git clone https://github.com/yourusername/parakeet-ai-agent.git
cd parakeet-ai-agent- Install dependencies:
npm install
# or
yarn install- Create a
.env.localfile in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Run the development server:
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser.
- Open the application in your browser
- Upload a PDF document using the file upload button
- Chat with the AI assistant about the document
- The AI will automatically detect and report any PII found in the document
The application follows a modern web architecture with the following components:
- Chat interface for user interaction
- File upload component for PDF documents
- Real-time streaming response display
- Next.js API routes for handling requests
- Vercel AI SDK integration for AI capabilities
- Custom PII detection tool implementation
- PDF text extraction
- PII pattern matching
- Real-time streaming of results
src/
├── app/ # Next.js app router pages
├── components/ # React components
├── lib/ # Utility functions and services
└── public/ # Static assets
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run test- Run tests
The application is configured for deployment on Vercel. To deploy:
- Push your code to a GitHub repository
- Import the repository in Vercel
- Add your OpenAI API key as an environment variable
- Deploy!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.