Spaces:
Running on Zero
Running on Zero
Commit History
-
sync: from ael backend/space/ Running
25910d6 -
sync: from ael backend/space/
7af8059 -
sync: from ael backend/space/
8141a5d -
sync: from ael backend/space/
43f97a4 -
sync: from ael backend/space/
cc68a12 -
sync: from ael backend/space/
be92d5f -
sync: from ael backend/space/
d409fec -
sync: from ael backend/space/
dbcfcbe -
sync: from ael backend/space/
558fffa -
feat(search): relevance reranking with Laya, and restore files the last commit clobbered
Adds the reranker, and puts back what 4dba37a overwrote. 4dba37a was a mistake: it synced the whole of backend/space/ over the Space, and this repo's copy of that folder is a STALE FORK. It reverted app.py's _KEY_HEADERS alias (the x-respite-key / x-ael-key fix), its _is_protected fix, the raised request_timeout in searxng_settings.yml, and the explicit mojeek/marginalia/rightdao/mwmbl/presearch engine list. Restored here from 17b0658; this commit touches only the three files it meant to. The reranker itself: - rerank.py scores each (query, passage) pair with convaiinnovations/laya, a non-autoregressive System 1 decision model (421M English / 322M multilingual, Apache-2.0), using a `noul` question for the calibrated P(yes) that the passage contains what the query needs. - The race only ever asked "is this set big enough", so the winner was whoever answered first and a small index won on speed alone. "what is the capital of Peru" came back as NPR transcripts about mummy lice…184d40c