Spaces:
Running
Running
Sync from felladrin/MiniSearch@a00aebb
Browse filesFiles changed (10)
36 unmodified lines37383940414236 unmodified lines
# The API key for You.com. Optional; without it the keyless "profile=free" endpoint is used, which allows 100 queries per day.SEARCH_FALLBACK_YOUCOM_API_KEY=""
# Whether a search that asks for an official page may run a second, "site:"-scoped query to reach the official site itself. Off by default, since it sends the engines a second request; only "true" or "1" turn it on.SEARCH_OFFICIAL_LANE_ENABLED="false"146 unmodified lines147148149150150151152153146 unmodified lines id: record-commit run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" - name: Log in to the Container registry uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4 uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }}2 unmodified lines3456789101112131415162 unmodified linesNotable changes, grouped by date, most recent first.
## 2026-11-05
- Relative month and year words in a query are anchored to absolute ones before the search leaves the browser: "next month" reaches the engines as "December 2026" and "ๆๅนด" as "2027ๅนด". The anchor is appended rather than substituted, so a query that already names a year keeps its own phrasing, and two anchors per query is the ceiling. The typed query still drives the prompt, the UI, and the history entry; only the copy sent to the search engines changes, and the search cache key changes with it. Anchors skip titles and phrases that are not dates ("ๆๅนดไปๆฅ", "็ปไธๆ็", "the last year of college") and leave "recent" and "latest" alone, because recency is what the engines already rank for. Day words ("tomorrow", "ๆๅคฉ") stay as typed: their anchor would be an ISO date, which pages rarely write, and many queries use them as names ("usa today"). Only English and Chinese phrases are recognized. `shared/relativeDates.ts` holds the rules and `client/modules/textGeneration.ts` applies them.- The page reader drops structural navigation before it extracts text: `nav`, `aside`, `header`, `footer` and `form` blocks go, and so does any block whose text is mostly links (60% or more, in blocks of 120 characters and up), judged innermost-first so a page-wide wrapper cannot take the article down with it. Inside an `<article>`, a `<main>` or a `role="main"` block, link density removes nothing, because a list of linked titles there is usually the answer itself. The page's title and h1/h2 words also join the passage score at 0.15 weight, so a page whose heading names the query breaks ties against its own navigation. On the sortiraparis December page the extracted text fell from 57,160 to 2,128 characters and the answering passage moved from 10th of 61 to 3rd of 8, which is what puts it inside a page's excerpt share. A link-list home page now contributes far less body text, and the reader accepts that trade: a thin excerpt beats one made of navigation links.- A result from the site the query names gets a bonus on its semantic score before the score filter: +0.5 when a query word equals the domain's label ("disney" and disney.com, subdomains included), +0.75 when the label is the query's own words joined ("disney plus" and disneyplus.com, "coca cola" and coca-cola.com). The bonus is added rather than multiplied because the reranker returns a raw logit that is usually negative, where a factor above one would demote the named site instead of promoting it. Substrings do not count (disneyfan.com gets nothing), filler words never match on their own (plus.com, news.com), and a query that names a year will not promote a page that states a different year, so a brand's recap of last year's event cannot displace fresher reporting; a page that states no year at all keeps the bonus, because relative-time queries are anchored to a year before they reach the search. A label that spells only the start of the query leaves words unused and gets nothing (`tesla investor relations` and teslainvestor.com), a label that starts with a filler word is skipped (`the disney store` and thedisney.com), a split label counts from four characters, and a trailing dot on the hostname changes nothing. The site's name comes from the public suffix list, private section included (the `tldts` package), so bbc.co.uk answers "bbc" and a tenant of a shared host such as someone.github.io answers its own name, not "github". The pinned top result is never boosted, so the score spread the client reads relevance tags from keeps its shape. The reranker still never sees the URL, and a result the search did not return cannot be added here: the boost reorders and re-selects what the pipeline already holds, which is enough to move a page into the six the model reads. `server/authorityRanking.ts` holds the rule and `docs/reranking.md` records it.- A text search that asks for an official page can now reach the official site even when the engine's results never included it, behind a new setting, `SEARCH_OFFICIAL_LANE_ENABLED`, which is off by default because it sends the engines a second request. When it is on, the query carries navigation intent (`ๅฎ็ฝ`, `ๆ็`, `่ฅไธๆถ้ด`, `official`, `hours`, `showtimes` and the like, in Chinese and English only), and one of the returned results names a site, the server sends a second, `site:`-scoped query to SearXNG and merges up to three of its results, deduplicated by URL and kept to that registrable domain, behind the pinned first result: the ranking re-sorts only what follows the top result, so a page appended past that window would never be re-sorted at all. The domain has to come from the results themselves, by the same rule the score bonus uses, because guessing `<token>.com` from the query would turn a search box into a scanner; a query that names a brand whose official site is absent from every result gets no second query. The second query is one request with no retry, and its failures count toward neither the SearXNG circuit nor the engine health in `/status`, so it cannot slow down or degrade the searches users are waiting on. SearXNG still sees the extra request, so an engine that suspends the instance after a CAPTCHA does so for every search. It runs only when SearXNG served the search (never after the fallback), never uses the last five seconds of the search deadline, and is canceled at eight seconds; a failure only logs and is counted, so it can add results but never turn a served search into a 502. `/status` reports `searches.officialLane` (searches, `resultsAdded`, `failures`), and `server/officialLane.ts` holds the rule.
## 2026-11-03
- The five thinking models added on 2026-11-02 (Spark X2.6 1.7B and 4B, Granite 4.2 3B, Qwen 3.5 4B, Gemma 4 E2B) no longer ship with thinking switched off. Their chain of thought arrives on wllama's `reasoning_content` channel and is now wrapped in the configured reasoning markers, so the existing thinking UI shows it while the model reasons and the answer streams in after. The model warmup counts a reasoning token as a working model, so thinking models no longer log a failed warmup.1234443 unmodified lines44844945045145245345445545645745045145845946046146246346446546611 unmodified lines478479480469481482483484485486import { normalizeRelativeDates } from "@shared/relativeDates";import gptTokenizer from "gpt-tokenizer";import prettyMilliseconds from "pretty-ms";import {443 unmodified lines let pageContentsRead = Promise.resolve(); let textSearchFailed = false;
// "ๆๅนด" or "next month" name no year to the search engine, which then // matches undated pages and leaves the answer to guess. Only this machine's // clock knows which year the user means, so the query sent to the engine // carries the anchor; the question, the history, and the prompt keep the // wording the user typed. const asOf = new Date();
const searchQuery = query.length > 2000 ? (await getKeywords(query, 20)).join(" ") : query; const searchQuery = normalizeRelativeDates( query.length > 2000 ? (await getKeywords(query, 20)).join(" ") : query, asOf, // The server rejects a longer query outright, so the anchor has to fit. { maxLength: 2000 }, ).searchQuery;
if (getSettings().enableImageSearch) { updateImageSearchState("running");11 unmodified lines if (textResults.length === 0) { const queryKeywords = await getKeywords(query, 10); const keywordOutcome = await searchText( queryKeywords.join(" "), normalizeRelativeDates(queryKeywords.join(" "), asOf, { maxLength: 2000, }).searchQuery, getSettings().searchResultsLimit, ); textResults = keywordOutcome.results;107 unmodified lines108109110111112113114115116117118119120121107 unmodified lines
That is why a provider that answers HTTP 429 is paused: the cascade skips it, without a network call, until its `Retry-After` has passed (60 seconds when the header is missing or invalid, and never more than an hour or less than a second). A public instance should set a key for each provider.
### Official Page Lane
A search that asks for an official page can miss the official site: an engine answering "disney ไธไธชๆๆ็" with aggregators and fan blogs leaves the schedule page out of the set entirely, and no ranking of that set can recover it. With the lane on, when the query carries navigation intent and one of the returned results names a site, the server asks SearXNG a second, `site:`-scoped question and merges the answers before ranking. `docs/reranking.md` records the rule; this variable governs it.
| Variable | Default | Description || ------------------------------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || `SEARCH_OFFICIAL_LANE_ENABLED` | `false` | Run the second, `site:`-scoped search when the query asks for an official page. Only `true` or `1` turns it on, and changing it takes a restart, since a process keeps the environment it was started with. It is off by default because it sends the engines a second request, which an instance they already rate-limit cannot afford. The lane runs only when SearXNG served the search (never after the fallback), never uses the last five seconds of the search deadline, and is canceled at eight seconds. It is one request with no retry, and its failures count toward neither the SearXNG circuit nor the engine health in `/status`: a failure only logs and is counted under `searches.officialLane`, never turning a served search into a 502. SearXNG still sees the extra request, so an engine that suspends the instance after a CAPTCHA does so for every search |
## Application Settings
Settings are stored in browser localStorage and can be changed via the Settings UI.88 unmodified lines89909192929394959697989394959697989910010110288 unmodified lines### Search Flow
1. User submits a query via SearchForm2. Relative month and year words (English and Chinese for now) are anchored to absolute ones before the request (`shared/relativeDates.ts`), so "next month" reaches the engines as "December 2026" and a relative phrase cannot leave the index without a year to match; the query as typed still drives the prompt, the history entry, and the UI2. Client checks IndexedDB cache for matching query hash3. On cache miss: authenticated HTTP request to `/search/text` or `/search/images`4. Server verifies request token via `searchToken.ts` (CSRF protection)5. `webSearchService.ts` forwards query to SearXNG at `http://127.0.0.1:8888`6. Raw results are deduplicated, cleaned, and optionally reranked7. Image results keep the thumbnail URLs SearXNG returned, and results that came back without one are dropped; the client loads each tile on its own from `/thumbnail`, so the response does not wait on any thumbnail host8. Results returned as structured JSON and cached in IndexedDB (15-minute freshness TTL)3. Client checks IndexedDB cache for matching query hash4. On cache miss: authenticated HTTP request to `/search/text` or `/search/images`5. Server verifies request token via `searchToken.ts` (CSRF protection)6. `webSearchService.ts` forwards query to SearXNG at `http://127.0.0.1:8888`7. Raw results are deduplicated, cleaned, and optionally reranked; a result from the site the query names gets a small score boost (`server/authorityRanking.ts`, see `docs/reranking.md`)8. Image results keep the thumbnail URLs SearXNG returned, and results that came back without one are dropped; the client loads each tile on its own from `/thumbnail`, so the response does not wait on any thumbnail host9. Results returned as structured JSON and cached in IndexedDB (15-minute freshness TTL)
### AI Generation Flow
71 unmodified lines7273747576757677787980818283848586878889909192939495969798998710010110210310410571 unmodified lines## Extraction
`server/pageContentService.ts` converts HTML with `html-to-text`, preferring theinnermost `article` / `main` / `[role="main"]` container and skipping nav,header, footer, aside, forms and inline widgets. Readability-style extractioninnermost `article` / `main` / `[role="main"]` container and skipping inlinewidgets; nav, header, footer, aside and forms are dropped by the scan describedbelow. Readability-style extractionvia `@mozilla/readability` would score better on hostile layouts, but it needs afull DOM implementation at runtime; `html-to-text` is already a dependency andthe passage ranking absorbs most of what boilerplate removal would have.
Sites built out of plain `div`s put the same chrome where no selector names it,so a single forward scan (`stripLinkHeavyBlocks`) runs before the conversion. Itdrops `nav`, `aside`, `header`, `footer` and `form` blocks, and any block of 120characters or more whose text is 60% or more link text, judged innermost-firstso that a wrapper which also holds the article survives. Inside `article`,`main` or `role="main"`, link density drops nothing: a list of linked titlesthere is usually the answer. The scan stays linear in the page size, whichmatters because it runs on the main thread for any public URL: an unclosed`<script>` runs to the end of the page, as a parser reads it, and a closing tagwith no open block to match skips the walk down the stack. A page that reads asempty after the scan falls back to its unstripped text.
Encoding comes from the `Content-Type` header, falling back to the `<metacharset>` the document declares, so a page that is not UTF-8 does not reach themodel as mojibake.
Passages are ranked by how much of the query they cover, with a prior for leadpassages (the definition or summary usually opens a page). The prior is worth atmost half a matched term, so it settles ties without outweighing coverage.most half a matched term, so it settles ties without outweighing coverage. Asecond prior, worth 0.15, rewards a passage for repeating the page's own`<title>` and `h1`/`h2` words, which a rail of unrelated teasers does not do.
For pools of at most 256 passages, the server also scores every passage withits local multilingual bi-encoder. Lexical and dense ranks are combined with96 unmodified lines97989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514610614714814910915015115215396 unmodified lines
This mode ensures the original top result is never displaced by the reranker, while still improving the ordering of subsequent results.
### Domain Priority
A page from the site the query names gets a small bonus on its semantic score before the filter runs (`server/authorityRanking.ts`, applied in `server/rankSearchResults.ts`). The reranker never sees the URL, so a query like "disney plus next month" ranks a blog roundup and disneyplus.com on their prose alone; the bonus lets the named site overtake a page whose snippet merely talks about it.
The bonus is added, not multiplied, because the reranker returns a raw cross-encoder logit: most documents score below zero, and a factor above one would push a negative score further down and demote the very site it means to promote.
The rule is narrow enough to explain in a sentence:
| Situation | Bonus | Example || ------------------------------------------- | ----- | -------------------------------------- || A query word equals the domain's label | +0.5 | `disney` โ disney.com, `wwe` โ wwe.com || The label is the query's words joined | +0.75 | `disney plus` โ disneyplus.com || The label is the query's words with hyphens | +0.75 | `coca cola` โ coca-cola.com || The label merely contains a query word | 0 | `disney` โ disneyfan.com |
Subdomains share their registrable domain's label, so investor.disney.com and www.disney.com both answer "disney". The label comes from the public suffix list, private section included (`tldts`), so bbc.co.uk answers "bbc", ministry.go.jp answers "ministry", and a tenant of a shared host such as someone.github.io answers its own name instead of "github". "+" is read as " plus ", because a hostname cannot contain it and a user typing "disney+" means the same brand.
Three guards keep the nudge from promoting the wrong page:
- Filler words never match on their own, so "plus size guide" does not promote plus.com and "news about disney" does not promote news.com. A label split into the query's words counts only when one part is four characters or more, unless a hyphen marks the split.- The joined-label bonus needs the words the query is actually about: a label that spells only the start of the query leaves the remaining words unused, so "tesla investor relations" does not promote teslainvestor.com, and a label that starts with a filler word is skipped, so "the disney store" does not promote thedisney.com.- When the query names a year, a page that states a different year is left alone: a brand's recap of last year's event is not the page the query meant, and fresher reporting should keep the top spot. A page that states no year at all keeps the bonus, because relative-time queries are anchored to a year before they reach the search ("next month December 2026") and the page that answers them often writes only "December".
The filler-word list is English. In another language, the other words of the query count as leftover, so the joined-label bonus rarely applies there, while the single-word bonus still does.
The bonus is applied before the standard-deviation filter, so it can also rescue a page the filter would have dropped. It cannot add a result the search did not return; that is a retrieval problem, not a ranking one. The pinned top result of a search is never boosted, so the score distribution the client reads relevance tags from keeps its shape.
### Official Page Lane
A bonus can reorder what a search returned, but it cannot summon a page the search never returned. When a query asks for an official page and the engine's results contain only aggregators and fan pages, there is nothing to promote, so the endpoint asks for the page directly: a second SearXNG query scoped to `site:<domain>`, whose results are merged into the set before ranking (`server/officialLane.ts`, wired in `server/searchEndpointServerHook.ts`).
The lane is off by default, because it sends the engines a second request; `SEARCH_OFFICIAL_LANE_ENABLED=true` turns it on. When it is on, two conditions have to hold, because a scoped second query costs latency and must not guess:
- The query carries navigation intent. Chinese has no word boundaries to split on, so the phrases are matched in the raw query (`ๅฎ็ฝ`, `ๅฎๆน็ฝ็ซ`, `ๅฎๆน็ซ`, `ๅฎๆน็ฝ้กต`, `ๅฎๆน้กต้ข`, `็ๅ`, `ๆ็`, `ๅบๆฌก`, `็ฅจไปท`, `่ฅไธๆถ้ด`, `ไธๆ ๆถ้ด`, `่ดญ็ฅจ`, `่ฎข็ฅจ`); English matches whole words (`official`, `hours`, `opening`, `schedule`, `showtime`, `showtimes`, `timetable`, `ticket`, `tickets`, `pricing`, `prices`). Other languages have no intent words yet, so their queries get no lane. The site has to appear in the query in the letters of its domain: "่ฟชๅฃซๅฐผ ๅฎ็ฝ" does not reach disney.com, while "disney ๅฎ็ฝ" does. Words that name the intent do not count as leftover for the domain match, so "disney plus showtimes" reaches disneyplus.com.- One of the returned results already names the site, by the same rule the bonus uses (`namedDomain`). The domain is evidence from the search itself; no domain is derived from the query alone, since probing `<token>.com` would turn a search box into a scanner. A query that names a brand whose official site did not appear anywhere in the results gets no lane. The rule matches names, not ownership: for "disney world ticket prices", a third-party disneyworld.eu answers "disney world", while Disney's own disneyworld.disney.go.com answers "go", so the lane scopes the third-party site.
The lane adds at most three results, deduplicated by URL and kept to the registrable domain it scoped to, so an engine that ignores `site:` cannot smuggle an unrelated host in. They are placed behind the pinned first result: the ranking keeps the top result where it is and re-sorts only what follows, so a page appended past that window would never be re-sorted at all.
Every failure is the search it already has. The lane runs only when SearXNG served the search, since results from the fallback mean SearXNG has just failed. It never uses the last five seconds of the 25-second search deadline, and its request is canceled at eight seconds. The request goes through `fetchSupplementarySearXNG` (`server/webSearchService.ts`): one request with no retry, which counts toward neither the circuit breaker nor the engine-health counters, so a `site:` query that comes back empty cannot slow down, open the circuit for, or mark degraded the searches users are waiting on. SearXNG itself still sees the request, so an engine that suspends the instance after a CAPTCHA does so for every search. A failure or a timeout only logs and increments a counter: it can add results, never turn a served search into a 502. `/status` reports `searches.officialLane` with how often the lane ran, how many results it added, and how often it failed.
## Integration with Search Pipeline
The search endpoint coordinates reranking in `searchEndpointServerHook.ts`:
```1. fetchSearXNG(query, searchType, limit) - internally fetches from SearXNG, deduplicates, and cleans results2. Text search only, when `SEARCH_OFFICIAL_LANE_ENABLED` is on: the official page lane may merge results from a `site:`-scoped second query (see above)2. Check getRerankerStatus()3. Check getRerankerStatus() - If healthy: rankSearchResults(query, searchType, results, preserveTopResults) - If unhealthy: return unranked results (fallback)3. Return structured JSON response4. Return structured JSON response```
Reranking is applied to both text and image search results. For image results, titles and URLs are reformatted into the same text-tuple shape used for text search before being sent through the reranker, then the original image data (including thumbnails) is re-matched to the reranked order by URL. Text search passes `preserveTopResults: true` to keep the original top SearXNG result pinned, while image search does not.55 unmodified lines5657585960616233 unmodified lines9697989899100991001011021031042045 unmodified lines215021512152215221532154215321542155215621572157215821592158215921602161216121622163216421652166216721682168216921702169217021712172217321732174217421752176217721781 unmodified line21802181218221822183218421832184218521862187218721882188218921902191219221932194219521952196219721962197219821992200220022012202220322042205220622072207220822092208220922102211221222122213221322142215221622171 unmodified line221922202221222122222223222222232224222522262226222722282229223022312232223322332234223522342235223622372238223822392240224122421 unmodified line224422452246224622472248224722482249225022512252632 unmodified lines2885288628872887288828892888288928902891289228932 unmodified lines28962897289828982899290029002901290229032904120 unmodified lines3025302630273027302830293028302930303031303230323033303430353036934 unmodified lines39713972397339733974397539743975397639773978397983 unmodified lines4063406440654065406640674066406740684069407040713142 unmodified lines7214721572167216721772187217721872197220722172217222722372247225722672277222722372247225722672277228722972307231289 unmodified lines75217522752375237524752575266 unmodified lines753375347535753675367537753855 unmodified lines "shiki": "^4.0.0", "temp-dir": "^3.0.0", "throttleit": "^3.0.0", "tldts": "^7.0.25", "vite": "^8.0.0", "wouter": "^3.3.0", "yet-another-react-lightbox": "^3.21.6",33 unmodified lines "license": "MIT" }, "node_modules/@ai-sdk/gateway": { "version": "4.0.132", "resolved": "https://registry.npmjs.org/@ai-sdk/gateway/-/gateway-4.0.132.tgz", "integrity": "sha512-ppStDEz96g+JEuxGiVTP29OKBjPyYZXRxs38wnq3427U2QbZtxe6TukrgSAAq0n4yaHvSvVAWJY9kBlW8XudYg==", "version": "4.0.133", "resolved": "https://registry.npmjs.org/@ai-sdk/gateway/-/gateway-4.0.133.tgz", "integrity": "sha512-6DmtrnwvTZG6RFhZscsnUX0XKxA+o2Y/EkZUGWWqFITez/gvOGG/PRKITjwPupUci5vbORThwqkbCj1/066Reg==", "license": "Apache-2.0", "dependencies": { "@ai-sdk/provider": "4.0.35",2045 unmodified lines } }, "node_modules/@shikijs/core": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.5.0.tgz", "integrity": "sha512-6CIgwq+bt2JZ3OSjb/nBkkwEf/CfpHcbam+Mg5Pllco7HAGRQ2/EFhZrrJtbyNTgKwknfVS+llsXGygiDGwJWw==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.6.0.tgz", "integrity": "sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==", "license": "MIT", "dependencies": { "@shikijs/primitive": "4.5.0", "@shikijs/types": "4.5.0", "@shikijs/vscode-textmate": "^10.0.2", "@shikijs/primitive": "4.6.0", "@shikijs/types": "4.6.0", "@shikijs/vscode-textmate": "^10.1.0", "@types/hast": "^3.0.5", "hast-util-to-html": "^9.0.5" "hast-util-to-html": "^9.0.6" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/engine-javascript": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.5.0.tgz", "integrity": "sha512-Ed6UdEj84LyYkwnxM5CvSMWAD+id9ExTYri0/+x41U9zrgNifPSS9lZm0JqBP0VfYI8yr8tY5nbNq9+p9R0kFA==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.6.0.tgz", "integrity": "sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==", "license": "MIT", "dependencies": { "@shikijs/types": "4.5.0", "@shikijs/vscode-textmate": "^10.0.2", "@shikijs/types": "4.6.0", "@shikijs/vscode-textmate": "^10.1.0", "oniguruma-to-es": "^4.3.6" }, "engines": {1 unmodified line } }, "node_modules/@shikijs/engine-oniguruma": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.5.0.tgz", "integrity": "sha512-dKVmbJecVdB9recl8a/CU4jdpNXyjJQrIcesIkpS70s5HS02ohpnCSpMUbotPnEUzbAcLQ+S4hwZYbkBBiTcJw==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.6.0.tgz", "integrity": "sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==", "license": "MIT", "dependencies": { "@shikijs/types": "4.5.0", "@shikijs/vscode-textmate": "^10.0.2" "@shikijs/types": "4.6.0", "@shikijs/vscode-textmate": "^10.1.0" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/langs": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.5.0.tgz", "integrity": "sha512-wwBTqwduXSz0X4v9Qa2EWeFaYJEw1clCncWjoRNQRbVDu3SPRTRWucnouYapKj3b8Q+sk/41Vbc4B5c8nuYzLA==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.6.0.tgz", "integrity": "sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==", "license": "MIT", "dependencies": { "@shikijs/types": "4.5.0" "@shikijs/types": "4.6.0" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/primitive": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.5.0.tgz", "integrity": "sha512-UM7ShlA8oz0OWxLLO8BmO9Ip6fVqdkt8yF0EH7nOCqHfrx1eEAzF0ZUVK7L+I8NEgeu1PEWSRlxaiPPeCb4iDg==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.6.0.tgz", "integrity": "sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==", "license": "MIT", "dependencies": { "@shikijs/types": "4.5.0", "@shikijs/vscode-textmate": "^10.0.2", "@shikijs/types": "4.6.0", "@shikijs/vscode-textmate": "^10.1.0", "@types/hast": "^3.0.5" }, "engines": {1 unmodified line } }, "node_modules/@shikijs/themes": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.5.0.tgz", "integrity": "sha512-zGb87H3UBbpuI4yoh5UguB1XbU+2BDU3kflM7UfZ+Cy2hWo9lBtqjSVK20gmLY6ukYl040hAypGXMgud9vul8Q==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.6.0.tgz", "integrity": "sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==", "license": "MIT", "dependencies": { "@shikijs/types": "4.5.0" "@shikijs/types": "4.6.0" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/types": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.5.0.tgz", "integrity": "sha512-drtPrtD8N0DENyD2cyt6Ajy+IWsiCLgMxODwLTpvH1UsN6a9jf90tNTPjqwHvA+0Lzu9e0txk8DjfqH1p9UJRw==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.6.0.tgz", "integrity": "sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==", "license": "MIT", "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@shikijs/vscode-textmate": "^10.1.0", "@types/hast": "^3.0.5" }, "engines": {1 unmodified line } }, "node_modules/@shikijs/vscode-textmate": { "version": "10.0.2", "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", "version": "10.1.0", "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz", "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==", "license": "MIT" }, "node_modules/@sindresorhus/is": {632 unmodified lines } }, "node_modules/@vitejs/plugin-react": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.2.tgz", "integrity": "sha512-fhJNGUdscQa4HkI0xFxwonWyhnVReCPDbXI7FH7jmzpnVCrFQI7PRrhWecO263610vOrs9tr2Y4xcf8uAdFxbw==", "version": "6.2.1", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.2.1.tgz", "integrity": "sha512-9KyWCij3r0+qLG3Q62vBmv0VyevmYibAtxaCIVK9o0k6CXgaajZRIe8tpfchQcdZArJ5b/7OrIz4W3b2uxVRDA==", "license": "MIT", "dependencies": { "@rolldown/pluginutils": "^1.0.1"2 unmodified lines "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0", "babel-plugin-react-compiler": "^1.0.0", "oxc-transform-react": "^0.152.0", "oxc-transform-react": ">=0.152.0 <0.157.0", "vite": "^8.0.0" }, "peerDependenciesMeta": {120 unmodified lines } }, "node_modules/ai": { "version": "7.0.159", "resolved": "https://registry.npmjs.org/ai/-/ai-7.0.159.tgz", "integrity": "sha512-4e/BwDoKJlMNYZaqERcTbGte+4TwroN9qKnCprog/XVfD9InzVPlhCviDhN452JIRrRsYg9BT0WsQ2C3Ds2mVQ==", "version": "7.0.160", "resolved": "https://registry.npmjs.org/ai/-/ai-7.0.160.tgz", "integrity": "sha512-h48o8i8NTDuHUZhiLDm9NHufEk/L3dkrJ8E9liXMcd4K4hAdI8bfamtbRJylyQeKQ599mnWNplTvyH/SbtpolQ==", "license": "Apache-2.0", "dependencies": { "@ai-sdk/gateway": "4.0.132", "@ai-sdk/gateway": "4.0.133", "@ai-sdk/provider": "4.0.35", "@ai-sdk/provider-utils": "5.0.72" },934 unmodified lines } }, "node_modules/globals": { "version": "17.13.0", "resolved": "https://registry.npmjs.org/globals/-/globals-17.13.0.tgz", "integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==", "version": "17.14.0", "resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz", "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==", "dev": true, "license": "MIT", "engines": {83 unmodified lines } }, "node_modules/hast-util-to-html": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==", "version": "9.0.6", "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz", "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==", "license": "MIT", "dependencies": { "@types/hast": "^3.0.0",3142 unmodified lines } }, "node_modules/shiki": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.5.0.tgz", "integrity": "sha512-OcRW72ngQvc+MSVWBRIovC/BTW589iUE/Vxav7VeM4RcY9MUjqB+IR6ILG1k9nuW6LiG/nct9uma4/MBtnZbmQ==", "version": "4.6.0", "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.6.0.tgz", "integrity": "sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==", "license": "MIT", "dependencies": { "@shikijs/core": "4.5.0", "@shikijs/engine-javascript": "4.5.0", "@shikijs/engine-oniguruma": "4.5.0", "@shikijs/langs": "4.5.0", "@shikijs/themes": "4.5.0", "@shikijs/types": "4.5.0", "@shikijs/vscode-textmate": "^10.0.2", "@shikijs/core": "4.6.0", "@shikijs/engine-javascript": "4.6.0", "@shikijs/engine-oniguruma": "4.6.0", "@shikijs/langs": "4.6.0", "@shikijs/themes": "4.6.0", "@shikijs/types": "4.6.0", "@shikijs/vscode-textmate": "^10.1.0", "@types/hast": "^3.0.5" }, "engines": {289 unmodified lines "version": "7.0.25", "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.25.tgz", "integrity": "sha512-keinCnPbwXEUG3ilrWQZU+CqcTTzHq9m2HhoUP2l7Xmi8l1LuijAXLpAJ5zRW+ifKTNscs4NdCkfkDCBYm352w==", "dev": true, "license": "MIT", "dependencies": { "tldts-core": "^7.0.25"6 unmodified lines "version": "7.0.25", "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.25.tgz", "integrity": "sha512-ZjCZK0rppSBu7rjHYDYsEaMOIbbT+nWF57hKkv4IUmZWBNrBWBOjIElc0mKRgLM8bm7x/BBlof6t2gi/Oq/Asw==", "dev": true, "license": "MIT" }, "node_modules/tough-cookie": {87 unmodified lines8889909192939487 unmodified lines "shiki": "^4.0.0", "temp-dir": "^3.0.0", "throttleit": "^3.0.0", "tldts": "^7.0.25", "vite": "^8.0.0", "wouter": "^3.3.0", "yet-another-react-lightbox": "^3.21.6",.env.example+3
.github/workflows/publish-docker-image.yml+1-1
changelog.md+8
client/modules/textGeneration.ts+17-3
docs/configuration.md+8
docs/overview.md+8-7
docs/page-content.md+18-3
docs/reranking.md+43-2
package-lock.json+66-67
package.json+1