Lending Trellis
Stack: Next.js.
Next.js retrieval system for a mortgage brokerage.
- Hybrid search using embeddings, vector similarity, a lexical fallback, sampling, and optional reranking.
- Citation checks back to source pages.
- Eligibility rules kept separate from model recommendations.
- Structured loan-program extraction from PDFs.
- Background jobs for documents over a thousand pages.
- A large Postgres schema.
- Personal data separated with privacy in mind.
- Stripe subscription webhooks with idempotent updates.