radius is documented and validated but has no effect on any search lane

Cerrado
#394 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@knqiufan ya está trabajando en esto.

Desde el 16/9/2026.

  • #451 de @knqiufan — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend, search

Línea de trabajo

Start with memory/search/dto.py:84-88 and the radius handling in manager.py:120, :420, :477, :551, and :937-941; then compare the ranking behavior in everalgo/rank/hybrid.py:86-91 and fusion.py:41. Before implementing anything, resolve which radius semantics to use and whether to remove the inert RankInput.radius arguments. PR #451 is open, so check its relationship to this issue first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

SearchRequest.radius is declared, range-validated to [0.0, 1.0], and documented at memory/search/dto.py:84-88 as gating "raw cosine at recall time". It has no effect anywhere.

  • HYBRID: manager.py passes radius=_effective_radius(req) into RankInput at three call sites (~:420, :477, :551). grep -rn radius .venv/.../everalgo/ returns exactly two hits, both in types/rank.py — the field declaration and its docstring. everalgo never reads it.
  • AGENTIC: never passed at all.

PR #393 briefly wired it into the agentic path as ahybrid_retrieve(min_score=radius) and had to revert: min_score is applied after RRF fusion (everalgo/rank/hybrid.py:86-91), where rrf replaces each score with Σ 1/(k+rank) (max ≈ 0.0328, fusion.py:41). Since top_k defaults to -1 and _effective_radius then returns _DEFAULT_UNLIMITED_RADIUS = 0.5 (manager.py:120, :937-941), every candidate was filtered out — default agentic agent search returned []. Measured: {None: 2 hits, 0.5: 0 hits, 0.03: 2 hits}.

Needs a decision before any implementation: what should radius mean? Candidates — (a) a pre-fusion cosine floor applied inside the dense recall route, which is what the docstring describes; (b) a post-fusion floor on the calibrated LR score, which is what min_score already does; (c) remove it and keep min_score. Whichever is chosen, apply it consistently across lanes and delete the three inert RankInput.radius args.

Found while verifying #393.

Lenguaje dominante
Python
Estrellas
13.3k
Forks
926
Merge medio
23 h 31 min
PR fusionados (30 d)
26

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de EverMind-AI/EverOS

Todos los issues de EverMind-AI/EverOS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.