Benign huggingface Download

thedauns/e5-credit-finetune-v1 main

imports RankRequest from app.schemas.requestsimports Request from fastapi
SHA-256d326f3bc336a25a79318791c8b7b175a05034a17526fe714b8ed4179101f20de

Evidence

imports RankRequest from app.schemas.requests lines 1–24
1from fastapi import APIRouter, Depends, Request
2
3from app.core.errors import ServiceError
4from app.core.security import require_key
5from app.schemas.requests import RankRequest
6from app.schemas.responses import ERROR_RESPONSES, RankResponse
7
8router = APIRouter(
9 prefix="/api/v1/recommendations", tags=["recommendations"], dependencies=[Depends(require_key)]
10)
11
12
13@router.post("/rank", responses=ERROR_RESPONSES)
14async def rank(body: RankRequest, request: Request) -> RankResponse:
15 """Return all candidates ranked by cosine; recommend at most topK within the configured distance."""
⋯9 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.