"vector_top_k" with duplicated vectors

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

维护者通常 11 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, sqlite
领域
databases, search

调研方向

使用重复的 embeddings 重现该行为,比较不使用索引的 vector_top_k 与 libsql_vector_idx。检查这些入口点,以确定如何处理重复向量;当 embeddings 完全相同时,无需添加噪声即可返回每一行匹配的记录,即表示完成。

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

描述

Hey everyone!

I have a little database that I use for semantic search.

I only embed a subset of the text which means that some embedding can be duplicated.

Without the index, I can access them without any issue, but with libsql_vector_idx, only one of the row is returned. I guess that only one rowid can be stored per vector.

Any idea how I can solve that (except adding a little bit of noise?)

主要语言
C
星标
17.3k
派生
562
平均合并
10 天 15 小时
30 天内合并 PR
1

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

tursodatabase/libsql 的其他 Issue

查看 tursodatabase/libsql 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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