mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
docs: add semantic sampling guide (#5085)
Add a standalone Semantic Sampling guide immediately below Statistical Sampling in Data Curation, with links from the curation overview and SQL sampling reference. Explain per-partition row quotas, repeatability, filtering order, and index requirements. ```sql SELECT id, caption FROM documents TABLESAMPLE IVF (embedding, 100 ROWS) REPEATABLE (42); ```
This commit is contained in:
@@ -22,6 +22,9 @@ SELECT * FROM documents TABLESAMPLE (500 ROWS) -- 500 rows
|
||||
|
||||
A bare number is a **percentage**. Add `ROWS` for a count instead.
|
||||
|
||||
To sample rows independently from every partition of an IVF vector index,
|
||||
use [`TABLESAMPLE IVF`](/curation/semantic-sampling).
|
||||
|
||||
## Rows or fragments {#methods}
|
||||
|
||||
The standard calls these two methods of one clause. They are different
|
||||
|
||||
Reference in New Issue
Block a user