You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn newly introduced methods on ParameterAccessor into default ones allowing modules to pick up changes at their own pace.
Add issue references and missing documentation.
Align Search- and GeoResults toString method with Page.
Original Pull Request: #3285
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/repositories/vector-search.adoc
+6-6
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,11 @@ Score values are not part of a domain model and therefore represented best as ou
80
80
Generally, a Score is computed by a `ScoringFunction`.
81
81
The actual scoring function used to calculate this score can depends on the underlying database and can be obtained from a search index or input parameters.
82
82
83
-
Spring Data supports declares constants for commonly used functions such as:
83
+
Spring Data support declares constants for commonly used functions such as:
84
84
85
-
Euclidean distance:: Calculates the straight-line distance in n-dimensional space involving the square root of the sum of squared differences.
86
-
Cosine similarity:: Measures the angle between two vectors by calculating the Dot product first and then normalizing its result by dividing by the product of their lengths.
87
-
Dot product:: Computes the sum of element-wise multiplications.
85
+
Euclidean Distance:: Calculates the straight-line distance in n-dimensional space involving the square root of the sum of squared differences.
86
+
Cosine Similarity:: Measures the angle between two vectors by calculating the Dot product first and then normalizing its result by dividing by the product of their lengths.
87
+
Dot Product:: Computes the sum of element-wise multiplications.
88
88
89
89
The choice of similarity function can impact both the performance and semantics of the search and is often determined by the underlying database or index being used.
90
90
Spring Data adopts to the database's native scoring function capabilities and whether the score can be used to limit results.
@@ -107,7 +107,7 @@ Generally, you have the choice of declaring a search method using two approaches
107
107
* Query Derivation
108
108
* Declaring a String-based Query
109
109
110
-
Generally, Vector Search methods must declare a `Vector` parameter to define the query vector.
110
+
Vector Search methods must declare a `Vector` parameter to define the query vector.
111
111
112
112
[[vector-search.method.derivation]]
113
113
=== Derived Search Methods
@@ -142,7 +142,7 @@ endif::[]
142
142
143
143
With more control over the actual query, Spring Data can make fewer assumptions about the query and its parameters.
144
144
For example, `Similarity` normalization uses the native score function within the query to normalize the given similarity into a score predicate value and vice versa.
145
-
If an annotated query doesn't define e.g. the score, then the score value in the returned `SearchResult<T>` will be zero.
145
+
If an annotated query does not define e.g. the score, then the score value in the returned `SearchResult<T>` will be zero.
0 commit comments