Skip to content

[Bug] POST /search returns 500 with public collection IDs #761

@kaaloo

Description

@kaaloo

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/search

Additional context

  • Document upload to a private collection (collection 104880, created during the same session) worked fine immediately before this
  • /rerank endpoint 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 to hybrid
  • All 5 evaluation questions against the same collection set returned 500 (not intermittent)

👾 Generated with Letta Code

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions