mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* perf: Debounce People Picker Search * perf: Index-Bound Word-Prefix Search for Users and Groups Principal search and admin user search matched name, email and username with case-insensitive regexes, which scan the whole users collection. Users and groups now store lowercase, accent-folded token arrays derived from each searchable field, indexed with tenantId, and searches match anchored token prefixes. Schema middleware keeps the tokens in sync on save, insertMany and update queries. Documents written before the tokens existed stay findable through a fallback branch until npm run migrate:search-tokens backfills them; startup warns while any remain. * perf: Build Search Token Indexes in the Backfill Migration * fix: Reconcile Stale Search Tokens and Close Write-Path Gaps The backfill now compares every document's tokens with its source fields and repairs stale ones, so writes from an older server during a rolling deploy are recoverable by rerunning it. Undefined assignments no longer clear tokens, upsert inserts initialize every token field, every query word is required, relevance scoring folds accents like the filter does, and the startup check counts both collections in parallel and owns its error logging. * perf: Drop the Second People Picker Debounce SearchPicker already debounces query changes by 500ms; the extra 300ms delay in UnifiedPeopleSearch stacked on top of it. * fix: Match Nothing for Queries Over the Word Cap Dropping the query word cap let one request build an unbounded filter. Restore a 16 word cap, but a longer query now matches nothing instead of ignoring its extra words, so a cap never produces a false positive. * test: Cover Word-Prefix People Search and the Token Backfill End to End * fix: Tokenize Fields an Upsert Copies From Its Filter MongoDB copies equality conditions from an upsert's filter into the inserted document, so their token fields now derive from that value instead of being initialized empty. * fix: Rank Accent-Folded User Matches Like the Search Filter * test: Run the Token Backfill Without Blocking the Playwright Worker * perf: Index Search Tokens Tenant First for Scoped Searches and Ignore Undefined Unsets * test: Skip the Module-Scope Index Rebuild When the Scenario Runs the Backfill * fix: Exit the Search Token Migration When Redis Clients Stay Open * perf: Probe for Missing Search Tokens at Startup Instead of Counting Them * test: Explain the Startup Probe the Warning Actually Issues * fix: Keep Search Token Fields Out of Serialized Users and Groups * fix: Keep the Admin Search Legacy Fallback Anchored at the Field Start * fix: Score Groups Only on the Fields Search Matches * perf: Start the Search Token Probe Alongside the Permission Checks * fix: Warn at Startup When the Search Token Indexes Were Never Built * fix: Score People Search Matches With the Filter's Word Separators * perf: Check the Token Indexes Before Probing for Unmigrated Documents * test: Drive the Failed Startup Probe Past the Index Check * fix: Score People Search Matches Independently of Word Order |
||
|---|---|---|
| .. | ||
| api | ||
| chat | ||
| client | ||
| data-provider | ||
| data-schemas | ||