La bibliothèque se documente elle-même · Palier neuronal
stzSemanticIndex
13 méthodes propres · 1 formes avec extensions, rangées sous leur méthode
la source: base/neural/stzSemanticIndex.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Palier neuronal
Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens
Aucune méthode de cette classe n'est exécutée sur cette page : la classe touche aux fichiers, au réseau, aux processus, à l'horloge, au hasard ou au son, et un exemple exécuté ici ne serait que l'exemple de ses effets. Chaque méthode porte l'explication que la bibliothèque donne d'elle-même.
Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
AddText
Embeds at ADD time (the model must be loaded), so a bad text fails loudly here and not in the middle of a search.aucune extension
AddEmbedded
Index a text with an embedding the CALLER already has -- another model, a cache, a wire -- so the index never insists on embedding it again. The vector must be L2-normalised (the score formula assumes it) and of the index's dimension.aucune extension
AddTexts
feeding the indexaucune extension
Count
feeding the indexaucune extension
Texts
feeding the indexaucune extension
EmbeddingDim
feeding the indexaucune extension
Vectors
The stored embeddings, 1-based rows -- so a caller (or a guard) can recompute a cosine independently of the search path.aucune extension
UsesGpu
Is the corpus resident on the GPU right now? Silent seams still owe an honest answer to whoever asks.aucune extension
SearchByVectorXT
The same search from a query embedding the caller already holds (the companion of AddEmbedded). ONE search path serves both doors: the route -- CPU resident dataset or GPU resident corpus -- is decided here and nowhere else.aucune extension
Search
Same as SearchXT: Top-n semantically closest texts: [ [cText, nCosine, nPosition], ... ] best first. nCosine is in [-1, 1]; 1 means "the same meaning" and a query that IS one of the indexed texts scores ~1 against itself.QCSXTZZZIBWU
Closest
The single best text (or "" on an empty index).aucune extension
Close
Haro has no destructors (the residency lesson): free the resident dataset explicitly when done with the index.aucune extension

