Serverless document and media processing with AI chat. Scale-to-zero architecture β no vector database fees, no idle costs. Upload documents, images, video, and audio β extract text with OCR or transcription β query using Amazon Bedrock or your AI assistant via MCP.
- βοΈ Fully serverless architecture (Lambda, Step Functions, S3, DynamoDB)
- π§ NEW Amazon Nova multimodal embeddings for text and image vectorization
- π Document processing & vectorization (PDF, images, Office docs, HTML, CSV, JSON, XML, EML, EPUB) β stored in managed knowledge base
- π¬ NEW Video/audio processing - transcribe speech with AWS Transcribe, searchable by timestamp
- π¬ AI chat with retrieval-augmented context and source attribution
- π Collapsible source citations with optional document downloads
- β±οΈ NEW Media sources with timestamp links - click to play at exact position
- π Metadata filtering - auto-discover document metadata and filter search results
- π― Relevancy boost for filtered results - prioritize matches from metadata filters
- π Knowledge Base reindex - regenerate metadata for existing documents with updated settings
- ποΈ Document management - reprocess, reindex, or delete documents from the dashboard
- π Web component for any framework (React, Vue, Angular, Svelte)
- π One-click deploy
- π° $7-10/month (1000 docs, Textract + Haiku)
| Environment | URL | Credentials |
|---|---|---|
| Base Pipeline | dhrmkxyt1t9pb.cloudfront.net | guest@hatstack.fun / Guest@123 |
| Project Showcase | showcase-htt.hatstack.fun | Login as guest |
Base Pipeline: The core document processing tool - upload, OCR, and query documents.
Project Showcase: See RAGStack powering a real application.
REPO IS IN ACTIVE DEVELOPMENT AND WILL CHANGE OFTEN
Deploy directly from the AWS Console - no local setup required:
- Subscribe to RAGStack on AWS Marketplace (free)
- Click here to deploy
- Enter a stack name (lowercase only, e.g., "my-docs") and your admin email
- Click Create Stack (deployment takes ~10 minutes)
After deployment:
- Check your email for the temporary password (from Cognito)
- Go to CloudFormation β your stack β Outputs tab to find the Dashboard URL (
UIUrl)
For customization or development:
Prerequisites:
- AWS Account with admin access
- Python 3.13+, Node.js 24+
- AWS CLI, SAM CLI (configured)
- Docker (for Lambda layer builds)
git clone https://github.com/HatmanStack/RAGStack-Lambda.git
cd RAGStack-Lambda
# Create virtual environment and install dependencies
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Deploy (defaults to us-east-1 for Nova Multimodal Embeddings)
python publish.py \
--project-name my-docs \
--admin-email admin@example.comDeploy RAGStack as part of a larger CloudFormation stack. See Nested Stack Deployment Guide for details.
Quick example:
Resources:
RAGStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://ragstack-quicklaunch-public-631094035453.s3.us-east-1.amazonaws.com/ragstack-template.yaml
Parameters:
StackPrefix: 'my-app-ragstack' # Required: lowercase prefix
AdminEmail: admin@example.comSee RAGSTACK_CHAT.md for web component integration guide.
Server-side integrations use API key authentication. Get your key from Dashboard β Settings.
curl -X POST 'YOUR_GRAPHQL_ENDPOINT' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"query": "query { searchKnowledgeBase(query: \"...\") { results { content } } }"}'Web component uses IAM auth (no API key needed - handled automatically).
Each UI tab shows server-side API examples in an expandable section.
Use your knowledge base directly in Claude Desktop, Cursor, VS Code, Amazon Q CLI, and other MCP-compatible tools.
# Install (or use uvx for zero-install)
pip install ragstack-mcpAdd to your AI assistant's MCP config:
{
"ragstack-kb": {
"command": "uvx",
"args": ["ragstack-mcp"],
"env": {
"RAGSTACK_GRAPHQL_ENDPOINT": "YOUR_ENDPOINT",
"RAGSTACK_API_KEY": "YOUR_API_KEY"
}
}
}Then ask naturally: "Search my knowledge base for authentication docs"
See MCP Server docs for full setup instructions.
Upload β OCR β Embeddings β Bedrock KB
β
Web UI (Dashboard + Chat) ββ GraphQL API
β
Web Component ββ AI Chat with Sources
Upload documents in various formats. Auto-detection routes to optimal processor:
| Type | Formats | Processing |
|---|---|---|
| Text | HTML, TXT, CSV, JSON, XML, EML, EPUB, DOCX, XLSX | Direct extraction with smart analysis |
| OCR | PDF, JPG, PNG, TIFF, GIF, BMP, WebP, AVIF | Textract or Bedrock vision OCR (WebP/AVIF require Bedrock) |
| Media | MP4, WebM, MP3, WAV, M4A, OGG, FLAC | AWS Transcribe β 30s segments β searchable with timestamps |
| Passthrough | Markdown (.md) | Direct copy |
Processing time: UPLOADED β PROCESSING β INDEXED (typically 1-5 min for text, 2-15 min for OCR, 5-20 min for media)
Upload JPG, PNG, GIF, WebP with captions. Both visual content and caption text are searchable.
Scrape websites into the knowledge base. See Web Scraping.
Upload MP4, WebM, MP3, WAV, M4A, OGG, or FLAC files. Speech is transcribed using AWS Transcribe and segmented into 30-second chunks for search. Sources include timestamps (e.g., "1:30-2:00") with clickable links that play at the exact position.
Features:
- Speaker diarization (identify who said what)
- Configurable language (30+ languages supported)
- Timestamp-linked sources in chat responses
See Configuration for language and speaker settings.
Ask questions about your content. Sources show where answers came from.
- Configuration - Settings, quotas, API keys & document management
- Nested Stack Deployment - Deploy as part of larger CloudFormation stack
- Web Scraping - Scrape websites
- Metadata Filtering - Auto-discover metadata and filter results
- Chat Component - Embed chat anywhere
- Architecture - System design & API reference
- Development - Local dev
- Troubleshooting - Common issues
- Library Reference - Public API for lib/ragstack_common
npm run check # Lint + test all (backend + frontend)# Full deployment (defaults to us-east-1)
python publish.py --project-name myapp --admin-email admin@example.com
# Skip dashboard build (still builds web component)
python publish.py --project-name myapp --admin-email admin@example.com --skip-ui
# Skip ALL UI builds (dashboard and web component)
python publish.py --project-name myapp --admin-email admin@example.com --skip-ui-all
# Enable demo mode (rate limits: 5 uploads/day, 30 chats/day; disables reindex/reprocess/delete)
python publish.py --project-name myapp --admin-email admin@example.com --demo-modeTo update the one-click deploy template:
python publish.py --publish-marketplaceThis packages the application and uploads to S3 for one-click deployment.
Note: Currently requires us-east-1 (Nova Multimodal Embeddings). When available in other regions, use
--region <region>.
This project was inspired by:
- Accelerated Intelligent Document Processing on AWS - AWS Solutions Library reference architecture
- docs-mcp-server - MCP server for documentation search
