Repository navigation
v2.3.6
Caution
Read the 2.3.6 sections of the upgrade guide before you upgrade. On Docker Compose, schedule an interruption: the project network is recreated, Compose now reads OPENRAG_ENV_FILE instead of SHARED_ENV, and credentials are checked before PostgreSQL, MinIO and Milvus start. On a shared Ray cluster, stop uploads first. Every Chainlit user logs in again once, and a deployment that persists Chainlit history runs a migration before the first start.
Highlights
- OpenDocument and legacy Excel files.
.odtand.odpdocuments (#1289) and binary.xlsworkbooks (#1487) can now be indexed, and charts inside.xlsxworkbooks become searchable text (#1395). - Workspaces in the admin console. Create and manage workspaces, and chat scoped to one (#1456).
- Large files no longer fail in Milvus. A file's chunks are written in requests Milvus accepts (#1488).
- File quotas hold under concurrent uploads. A slot is reserved atomically when an upload is accepted (#1315).
- Safer defaults behind the bundled proxy. Compose trusts only the bundled admin UI proxy for forwarded headers (#1480), and service credentials are checked before the services start (#1461).
What's Changed
🚨 BREAKING CHANGE
- fix(compose): trust the bundled admin UI proxy by default by @hedhoud in #1480
- The Compose stack now declares its bridge subnet to reserve the proxy addresses. Recreate the project network once:
docker compose downthendocker compose up -dfrominfra/compose/, with the same-ffiles and profiles, and without-v. Disconnect containers outside the project from its network first (guide). - If you set
UVICORN_FORWARDED_ALLOW_IPSyourself, include loopback and the exact admin UI proxy address; with the TLS overlay, remove broad ranges such as172.16.0.0/12. If Compose reportsPool overlaps with other one on this address space, setOPENRAG_COMPOSE_SUBNET,OPENRAG_COMPOSE_DYNAMIC_RANGEandOPENRAG_ADMIN_UI_PROXY_IP(andOPENRAG_NPM_PROXY_IPwith the TLS overlay).
- The Compose stack now declares its bridge subnet to reserve the proxy addresses. Recreate the project network once:
- fix: align secret checks and guarded endpoint boot sync by @hedhoud in #1461
- Compose checks service credentials before PostgreSQL, MinIO, Milvus initialization and the bundled Grafana start. An empty required credential always stops the service; a published or too short one stops it unless
ALLOW_INSECURE_SECRETS=true. In OIDC mode, check thatOIDC_TOKEN_ENCRYPTION_KEYis a valid Fernet key before restarting. - Compose selects the API's environment file with
OPENRAG_ENV_FILEand ignoresSHARED_ENV, even when exported in the shell. For a custom file, setOPENRAG_ENV_FILEin it to its own absolute path and pass the same path with--env-fileon every command.python3 scripts/gen_env.pymigrates supportedSHARED_ENVpaths; check first whether your file setsAUTH_TOKEN, as described in the guide. - With
MODEL_ENDPOINT_SYNC_ON_BOOT=true, startup no longer changes the embedder's URL, model or provider while indexed files depend on it; it logs the held fields instead. Apply such a change in the admin API withacknowledge_indexed_data=true.
- Compose checks service credentials before PostgreSQL, MinIO, Milvus initialization and the bundled Grafana start. An empty required credential always stops the service; a published or too short one stops it unless
- fix(auth): revalidate recent credentials during lockout by @hedhoud in #1462
- During a failed-auth IP lockout, a recently validated
AUTH_TOKENkeeps working only in the generated format (or-and 32 lowercase hex digits). A hand-chosen token works normally but gets429during a lockout; generate a new one withprintf 'or-%s\n' "$(openssl rand -hex 16)"if admin calls must get through a shared-IP lockout.
- During a failed-auth IP lockout, a recently validated
- fix(quota): reserve file slots atomically at admission by @EnjoyBacon7 in #1315
- On a shared Ray cluster (
ray.enabled: true, or an external cluster), uploads queued before the upgrade hold no slot, so a user with queued uploads can end up over quota by that many files. Stop upload traffic and wait until no indexing task is queued or running before upgrading (guide).
- On a shared Ray cluster (
- fix(retrieval): lower the default similarity_threshold to 0.2 by @Ahmath-Gadji in #1452
- The threshold now filters the semantic (embedding) search only, before the merge with the keyword search, and defaults to
0.2everywhere:SIMILARITY_THRESHOLD(was0.6),GET /search(was0.75) andOPENRAG_MCP_SIMILARITY_THRESHOLD(was0.8). Retrieval results change: more passages come from the semantic search. - A migration sets every retrieval preset that holds exactly
0.6to0.2, and a rollback does not restore it; presets without the key follow the new default. To keep the old behavior, set the value back where each path reads it (guide).
- The threshold now filters the semantic (embedding) search only, before the merge with the keyword search, and defaults to
- fix(chainlit): identify users by account id, not display name (GHSA-2mxh-2w5q-gv3v)
- Every Chainlit user logs in again once after the upgrade.
- With persisted Chainlit history, run the migration from the upgrade guide after stopping the old release and before starting the new one. In every authentication mode, regenerate the API tokens of accounts that shared a display name (
POST /users/{id}/regenerate_token).
- fix(rag): linear-time text cleanup and chunking; bound n, best_of and the output length, including inside extra_body (GHSA-vvrr-g49q-3v4g)
- Text cleanup (
sanitize_text) and thestructured_sectionchunker (dash-clause split, markdown headings) now take linear time on long runs of whitespace, and so does token counting (#1529): a crafted chat request no longer blocks an API worker, and a crafted file no longer holds an indexing worker for minutes. nandbest_ofabove 8, andmax_tokensormax_completion_tokensbelow 1, are refused with422, also insideextra_body. The token budget countsmax_completion_tokensandextra_bodyas well asmax_tokens.
- Text cleanup (
🚀 Features
- Expose workspace management and scoped chat by @hedhoud in #1456
- feat(ui): reorder the endpoint form and list models from the endpoint by @Ahmath-Gadji in #1477
- feat(xlsx): index workbook charts as searchable text by @nthtrng in #1395
- feat(xls): index legacy Excel workbooks by @nthtrng in #1487
- feat(indexing): index OpenDocument text and presentation files by @EnjoyBacon7 in #1289
🐛 Bug Fixes
- fix: count long unbroken runs in linear time, and the chat preflight off the event loop by @Ahmath-Gadji in #1529
- Token counting now takes linear time on a long unbroken run of characters (letters, emoji, CJK, zero-width spaces, whitespace), and the chat, completions and retrieval-diagnostics preflight counts run off the event loop. Part of GHSA-vvrr-g49q-3v4g.
- fix(inference): redact emails in the call log in linear time by @Ahmath-Gadji in #1528
- fix(milvus): write a large file's chunks in requests Milvus accepts by @Ahmath-Gadji in #1488
- fix(indexing): 409 instead of 500 for an upload or replace during a delete by @andyne13 in #1458
- fix(chart): roll the API pods when the env Secret changes by @andyne13 in #1476
- fix(chart): set the reranker's NVIDIA variables in the template by @Ahmath-Gadji in #1025
- Keep structured-section chunks within the hard token limit by @hedhoud in #1419
- fix: bound structured section chunk headers by @Swarneil1905 in #1400
- fix(chainlit): keep source labels inert in Markdown by @hedhoud in #1420
- fix(chainlit): keep a source chip clickable when its name holds a directive or a strikethrough by @Ahmath-Gadji in #1432
- fix: neutralize parser-recognized source tags in RAG context by @hedhoud in #1421
- fix: prevent 'sources' in compound words from matching citation tag by @Christian-Sidak in #1483
- fix: normalize web citation titles before markdown rendering by @JJhamnani2309 in #1392
- fix(auth): hash OIDC subjects in provisioning logs by @BrewAndCode in #1471
- fix(users): say that deleting a user deletes the partitions they own by @EnjoyBacon7 in #1208
- fix(ui): keep failed files after a partial batch upload by @EnjoyBacon7 in #1212
- fix(ui): show running jobs' stage in every Jobs tab by @EnjoyBacon7 in #1481
- fix(indexing): preserve terminal task states on cancel by @devanshgoel7 in #1201
- fix: reject copies of missing source files by @Swarneil1905 in #1414
- fix(mcp): store index_url downloads in data_dir, named like an upload by @Ahmath-Gadji in #1474
- fix(pptx): skip a slide whose relationship does not resolve, not the whole deck by @scks1 in #1417
- fix(csv): fall back to cp1252 when chardet names a codec Python lacks by @scks1 in #1418
- fix(docling): preserve image caption positions and page metadata by @1divyanshdev in #1326
- fix(indexing): preserve captions inside HTML table bodies by @AdhravRai in #1479
- fix(eml): skip a part whose Content-Disposition cannot be read instead of failing the email by @SAY-5 in #1399
- fix(docker): run one-off commands through the entrypoint as the app user by @EnjoyBacon7 in #1482
- fix(compose): milvus-init fails on restart with Docker Desktop bind mounts by @EnjoyBacon7 in #1503
- perf(docling): export each page in time proportional to its content by @scks1 in #1416
- [3/4] Keep chat partition settings consistent during a request by @hedhoud in #1508
- [4/4] Use the same chat model for token limits and generation by @hedhoud in #1509
🔧 Tech
- [1/4] Share partition config lookup for uploads and copies by @hedhoud in #1506
- [2/4] Share partition config lookup for retrieval by @hedhoud in #1507
- feat(indexing): file_fences table and commit-time fence check (#1430, 1/4) by @andyne13 in #1453
- feat(indexing): file fences for uploads, replaces and deletes (#1430, 2/4) by @andyne13 in #1459
- refactor(storage): ObjectStore port and filesystem adapter for uploaded files by @Ahmath-Gadji in #1470
- test(ui): give the endpoint form tests room for their real debounce waits by @EnjoyBacon7 in #1491
- chore(release): list unlabelled pull requests in the generated notes by @andyne13 in #1406
- chore: remove the refactoring planning documents by @andyne13 in #1408
- ci: build the documentation site when a pull request changes it by @andyne13 in #1405
- chore(chart): set the chart version back to the last release, 0.7.15 by @andyne13 in #1504
- docs(release): never move a published tag, check the docs before the merge, gate step 7 by @andyne13 in #1407
- docs(release): choose the version number only when the release is cut by @Ahmath-Gadji in #1455
- docs(api): a refused upload during a delete shows as a cancelled job by @andyne13 in #1475
- Docs 1085 by @kanchi1802 in #1248
- chore: back-merge v2.3.5 into develop by @andyne13 in #1404
- Bring #1528 and #1529 into 2.3.6 by @andyne13 in #1537
New Contributors
- @kanchi1802 made their first contribution in #1248
- @Swarneil1905 made their first contribution in #1400
- @JJhamnani2309 made their first contribution in #1392
- @scks1 made their first contribution in #1417
- @devanshgoel7 made their first contribution in #1201
- @AdhravRai made their first contribution in #1479
- @BrewAndCode made their first contribution in #1471
Full Changelog: v2.3.5...v2.3.6