feat: implement matching router with two-stage retrieval, reranking, and async explanation generation
Browse files
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,
|
| 78 |
-
stage2_top_k: int = Query(
|
| 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)
|