mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 14:01:31 +08:00
Improved indexing docs [skip ci]
This commit is contained in:
10
README.md
10
README.md
@@ -156,14 +156,8 @@ You can add an index to use approximate nearest neighbor search, which trades so
|
||||
Three keys to achieving good recall are:
|
||||
|
||||
1. Create the index *after* the table has some data
|
||||
2. Choose an appropriate number of lists (lower is better for recall, higher is better for speed)
|
||||
|
||||
A good place to start is:
|
||||
|
||||
- `rows / 1000` for up to 1M rows
|
||||
- `sqrt(rows)` for over 1M rows
|
||||
|
||||
3. Choose an appropriate [number of probes](#query-options) when querying
|
||||
2. Choose an appropriate number of lists (a good place to start is `rows / 1000` for up to 1M rows and `sqrt(rows)` for over 1M rows)
|
||||
3. When querying, specify an appropriate number of [probes](#query-options) (higher is better for recall, lower is better for speed)
|
||||
|
||||
Add an index for each distance function you want to use.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user