AI-powered research assistant that helps you manage and query PDF documents using RAG (Retrieval-Augmented Generation), vector search, natural language processing, and self-hosted n8n.
- 📄 PDF Document Ingestion - Add documents via Slack slash command
- 🔍 Semantic Search - Find relevant information using vector similarity
- 🤖 RAG-Powered Q&A - Ask natural language questions, get cited answers
- 💬 Conversational Interface - Follow-up questions with conversation memory
- ⚡ Real-time Processing - Responses in 10-15 seconds
- 📊 Production Ready - Error handling, retries, logging
As a researcher, I needed to quickly find information across dozens of PDFs without re-reading everything. This tool:
- Stores documents in a searchable vector database
- Answers questions using AI with source citations
- Remembers conversation context for follow-ups
- Works entirely through Slack (no new interface to learn)
Example interaction:
You: /add-doc https://arxiv.org/pdf/1706.03762.pdf
Bot: ✅ Document added successfully!
You can now query this document using `/ask [your question]`
You: /ask What is the transformer architecture?
Bot: The transformer architecture is a neural network model that relies
entirely on self-attention mechanisms, eliminating the need for
recurrence and convolutions (Document 1, 94% match)...
Sources:
- "Attention Is All You Need" by Vaswani et al.
┌─────────┐ ┌──────┐ ┌─────────────┐ ┌──────────┐
│ Slack │────▶│ n8n │────▶│ Supabase │◀───▶│ OpenAI │
│Commands │ │Workflows │ │ │ API │
└─────────┘ └──────┘ └─────────────┘ └──────────┘
│ │
▼ ▼
┌───────────┐ ┌──────────┐
│ PDF Parser│ │Embeddings│
└───────────┘ └──────────┘
Flow:
- User uploads PDF via
/add-doccommand - n8n downloads and extracts text
- AI Model generates vector embedding (dimension depends on model used)
- Stored in Supabase
- User asks question via
/askcommand - Question is embedded and searched in vector DB
- Top 3 similar documents retrieved
- AI Model generates answer with citations
- Response sent back to Slack
- OpenAI API account
- Supabase account (free tier works)
- n8n instance (cloud or self-hosted)
- Slack workspace
1. Clone this repo:
git clone https://github.com/YOUR-USERNAME/personal-research-assistant.git
cd personal-research-assistant2. Set up Supabase database:
# Run the SQL schema in Supabase SQL Editor
cat database/supabase_schema.sql
# Copy and paste into https://app.supabase.com (SQL Editor)3. Import n8n workflows:
- Open your n8n instance
- Import
workflows/add-document-workflow.json - Import
workflows/ask-question-workflow.json - Add your OpenAI and Supabase credentials
4. Configure Slack app:
- Create Slack app at api.slack.com/apps
- Add slash commands
/add-docand/ask - Point to your n8n webhook URLs
- Install to workspace
Full setup instructions: docs/SETUP_GUIDE.md
- Setup Guide - Complete deployment walkthrough
- Technical Overview - Architecture deep dive
- Demo Video - See it in action (coming soon)
| Component | Technology | Purpose |
|---|---|---|
| Orchestration | n8n | Workflow automation |
| Vector DB | Supabase (PostgreSQL + pgvector) | Similarity search |
| Embeddings | Sentence-Transformer/Distilbert | 1536-dim vectors |
| LLM | Groq Qwen-3-32b | Question answering |
| PDF Processing | n8n PDF extractor node | Text extraction |
| Interface | Slack | User commands |
Note: You can also use OpenAI or other AI Model. Just make sure to change the dimension to 1536 (if OpenAI) or others (depends on the model used). The models used here are for free demonstration purpose only.
- All API keys stored in n8n encrypted credentials
- Documents stored in your own Supabase instance
- No data sharing beyond API calls
- Can be deployed fully self-hosted
- [✓] PDF document ingestion
- [✓] Document chunking for long files
- [✓] Vector similarity search
- [✓] RAG-powered Q&A
- [✓] Conversation memory
- Support for DOCX, HTML, Markdown
- Web interface (beyond Slack)
- Citation graph visualization
This is a personal portfolio project meant to demonstrate my skill, but suggestions are welcome!
MIT License - feel free to use for your own projects
Alexis Michelle Abellar
- Portfolio: lxsmchll.github.io
- Email: alexis.i.abellar@gmail.com
- LinkedIn: linkedin.com/in/alexis-michelle-abellar/
Built as a practical application of my skills on:
- AI Model RAG architecture patterns
- Supabase documentation
- n8n community workflows
⭐ If you find this useful, please star the repo!
Built with ❤️ using n8n and Supabase



