NyayMitra
- Role
- Backend — schema, retrieval path, API surface
- Context
- Project
- Stack
- PythonFastAPIPostgreSQLVector searchLoad testing
- Source
- Private
An authenticated FastAPI service that ingests contracts, stores structured metadata in PostgreSQL, and retrieves clauses by meaning across a 200+ document corpus.
- 01
Built authenticated REST APIs over Python, FastAPI and PostgreSQL, designing the schema and the retrieval path together rather than bolting search onto an existing model.
- 02
Implemented document ingestion with structured metadata storage, so every retrieved clause carries the context needed to act on it.
- 03
Added semantic retrieval via vector search for clause lookup across the corpus, backed by indexed database queries.
- 04
Load-tested the read path end to end instead of trusting single-request timings.
Clause retrieval across a 200+ document corpus.
Sustained 50+ concurrent users during load testing.
p95 latency held below 2 seconds across the combined PostgreSQL and vector-search read path.
- Documents in corpus
- 0+Documents in corpus
- Concurrent users sustained
- 0+Concurrent users sustained
- p95 read-path latency
- <0sp95 read-path latency
Concepts applied
- Schema design
- Semantic retrieval
- API authentication
- Indexing
- Load testing
Next project
01Credit Claim Service