
 Usage: semkit read [IN] cluster-meaning [OPTIONS]

 Clusters of phrases by meaning: phrases of close vectors share a cluster; every phrase gets one.

 threshold: the similarity from 0 to 1 a phrase needs to the phrase that starts a cluster to join
 it.

 The phrase with the most neighbours (phrases at the threshold or above) starts the first cluster
 and takes its neighbours; of the phrases left, the one with the most neighbours starts the next,
 and so on; a tie goes to the first row. A phrase without neighbours is a cluster of one. Equal
 phrases are one phrase. The clusters are numbered in the order of their first rows. The columns:
 cluster, cluster_name and similarity (of the phrase to the name of its cluster, 4 places); an
 empty cell gets none. The table tells the index it searched in `attrs["index"]`.

 Example: semkit read --text "купить диван" --text "кошачий корм" --text "купить диван"
 cluster-meaning write -
 -> купить диван, 1, купить диван, 1.0; кошачий корм, 2, кошачий корм, 1.0; купить диван, 1, купить
 диван, 1.0

 model: the encoder, pulled once with `semkit models pull NAME`: e5-small, bge-m3, potion, or
 hf:<id> of a model of the Hugging Face hub. Without --threshold the step takes the cluster
 threshold of the model (the threshold of the model when it has none of its own); a hub model has
 none.
 freq: the column of the frequencies of the phrases in the current table; the cluster is named
 after its most frequent phrase. Without it, after the phrase nearest the centre of the cluster
 (the mean of its vectors).

 The step adds the columns cluster, cluster_name and similarity right after the working column; the
 rows stay. Its summary names the index it searched: exact, or hnsw above about 300 000 phrases.

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --threshold        <float>  the similarity from 0 to 1 a phrase needs to the phrase that starts  │
│                             a cluster to join it.                                                │
│ --freq             <str>    the column of the frequencies of the phrases in the current table;   │
│                             the cluster is named after its most frequent phrase. Without it,     │
│                             after the phrase nearest the centre of the cluster (the mean of its  │
│                             vectors).                                                            │
│ --model            <str>    the encoder, pulled once with `semkit models pull NAME`: e5-small,   │
│                             bge-m3, potion, or hf:<id> of a model of the Hugging Face hub.       │
│                             Without --threshold the step takes the cluster threshold of the      │
│                             model (the threshold of the model when it has none of its own); a    │
│                             hub model has none.                                                  │
│                             [default: e5-small]                                                  │
│ --help                      Show this message and exit.                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

