Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions docs-website/reference/integrations-api/sentence_transformers.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -262,6 +263,12 @@ Creates a SentenceTransformersDocumentEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for small batches and inconsistent across batches. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings, compatible with query embeddings
quantized with the same ranges.

#### to_dict

Expand Down Expand Up @@ -621,7 +628,8 @@ __init__(
] = "float32",
encode_kwargs: dict[str, Any] | None = None,
backend: Literal["torch", "onnx", "openvino"] = "torch",
revision: str | None = None
revision: str | None = None,
quantization_ranges: list[list[float]] | None = None
) -> None
```

Expand Down Expand Up @@ -664,6 +672,11 @@ Create a SentenceTransformersTextEmbedder component.
for more information on acceleration and quantization options.
- **revision** (<code>str | None</code>) – The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
- **quantization_ranges** (<code>list\[list\[float\]\] | None</code>) – Calibration ranges to use when `precision` is "int8" or "uint8", with shape `(2, embedding_dim)`:
minimum values in the first row and maximum values in the second.
Scalar quantization calibrates the min/max range from the batch being encoded, which is degenerate
for a single text and produces meaningless embeddings. Pass ranges computed from a representative
sample of embeddings to get consistent quantized embeddings.

#### to_dict

Expand Down
Loading