B2B RAG Platform
AI-powered platform for B2B businesses to generate contracts, invoices, schedule meetings, and send automated reminders โo all backed by a Retrieval-Augmented Generation (RAG) pipeline.
Features
๐ Contract generation โ NDA, SoW, MSA with clause retrieval from your knowledge base
๐งพ Invoice generation โ Line items, tax, PDF export, Stripe payment links
๐
Meeting scheduling โ Natural language scheduling with Cal.com / Google Calendar
๐ Reminders โ Automated email, SMS, and Slack notifications via Celery
Architecture
Tech Stack
Layer Technology LLM GPT-4o / Claude 3.5 Sonnet Embeddings OpenAI text-embedding-3-small Vector store pgvector (dev) โ Pinecone (prod) Orchestration LangChain Backend FastAPI + Celery + Redis Frontend Next.js 14 + Tailwind CSS Database PostgreSQL (RDS) Storage AWS S3 Scheduling Cal.com API / Google Calendar Notifications SendGrid + Twilio + Slack Infrastructure AWS EKS + Terraform + ArgoCD Auth Auth0 (multi-tenant B2B)
Getting Started
Prerequisites
Docker & Docker Compose
Python 3.11+
Node.js 20+
AWS CLI (for infra)
Terraform 1.6+
Local Development
The API will be at
http://localhost:8000 and the UI at http://localhost:3000.Environment Variables
See
.env.example for the full list. Key variables:Environment File Security
โ ๏ธ Never commit
.env to version control! It's already in .gitignore..env.example is safe to commit โ it shows what variables are needed but with placeholder values.env should be created locally or in CI/CD via GitHub SecretsGitHub Secrets for CI/CD
To enable secure CI/CD, set up the following secrets in your repository settings:
Go to
Settings โ Secrets and variables โ ActionsAdd these secrets:
Secret Name Description
DB_PASSWORD PostgreSQL database password for testing OPENAI_API_KEY OpenAI API key for AI features(Add more as needed for your integrations:
ANTHROPIC_API_KEY, STRIPE_SECRET_KEY, SENDGRID_API_KEY, etc.)Example GitHub Actions usage:
Project Phases
Phase 1 โ RAG pipeline & document ingestion
Phase 2 โ Contract & invoice generation
Phase 3 โ Meeting scheduling integration
Phase 4 โ Reminders & notifications
Phase 5 โ Production infra (EKS + Terraform)
Phase 6 โ Observability (Prometheus + Grafana + OTel)
Contributing
Branch from
main: git checkout -b feat/your-featureCommit with conventional commits:
feat:, fix:, chore:Open a PR โ CI must pass before merge
License
MIT
0 likes ยท 17 views ยท Jun 21, 2026
Developed an AI-powered B2B platform for contracts and scheduling.