All work
Stack
Next.jsOpenAI APIpgvectorVercel AI SDK
Features
- Streaming responses via Vercel AI SDK
- Vector document search with pgvector
- PDF, DOCX, TXT upload with chunking
- Chat history persistence in Postgres

AI Assistant with RAG
Overview
AI assistant that answers questions about your documents. Uses RAG: documents are chunked, embedded via OpenAI and stored in pgvector. On query, relevant fragments are retrieved and injected into the prompt.