unsloth/studio/backend/routes
Daniel Han b085b37b69 Studio RAG trim: remove cross-encoder reranker
The cross-encoder reranker is off by default (enable_rerank=False everywhere)
and adds a second model download plus a candidate-widening pass on every search.
Removing it keeps the core retrieval (parse, chunk, embed, BM25 + dense, RRF,
search_knowledge_base tool) intact while dropping ~375 lines.

- delete core/rag/reranker.py and its test
- drop enable_rerank / reranker_model from the search tool, tools dispatch,
  and the /rag/search route (candidate_k is now just top_k)
- remove the /rag/reranker/precache endpoint and reranker config knobs
- update tool-handler test to the trimmed rag_scope shape

42 RAG tests pass.
2026-05-31 14:14:52 +00:00
..
data_recipe Recipe Studio local model selector (#5769) 2026-05-26 02:37:24 -07:00
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py Merge remote-tracking branch 'origin/main' into feature/rag 2026-05-28 00:38:58 +03:00
auth.py studio: proxy-aware login rate-limit; allow google favicons in CSP (#5489) 2026-05-18 00:02:15 -07:00
chat_history.py Studio: tighten RAG code comments 2026-05-31 08:31:08 +00:00
datasets.py studio: show HF model download progress in training start overlay (#4894) 2026-04-14 08:54:01 -07:00
export.py studio: security and hardening pass (auth rate-limit, sandbox, path containment, schema validation, headers) (#5375) 2026-05-13 06:12:18 -07:00
inference.py Studio: tighten RAG code comments 2026-05-31 08:31:08 +00:00
mcp_servers.py Studio: add remote MCP server support (#5750) 2026-05-27 07:01:11 -07:00
models.py Fix /recommended-folders 500 on unreadable model directories (Python 3.12+) (#5523) 2026-05-18 00:16:14 +04:00
providers.py Studio: add Gemini provider with web_search, code_execution, prompt caching, and Nano Banana image generation (#5720) 2026-05-27 06:01:24 -07:00
rag.py Studio RAG trim: remove cross-encoder reranker 2026-05-31 14:14:52 +00:00
training.py Studio: expose image size setting in training UI (#5743) 2026-05-27 05:01:24 -07:00
training_history.py Studio: Dark theme refactor, right sidebar redesign, and chat UI polish (#5150) 2026-05-07 14:33:31 +04:00