💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Add sparse normalization info to docs
davidmezzetti2c937db56bc1
diff --git a/docs/embeddings/configuration/scoring.md b/docs/embeddings/configuration/scoring.mdindex e0a8d43d..03dbae7a 100644--- a/docs/embeddings/configuration/scoring.md+++ b/docs/embeddings/configuration/scoring.md@@ -31,7 +31,7 @@ path: sparse vector model pathvectormethod: vector embeddings methodvectornormalize: enable vector embeddings normalization (boolean)gpu: boolean|int|string|device-normalize: enable score normalization (boolean | float)+normalize: enable score normalization (boolean|float|string|dict)batch: Sets the transform batch sizeencodebatch: Sets the encode batch sizevectors: additional model init args@@ -43,7 +43,12 @@ Sparse vector scoring options. The sparse scoring instance combines a sparse vecVector normalization normalizes all vectors to have a magnitude of 1. By extension, all generated scores will be 0 to 1.-Score normalization scales output scores by a scale factor. When `normalize` is set to `True` it uses a default scale factor. If `normalize` is an integer, then that is used as the scale factor. This scales the scores from 0 to 1.+Score normalization scales the output between 0 and 1. This setting supports:++- `True` for default scale normalization+- `float` normalize using this as the scale factor+- `"bayes"` for Bayesian normalization using dynamic candidate score statistics+- `{method: "bayes", alpha: 1.0, beta: null}` for Bayesian normalization with optional custom parameters#### ivfsparse```yaml@@ -83,9 +88,8 @@ normalize: boolean|str|dictEnables normalized scoring (ranging from 0 to 1). This setting supports:-- `true` for standard score normalization-- `"bayes"` for Bayesian normalization using dynamic candidate score statistics-- `"bb25"` alias for Bayesian BM25 (BB25) normalization+- `True` for standard score normalization+- `"bayes"` | `"bb25"` for Bayesian normalization using dynamic candidate score statistics- `{method: "bayes", alpha: 1.0, beta: null}` for Bayesian normalization with optional custom parametersWhen standard normalization is enabled, statistics from the index are used to calculate normalized scores.