[
https://issues.apache.org/jira/browse/CASSANDRA-18640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738721#comment-17738721
]
Andres de la Peña commented on CASSANDRA-18640:
-----------------------------------------------
[The proposed patch|https://github.com/apache/cassandra/pull/2459] is based on
a previous patch by [~jbellis].
The CQL functions internally use Lucene's {{{}VectorSimilarityFunction{}}}. So
this patch adds a new dependency on Lucene's latest version, 9.7.0. That's the
same version that
[CEP-7|https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-7%3A+Storage+Attached+Index]
will add. Lucene requires JDK 11, so both SAI and vector search will depend on
us dropping the support for JDK 8 (CASSANDRA-18255). In the meantime, I think
we can have a feature branch for CEP-30.
It seems there is an outage in CircleCI at the moment. I'll run CI when it's
back.
> Add vector similarity functions
> -------------------------------
>
> Key: CASSANDRA-18640
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18640
> Project: Cassandra
> Issue Type: New Feature
> Components: CQL/Semantics
> Reporter: Andres de la Peña
> Assignee: Andres de la Peña
> Priority: Normal
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Add the CQL vector similarity functions described by
> [CEP-30|https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-30%3A+Approximate+Nearest+Neighbor%28ANN%29+Vector+Search+via+Storage-Attached+Indexes]:
> * similarity_cosine
> * similarity_euclidean
> * similarity_dot_product
> The three functions take two vectors of floats of the same dimensions and
> return a float indicating the similarity score for the vectors.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]