Skip to content

Commit b58fb41

Browse files
authored
Merge pull request ClickHouse#80155 from rschu1ze/ann-docs
Fix docs formatting
2 parents 9ca7395 + 52559fb commit b58fb41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/engines/table-engines/mergetree-family/annindexes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ ORDER BY cosineDistance(book_vector, getEmbedding('Books on ancient Asian empire
290290
LIMIT 10
291291
```
292292

293-
Assuming that only a very small number of books cost less than $2, post-filtering may return zero rows because the top 10 matches returned by the vector index could all be priced above $2.
294-
By forcing pre-filtering (add `SETTINGS vector_search_filter_strategy = 'prefilter'` to the query), ClickHouse first finds all books with a price of less than $2 and then executes a brute-force vector search for the found books.
293+
Assuming that only a very small number of books cost less than 2 dollar, post-filtering may return zero rows because the top 10 matches returned by the vector index could all be priced above 2 dollar.
294+
By forcing pre-filtering (add `SETTINGS vector_search_filter_strategy = 'prefilter'` to the query), ClickHouse first finds all books with a price of less than 2 dollar and then executes a brute-force vector search for the found books.
295295

296296
As an alternative approach to resolve above issue, setting [vector_search_postfilter_multiplier](../../../operations/settings/settings#vector_search_postfilter_multiplier) (default: `1.0`) may be configured to a value > `1.0` (for example, `2.0`).
297297
The number of nearest neighbors fetched from the vector index is multiplied by the setting value and then the additional filter to be applied on those rows to return LIMIT-many rows.

0 commit comments

Comments
 (0)