Skip to content

Commit 0cacc50

Browse files
authored
Apply suggestions from code review
Conforming to style guide for easier reading.
1 parent 356e2e0 commit 0cacc50

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/content/docs/vectorize/best-practices/create-indexes.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ Distance metrics are functions that determine how close vectors are from each ot
105105

106106
Determining the similarity between vectors can be subjective based on how the machine-learning model that represents features in the resulting vector embeddings. For example, a score of `0.8511` when using a `cosine` metric means that two vectors are close in distance, but whether data they represent is _similar_ is a function of how well the model is able to represent the original content.
107107

108-
When querying vectors, you can specify Vectorize to either use high-precision scoring, increasing the precision of the query matches scores as well as the accuracy of the query results, or use approximate scoring for faster response times. Using approximate scoring, returned scores will be an approximation of the real distance/similarity between your query and the returned vectors. See [Control over scoring precision and query accuracy](/vectorize/best-practices/query-vectors/#control-over-scoring-precision-and-query-accuracy)
108+
When querying vectors, you can specify Vectorize to use either:
109+
110+
- High-precision scoring, which increases the precision of the query matches scores as well as the accuracy of the query results.
111+
- Approximate scoring for faster response times. Using approximate scoring, returned scores will be an approximation of the real distance/similarity between your query and the returned vectors. Refer to [Control over scoring precision and query accuracy](/vectorize/best-practices/query-vectors/#control-over-scoring-precision-and-query-accuracy).
109112

110113
Distance metrics cannot be changed after index creation, and that each metric has a different scoring function.

src/content/docs/vectorize/best-practices/query-vectors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Refer to [Vectorize API](/vectorize/reference/client-api/) for additional exampl
7373

7474
## Control over scoring precision and query accuracy
7575

76-
When querying vectors, you can specify to either use high-precision scoring, increasing the precision of the query matches scores as well as the accuracy of the query results, or use approximate scoring for faster response times.
76+
When querying vectors, you can specify to either use high-precision scoring, thereby increasing the precision of the query matches scores as well as the accuracy of the query results, or use approximate scoring for faster response times.
7777
Using approximate scoring, returned scores will be an approximation of the real distance/similarity between your query and the returned vectors.
7878

7979
High-precision scoring is enabled by setting `returnValues: true` on your query; this tells Vectorize to fetch and use the original vector values for your matches, which enables the computation of exact scores of matches, increasing the accuracy of the results.

0 commit comments

Comments
 (0)