diff options
| author | Brock Vojkovic <git@vojk.au> | 2026-03-06 22:40:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 15:40:44 +0100 |
| commit | 68ff08f2244c6fa9e95255eb6733c157be2f46a7 (patch) | |
| tree | 59cbe50ff98dc9cb60f83f87c48c03cbcc2d9e4b /requirements.txt | |
| parent | c7ba2158f9062f8f5ee3b9f72b5da61d3370ad23 (diff) | |
[mod] drop fasttext-predict (#5795)
Removes the `fasttext-predict` dependency and the language detection code.
If a user now selects `auto` for the search language, the detected language now
falls back directly to the `Accept-Language` header sent by the browser (which was already the fallback when fasttext returned no result).
- fasttext's [language detection is unreliable](https://github.com/searxng/searxng/issues/4195) for some languages, especially short search queries, and in particular for queries containing proper names which is a common case.
- `fasttext-predict` consumes [significant memory](https://github.com/searxng/searxng/pull/1969#issuecomment-1345366676) without offering users much real value.
- the upstream fasttext project was archived by Meta in 2024
- users already have two better alternatives: the `Accept-Language` header and the search-syntax language prefix (e.g. `:fr` or `:de`).
Related: https://github.com/searxng/searxng/issues/4195
Closes: https://github.com/searxng/searxng/issues/5790
Diffstat (limited to 'requirements.txt')
| -rw-r--r-- | requirements.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt index c450ed85d..8e841f941 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,6 @@ httpx-socks[asyncio]==0.10.0 sniffio==1.3.1 valkey==6.1.1 markdown-it-py==3.0.0 -fasttext-predict==0.9.2.4 tomli==2.4.0; python_version < '3.11' msgspec==0.20.0 typer==0.24.1 |
