From 81e9e72fbc5969d8bc632ab1456bca1d16c6fcaf Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 22 Mar 2023 14:00:47 -0700 Subject: [PATCH] Updated guidance on lists [skip ci] --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 741c812..ee940f9 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,10 @@ Specify the number of inverted lists (100 by default) CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100); ``` -A lower value provides better recall at the cost of speed. A [good place to start](https://github.com/facebookresearch/faiss/issues/112) is `4 * sqrt(rows)`. +A lower value provides better recall at the cost of speed. A good place to start is: + +- `rows / 1000` for up to 1M rows +- `sqrt(rows)` for over 1M rows ### Query Options