Make the reranker opt-in

Open
#802 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
search

Research direction

The issue names no files or tests; first inspect the search entry point and the existing reranker loading path, then locate the tests for search depth and response ranking details. Verify the default path avoids model files and deep still reranks. Record referee:runtime before and after with summary.runtime.searchPeakRssBytes, and update the docs and changelog under "Breaking".

Written by the indexing model from the issue text.

Description

area:search maintainers roadmap

Problem

The reranker runs at the default depth, so every user pays for it.

Change

  • Run the reranker only when the caller asks for search_depth: "deep".
  • Do not download or load the model until then.
  • Say in the response which ranking path ran.

Done when

  • Default depth never touches the model files. A test asserts it.
  • deep still reranks.
  • referee:runtime before and after is posted here, with the search step's peak memory (summary.runtime.searchPeakRssBytes).
  • Docs and the changelog describe the change under "Breaking".

Out of scope

Changing the model.

Depends on: #801

Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.