search/find ranking: generic entities outrank project-specific memories (golden-query baseline)

未关闭
#7,331 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
ai, search

调研方向

Start by tracing the POST /api/v1/search/find ranking path and checking whether configuration already exposes a relevance or category-normalization option; the issue does not name implementation files or tests. Use the reported queries, open-bot deployment and plugin page server, as baseline cases, and compare top results against the open-bot golden-query harness at scripts/ov-eval.ts and scripts/ov-eval.golden.json. Done means project-specific memories rank ahead of unrelated generic entities while sorted and stable result checks still pass.

由索引模型根据 Issue 内容生成。

描述

Summary

Semantic search/find ranking: generic provider entities outrank project-specific memories for project queries. Reporting with a repeatable golden-query baseline from a production open-bot instance (per-user OpenViking sidecar).

Baseline (2026-11-10, POST /api/v1/search/find, limit 5)

Query: open-bot deployment

  1. viking://user/agent/memories/entities/api/openai.md — 0.895 (generic API-provider entity)
  2. .../entities/promotion/openbot_promotion.md — 0.883
  3. viking://user/agent/memories/entities/modele_ia/clef.md — 0.865 (unrelated model entity)
  4. .../entities/promotion/openbot_promo_video.md — 0.862

Query: plugin page server

  1. .../events/2026/11/04/Chargement des plugins activés.md — 0.829
  2. .../events/2026/10/16/Migration et tests du plugin api-connectors.md — 0.828

Hard properties look good: scores are sorted descending and results are stable across repeated identical queries. The gap is relevance ordering: high-centrality generic entities (OpenAI, an unrelated model) beat memories that literally concern the queried project.

Harness

A repeatable golden-query eval lives in open-bot as scripts/ov-eval.ts + scripts/ov-eval.golden.json (records top-5 URIs/scores, latency, sorted/stable checks per query). Happy to extend the golden set or re-run against any candidate fix and share before/after.

Ask

Guidance or ranking work so project/topic-specific memories outrank generic entity pages for specific queries (e.g. lexical/entity-name match boost, or per-category score normalization). If a configuration knob already exists for this, pointing at it closes this just as well.

Related downstream reports (open-bot): shpaw415/open-bot#20, #21, #32, #71, #83.

主要语言
Python
星标
41.8k
派生
3.4k
平均合并
19 小时 29 分钟
30 天内合并 PR
500

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

volcengine/OpenViking 的其他 Issue

查看 volcengine/OpenViking 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。