Java: Use functions/stored procedures for calculating similarity
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with the memory nearest match API and its withEmbeddings behavior. Investigate how cosine similarity, sorting, and limiting are currently handled, then assess whether database functions or stored procedures can move that work to the database. The issue does not define a concrete implementation or completion criterion.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Java
- Stars
- 276
- Forks
- 56
- Avg merge
- 17h 45m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/semantic-kernel-java
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/semantic-kernel-java#334 · 1 comment ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/semantic-kernel-java#331 · 7 comments ·
-
bug triage
microsoft/semantic-kernel-java#330 · 3 comments · 1 assignee ·
-
bug triage
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/semantic-kernel-java#328 · 1 comment ·
-
microsoft/semantic-kernel-java#323 · 1 reaction · 2 assignees ·
All issues in microsoft/semantic-kernel-java
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 Openbug frontend maui-pilot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100