Dexcribe
AI legal assistant for contracts and Philippine Supreme Court rulings.
- Role
- Co-founder & CTO
- Organisation
- Dexcribe
- When
- May 2025 - Present
- Status
- Paused
Overview
An AI-powered legal assistant that evolved into a contract analyzing AI Agent helping people analyze risks, opportunities, and create contracts. Built using RAG pipelines with MongoDB vector search to process Philippine jurisprudence and Supreme Court rulings.
Problem and approach
The problem
Initially built an AI legal assistant for lawyers to organize cases, but after user feedback and market research, we needed to pivot to a more accessible solution. The technical challenge was building a RAG system with Supreme Court rulings (2021-2025) while managing MongoDB storage limits and performance issues. We started with OpenAI vector store but it was too slow, then moved to MongoDB's built-in vector search but hit free tier limits.
The approach
Implemented a contract analyzing AI Agent using NextJS, FastAPI, and MongoDB vector search. Built a streaming response system on AWS Lambda with uvicorn web adapter, overcame storage limitations through clause-based clustering to preserve legal context, and created a user-friendly interface for contract analysis and creation targeting general public instead of lawyers.
What David did
- Built web scraping system to collect 5GB of Supreme Court rulings (2021-2025) from a public Supreme Court website
- Architected a RAG system with MongoDB vector search to store and retrieve legal knowledge
- Implemented RAG system with OpenAI embeddings for legal knowledge retrieval
- Solved MongoDB storage limitations by developing clause-based clustering approach
- Created streaming response system on AWS Lambda using FastAPI + uvicorn adapter
Show 4 more contributionsShow fewer
- Migrated from slow OpenAI vector store to MongoDB's built-in vector search
- Created a simple prototype of the AI Agent powered by the RAG system
- Spearheaded the development of the contract analyzer and creator targeting general public
- Started to develop the contract analyzer and creator targeting general public
Highlights
- YC Combinator Summer 2025 entry
- RAG System with MongoDB vector search
- AI Agent prototype with RAG system
- Scraped 5GB Supreme Court Rulings (2021-2025)
- Pivoted from lawyer-focused to consumer product
- Solved streaming limitations on AWS Lambda by integrating Uvicorn web adapter for real-time SSE
As listed in David’s project archive.
Screens and photos




Tools and links
Built with
- Next.js
- FastAPI
- MongoDB
- LangChain
- OpenAI
- AWS Lambda
- RAG
- Vector Search
- Python
- TypeScript
- TailwindCSS
Have a project like Dexcribe?
The guided planner will start from this project and suggest related work.
What happens next
You send a short brief
The problem, who it’s for and your timing. A few lines is enough.
I read it myself
Usually within 24 hours, with the most useful next step.
We agree the next move
A Blueprint, a scoped build, or a simpler path if that’s the better answer.