microsoft / microsoft/semantic-kernel-java

Java: Use functions/stored procedures for calculating similarity

未关闭
#60 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

java stale
主要语言
Java
星标
276
派生
56
平均合并
17 小时 45 分钟
30 天内合并 PR
4

描述

The implementation of the memory nearest match API computes cosine similarity on the client side.
Is it possible to compute cosine similarity on the database side through a database function or stored procedure?
If so, withEmbeddings could be pushed to the database side (i.e., should the embeddings column be selected?)

  • Could sorting and limiting be done on the database side, too?
  • Is the extra overhead on the database a good tradeoff for less overhead in data on the wire?

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 memory nearest match API 及其 withEmbeddings 行为入手。调查当前如何处理 cosine similarity、排序和限制,然后评估是否可以通过数据库函数或存储过程将这部分工作移到数据库中。该 issue 没有定义具体的实现或完成标准。

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

评估

技术栈
java
领域
databases
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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