-
Notifications
You must be signed in to change notification settings - Fork 18
[Bug] POST /search returns 500 with public collection IDs #761
Copy link
Copy link
Labels
Description
Bug Report
Endpoint: POST /search
HTTP Status: 500 Internal Server Error
Date observed: 2026-02-28
Description
All search requests against the public collection IDs [784, 785, 1094, 783] return HTTP 500. The same collections work fine for document upload and the /rerank endpoint. The error is consistent — every question in a 5-sample evaluation batch failed with the same 500 response.
Request payload
{
"prompt": "Comment le document indique‑t‑il que les risques sont présentés ?",
"collections": [784, 785, 1094, 783],
"limit": 10,
"offset": 0,
"method": "hybrid",
"rff_k": 20
}Response body
Internal Server Error
Reproduction
curl -s -X POST \
-H "Authorization: Bearer $ALBERT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Comment le document indique-t-il que les risques sont présentés ?", "collections": [784, 785, 1094, 783], "limit": 10, "offset": 0, "method": "hybrid", "rff_k": 20}' \
https://albert.api.etalab.gouv.fr/v1/searchAdditional context
- Document upload to a private collection (collection 104880, created during the same session) worked fine immediately before this
/rerankendpoint was not tested during this session but had been working in prior sessions- Switching to
method: "semantic"was not tested; the issue may be specific tohybrid - All 5 evaluation questions against the same collection set returned 500 (not intermittent)
👾 Generated with Letta Code
Reactions are currently unavailable