Spaces:
Running
Running
Sync from felladrin/MiniSearch@1dcb31a
Browse filesFiles changed (4)
- .env.example+15-1
- .source-commit+1-1
- agents.md+1-1
- changelog.md+3
40 unmodified lines414243444546475 unmodified lines535455565740 unmodified lines# Whether a text search that failed on SearXNG is retried against the second search providers (search.parallel.ai and You.com, tried one after the other in random order until one returns results). Only "true" or "1" turn it on.SEARCH_FALLBACK_ENABLED="false"# Comma-separated list of the second search providers to try: "parallel", "youcom", "keenable", or any mix. Empty means all three: Parallel, You.com and Keenable. With the fallback enabled, an unknown name stops the server at start.SEARCH_FALLBACK_PROVIDERS=""# The API key for Parallel (search.parallel.ai). Optional; without it the keyless tier is used, which Parallel describes as for exploration and light use.5 unmodified lines# The API key for Keenable (api.keenable.ai), sent as X-API-Key. Optional; without it Keenable uses the keyless "mcp-public" endpoint, like the other keyless tiers.SEARCH_FALLBACK_KEENABLE_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"40 unmodified lines414243444546475 unmodified lines5354555657585960616263646566676869707140 unmodified lines# Whether a text search that failed on SearXNG is retried against the second search providers (search.parallel.ai and You.com, tried one after the other in random order until one returns results). Only "true" or "1" turn it on.SEARCH_FALLBACK_ENABLED="false"# Comma-separated list of the second search providers to try: "parallel", "youcom", "keenable", "custom", or any mix. Empty means Parallel, You.com and Keenable, plus "custom" when SEARCH_FALLBACK_CUSTOM_URL is set. With the fallback enabled, an unknown name stops the server at start.SEARCH_FALLBACK_PROVIDERS=""# The API key for Parallel (search.parallel.ai). Optional; without it the keyless tier is used, which Parallel describes as for exploration and light use.5 unmodified lines# The API key for Keenable (api.keenable.ai), sent as X-API-Key. Optional; without it Keenable uses the keyless "mcp-public" endpoint, like the other keyless tiers.SEARCH_FALLBACK_KEENABLE_API_KEY=""# The "custom" provider: any search API that answers with JSON holding a list of results. See the Custom Provider section of docs/configuration.md.# The request URL, where {query} becomes the URL-encoded query and {limit} the number of results asked for.SEARCH_FALLBACK_CUSTOM_URL=""# Optional JSON body, which turns the request into a POST. Put {query} inside a JSON string, as in {"q":"{query}"}.SEARCH_FALLBACK_CUSTOM_BODY=""# Optional key, sent as a Bearer token, or under the header named in SEARCH_FALLBACK_CUSTOM_KEY_HEADER.SEARCH_FALLBACK_CUSTOM_API_KEY=""SEARCH_FALLBACK_CUSTOM_KEY_HEADER=""# Dotted paths to the list of results in the reply, and to the title, URL and snippet inside one result.SEARCH_FALLBACK_CUSTOM_RESULTS_PATH=""SEARCH_FALLBACK_CUSTOM_TITLE_FIELD=""SEARCH_FALLBACK_CUSTOM_URL_FIELD=""SEARCH_FALLBACK_CUSTOM_SNIPPET_FIELD=""# 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"
16e0e42711dcb31a
171 unmodified lines172173174175176177178171 unmodified lines- `server/crossOriginServerHook.ts` - COOP/COEP headers for SharedArrayBuffer- `server/cacheServerHook.ts` - Cache-Control headers (preview server only)- `server/webSearchService.ts` - SearXNG integration with circuit breaker and retry logic- `server/fallbackSearchService.ts` - Fallback text-search cascade over Parallel, You.com and opt-in Keenable for when SearXNG fails and `SEARCH_FALLBACK_ENABLED` is on, with a per-provider pause after a 429- `server/pageContentService.ts` - Reads result pages and extracts query-relevant passages- `server/pageReadHostBreaker.ts` - Per-host circuit breaker for page reads: skips a host that refused the last three reads, then probes it once- `server/utils/publicUrl.ts` - Blocks private and reserved addresses before a server-side fetch171 unmodified lines172173174175176177178171 unmodified lines- `server/crossOriginServerHook.ts` - COOP/COEP headers for SharedArrayBuffer- `server/cacheServerHook.ts` - Cache-Control headers (preview server only)- `server/webSearchService.ts` - SearXNG integration with circuit breaker and retry logic- `server/fallbackSearchService.ts` - Fallback text-search cascade over Parallel, You.com, Keenable and the operator-configured `custom` HTTP provider for when SearXNG fails and `SEARCH_FALLBACK_ENABLED` is on, with a per-provider pause after a 429- `server/pageContentService.ts` - Reads result pages and extracts query-relevant passages- `server/pageReadHostBreaker.ts` - Per-host circuit breaker for page reads: skips a host that refused the last three reads, then probes it once- `server/utils/publicUrl.ts` - Blocks private and reserved addresses before a server-side fetch
3 unmodified lines4567893 unmodified lines## 2026-12-03- Plain-text pages that ground an AI answer, such as RFCs, raw READMEs and `.txt` files, are now read as text. They used to go through the HTML converter, which dropped everything written in angle brackets (`<stdio.h>`, `<field-name>`) as if it were a tag and ran all paragraphs together, so the passages picked for the answer were cut at arbitrary points.- Dictating with the browser's recognizer and then saying nothing no longer shows a red "Dictation stopped: Dictation failed: no-speech" notification. The Dictate button now just returns to idle, the same as when the recognizer stops on its own after a pause.- A follow-up search no longer carries a stray day number. When the question had a relative date ("last month") and the model's query held a full date such as "2025-10-05", only the year and month were dropped, so "-05" was searched, which search engines read as an exclusion. Now the whole date is dropped.3 unmodified lines4567891011123 unmodified lines## 2026-12-03- Fewer pages behind a bot wall drop out of AI answers. When a result's page turns MiniSearch away (a refusal status such as 403 or 429, a challenge page from Anubis, Akamai or AWS WAF, or a JavaScript shell with no readable text), the reader now asks for the page again as Slack's or Facebook/X's link-preview agent, and if that does not get through it runs the page's own scripts offline in a sandboxed child process and follows the navigation they trigger with the cookies they compute. The retries fit inside the same 6-second page deadline, and recoveries are counted on `/status` under `pageReads.recoveredAfterBlock`.- The search fallback can now use any search API you choose, through a new `custom` provider set up only with environment variables: the request URL (or a JSON body for a `POST`), the key and the header it goes in, and the paths to the results and their title, URL and snippet in the JSON reply. It joins the cascade when `SEARCH_FALLBACK_CUSTOM_URL` is set, with the same 429 pause and `/status` counters as the built-in providers, and a setup it cannot work with stops the server at start. See the Custom Provider section of `docs/configuration.md`.- Plain-text pages that ground an AI answer, such as RFCs, raw READMEs and `.txt` files, are now read as text. They used to go through the HTML converter, which dropped everything written in angle brackets (`<stdio.h>`, `<field-name>`) as if it were a tag and ran all paragraphs together, so the passages picked for the answer were cut at arbitrary points.- Dictating with the browser's recognizer and then saying nothing no longer shows a red "Dictation stopped: Dictation failed: no-speech" notification. The Dictate button now just returns to idle, the same as when the recognizer stops on its own after a pause.- A follow-up search no longer carries a stray day number. When the question had a relative date ("last month") and the model's query held a full date such as "2025-10-05", only the year and month were dropped, so "-05" was searched, which search engines read as an exclusion. Now the whole date is dropped.
.env.example+15-1
.source-commit+1-1
agents.md+1-1
changelog.md+3