ketannnn commited on
Commit
8c91ba1
·
1 Parent(s): 319209d

feat: implement matching router with two-stage retrieval, reranking, and async explanation generation

Browse files
Files changed (1) hide show
  1. backend/src/routers/matching.py +2 -2
backend/src/routers/matching.py CHANGED
@@ -74,8 +74,8 @@ async def trigger_match(
74
  jd_id: uuid.UUID,
75
  request: Request,
76
  session_id: uuid.UUID | None = Query(None, description="Candidate session to match against"),
77
- stage1_top_k: int = Query(100, ge=10, le=500, description="How many candidates to retrieve from vector DB (Stage 1)"),
78
- stage2_top_k: int = Query(40, ge=5, le=250, description="How many Stage 1 candidates to pass to the neural reranker (Stage 2)"),
79
  db: AsyncSession = Depends(get_db),
80
  ):
81
  jd = await _load_jd(jd_id, db)
 
74
  jd_id: uuid.UUID,
75
  request: Request,
76
  session_id: uuid.UUID | None = Query(None, description="Candidate session to match against"),
77
+ stage1_top_k: int = Query(100, description="How many candidates to retrieve from vector DB (Stage 1)"),
78
+ stage2_top_k: int = Query(100, description="How many Stage 1 candidates to pass to the neural reranker (Stage 2)"),
79
  db: AsyncSession = Depends(get_db),
80
  ):
81
  jd = await _load_jd(jd_id, db)