fastembed-haystack 1.4.0__tar.gz → 1.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. fastembed_haystack-1.5.0/CHANGELOG.md +130 -0
  2. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/PKG-INFO +38 -10
  3. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/README.md +32 -5
  4. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/examples/ranker_example.py +1 -1
  5. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/pyproject.toml +30 -37
  6. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/embedding_backend/fastembed_backend.py +4 -4
  7. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/fastembed_document_embedder.py +2 -2
  8. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/fastembed_sparse_document_embedder.py +5 -5
  9. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/fastembed_sparse_text_embedder.py +4 -4
  10. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/fastembed_text_embedder.py +1 -1
  11. fastembed_haystack-1.5.0/src/haystack_integrations/components/embedders/py.typed +0 -0
  12. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/rankers/fastembed/ranker.py +3 -3
  13. fastembed_haystack-1.5.0/src/haystack_integrations/components/rankers/py.typed +0 -0
  14. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_sparse_document_embedder.py +18 -18
  15. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_sparse_text_embedder.py +16 -16
  16. fastembed_haystack-1.4.0/CHANGELOG.md +0 -72
  17. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/.gitignore +0 -0
  18. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/LICENSE.txt +0 -0
  19. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/examples/example.py +0 -0
  20. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/examples/sparse_example.py +0 -0
  21. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/pydoc/config.yml +0 -0
  22. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/__init__.py +1 -1
  23. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/embedders/fastembed/embedding_backend/__init__.py +0 -0
  24. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/src/haystack_integrations/components/rankers/fastembed/__init__.py +0 -0
  25. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/__init__.py +0 -0
  26. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_backend.py +0 -0
  27. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_document_embedder.py +0 -0
  28. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_ranker.py +0 -0
  29. {fastembed_haystack-1.4.0 → fastembed_haystack-1.5.0}/tests/test_fastembed_text_embedder.py +0 -0
@@ -0,0 +1,130 @@
1
+ # Changelog
2
+
3
+ ## [integrations/fastembed-v1.4.1] - 2024-11-19
4
+
5
+ ### 🌀 Miscellaneous
6
+
7
+ - Add new example with the ranker and fix the old ones (#1198)
8
+ - Fix: Fastembed - Change default Sparse model as the used one is deprecated due to a typo (#1201)
9
+
10
+ ## [integrations/fastembed-v1.4.0] - 2024-11-13
11
+
12
+ ### ⚙️ CI
13
+
14
+ - Adopt uv as installer (#1142)
15
+
16
+ ### 🌀 Miscellaneous
17
+
18
+ - Chore: fastembed - pin `onnxruntime<1.20.0` (#1164)
19
+ - Feat: Fastembed - add FastembedRanker (#1178)
20
+
21
+ ## [integrations/fastembed-v1.3.0] - 2024-10-07
22
+
23
+ ### 🚀 Features
24
+
25
+ - Introduce `model_kwargs` in Sparse Embedders (can be used for BM25 parameters) (#1126)
26
+
27
+ ### 🧪 Testing
28
+
29
+ - Do not retry tests in `hatch run test` command (#954)
30
+
31
+ ### ⚙️ CI
32
+
33
+ - Retry tests to reduce flakyness (#836)
34
+
35
+ ### 🧹 Chores
36
+
37
+ - Update ruff invocation to include check parameter (#853)
38
+ - Update ruff linting scripts and settings (#1105)
39
+
40
+ ### 🌀 Miscellaneous
41
+
42
+ - Ci: install `pytest-rerunfailures` where needed; add retry config to `test-cov` script (#845)
43
+ - Typo on Sparse embedders. The parameter should be "progress_bar" … (#814)
44
+ - Chore: fastembed - ruff update, don't ruff tests (#997)
45
+
46
+ ## [integrations/fastembed-v1.1.0] - 2024-05-15
47
+
48
+ ### 🌀 Miscellaneous
49
+
50
+ - Chore: change the pydoc renderer class (#718)
51
+ - Use the local_files_only option available as of fastembed==0.2.7. It … (#736)
52
+
53
+ ## [integrations/fastembed-v1.0.0] - 2024-05-06
54
+
55
+ ### 🌀 Miscellaneous
56
+
57
+ - Chore: add license classifiers (#680)
58
+ - `FastembedSparseTextEmbedder` - remove `batch_size` (#688)
59
+
60
+ ## [integrations/fastembed-v0.1.0] - 2024-04-10
61
+
62
+ ### 🚀 Features
63
+
64
+ - *(FastEmbed)* Support for SPLADE Sparse Embedder (#579)
65
+
66
+ ### 📚 Documentation
67
+
68
+ - Disable-class-def (#556)
69
+
70
+ ### 🌀 Miscellaneous
71
+
72
+ - Remove references to Python 3.7 (#601)
73
+
74
+ ## [integrations/fastembed-v0.0.6] - 2024-03-07
75
+
76
+ ### 📚 Documentation
77
+
78
+ - Review and normalize docstrings - `integrations.fastembed` (#519)
79
+ - Small consistency improvements (#536)
80
+
81
+ ### 🌀 Miscellaneous
82
+
83
+ - Docs: Fix `integrations.fastembed` API docs (#540)
84
+ - Improvements to FastEmbed integration (#558)
85
+
86
+ ## [integrations/fastembed-v0.0.5] - 2024-02-20
87
+
88
+ ### 🐛 Bug Fixes
89
+
90
+ - Fix order of API docs (#447)
91
+
92
+ ### 📚 Documentation
93
+
94
+ - Update category slug (#442)
95
+
96
+ ### 🌀 Miscellaneous
97
+
98
+ - Fastembed integration new parameters (#446)
99
+
100
+ ## [integrations/fastembed-v0.0.4] - 2024-02-16
101
+
102
+ ### 🌀 Miscellaneous
103
+
104
+ - Fastembed integration: add example (#401)
105
+ - Fastembed fix: add parallel (#403)
106
+
107
+ ## [integrations/fastembed-v0.0.3] - 2024-02-12
108
+
109
+ ### 🐛 Bug Fixes
110
+
111
+ - From numpy float to float (#391)
112
+
113
+ ### 📚 Documentation
114
+
115
+ - Update paths and titles (#397)
116
+
117
+ ## [integrations/fastembed-v0.0.2] - 2024-02-11
118
+
119
+ ### 🌀 Miscellaneous
120
+
121
+ - Updated labeler and readme (#389)
122
+ - Fastembed fix: added prefix and suffix (#390)
123
+
124
+ ## [integrations/fastembed-v0.0.1] - 2024-02-10
125
+
126
+ ### 🌀 Miscellaneous
127
+
128
+ - Add Fastembed Embeddings integration (#383)
129
+
130
+ <!-- generated by git-cliff -->
@@ -1,23 +1,24 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: fastembed-haystack
3
- Version: 1.4.0
3
+ Version: 1.5.0
4
4
  Summary: Haystack 2.x component to embed strings and Documents using fastembed embedding model
5
5
  Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations
6
6
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/fastembed/README.md
7
7
  Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
8
8
  Author-email: deepset GmbH <info@deepset.ai>
9
- License: Apache-2.0
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE.txt
10
11
  Classifier: Development Status :: 4 - Beta
11
12
  Classifier: License :: OSI Approved :: Apache Software License
12
13
  Classifier: Programming Language :: Python
13
- Classifier: Programming Language :: Python :: 3.8
14
14
  Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
18
19
  Classifier: Programming Language :: Python :: Implementation :: CPython
19
20
  Classifier: Programming Language :: Python :: Implementation :: PyPy
20
- Requires-Python: >=3.8
21
+ Requires-Python: >=3.9
21
22
  Requires-Dist: fastembed>=0.4.2
22
23
  Requires-Dist: haystack-ai>=2.0.1
23
24
  Description-Content-Type: text/markdown
@@ -32,6 +33,7 @@ Description-Content-Type: text/markdown
32
33
  **Table of Contents**
33
34
 
34
35
  - [Installation](#installation)
36
+ - [Usage](#Usage)
35
37
  - [License](#license)
36
38
 
37
39
  ## Installation
@@ -57,7 +59,7 @@ embedding = text_embedder.run(text)["embedding"]
57
59
 
58
60
  ```python
59
61
  from haystack_integrations.components.embedders.fastembed import FastembedDocumentEmbedder
60
- from haystack.dataclasses import Document
62
+ from haystack import Document
61
63
 
62
64
  embedder = FastembedDocumentEmbedder(
63
65
  model="BAAI/bge-small-en-v1.5",
@@ -74,24 +76,50 @@ from haystack_integrations.components.embedders.fastembed import FastembedSparse
74
76
 
75
77
  text = "fastembed is supported by and maintained by Qdrant."
76
78
  text_embedder = FastembedSparseTextEmbedder(
77
- model="prithvida/Splade_PP_en_v1"
79
+ model="prithivida/Splade_PP_en_v1"
78
80
  )
79
81
  text_embedder.warm_up()
80
- embedding = text_embedder.run(text)["embedding"]
82
+ embedding = text_embedder.run(text)["sparse_embedding"]
81
83
  ```
82
84
 
83
85
  ```python
84
86
  from haystack_integrations.components.embedders.fastembed import FastembedSparseDocumentEmbedder
85
- from haystack.dataclasses import Document
87
+ from haystack import Document
86
88
 
87
89
  embedder = FastembedSparseDocumentEmbedder(
88
- model="prithvida/Splade_PP_en_v1",
90
+ model="prithivida/Splade_PP_en_v1",
89
91
  )
90
92
  embedder.warm_up()
91
93
  doc = Document(content="fastembed is supported by and maintained by Qdrant.", meta={"long_answer": "no",})
92
94
  result = embedder.run(documents=[doc])
93
95
  ```
94
96
 
97
+ You can use `FastembedRanker` by importing as:
98
+
99
+ ```python
100
+ from haystack import Document
101
+
102
+ from haystack_integrations.components.rankers.fastembed import FastembedRanker
103
+
104
+ query = "Who is maintaining Qdrant?"
105
+ documents = [
106
+ Document(
107
+ content="This is built to be faster and lighter than other embedding libraries e.g. Transformers, Sentence-Transformers, etc."
108
+ ),
109
+ Document(content="fastembed is supported by and maintained by Qdrant."),
110
+ ]
111
+
112
+ ranker = FastembedRanker(model_name="Xenova/ms-marco-MiniLM-L-6-v2")
113
+ ranker.warm_up()
114
+ reranked_documents = ranker.run(query=query, documents=documents)["documents"]
115
+
116
+ print(reranked_documents[0])
117
+
118
+ # Document(id=...,
119
+ # content: 'fastembed is supported by and maintained by Qdrant.',
120
+ # score: 5.472434997558594..)
121
+ ```
122
+
95
123
  ## License
96
124
 
97
125
  `fastembed-haystack` is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
@@ -8,6 +8,7 @@
8
8
  **Table of Contents**
9
9
 
10
10
  - [Installation](#installation)
11
+ - [Usage](#Usage)
11
12
  - [License](#license)
12
13
 
13
14
  ## Installation
@@ -33,7 +34,7 @@ embedding = text_embedder.run(text)["embedding"]
33
34
 
34
35
  ```python
35
36
  from haystack_integrations.components.embedders.fastembed import FastembedDocumentEmbedder
36
- from haystack.dataclasses import Document
37
+ from haystack import Document
37
38
 
38
39
  embedder = FastembedDocumentEmbedder(
39
40
  model="BAAI/bge-small-en-v1.5",
@@ -50,24 +51,50 @@ from haystack_integrations.components.embedders.fastembed import FastembedSparse
50
51
 
51
52
  text = "fastembed is supported by and maintained by Qdrant."
52
53
  text_embedder = FastembedSparseTextEmbedder(
53
- model="prithvida/Splade_PP_en_v1"
54
+ model="prithivida/Splade_PP_en_v1"
54
55
  )
55
56
  text_embedder.warm_up()
56
- embedding = text_embedder.run(text)["embedding"]
57
+ embedding = text_embedder.run(text)["sparse_embedding"]
57
58
  ```
58
59
 
59
60
  ```python
60
61
  from haystack_integrations.components.embedders.fastembed import FastembedSparseDocumentEmbedder
61
- from haystack.dataclasses import Document
62
+ from haystack import Document
62
63
 
63
64
  embedder = FastembedSparseDocumentEmbedder(
64
- model="prithvida/Splade_PP_en_v1",
65
+ model="prithivida/Splade_PP_en_v1",
65
66
  )
66
67
  embedder.warm_up()
67
68
  doc = Document(content="fastembed is supported by and maintained by Qdrant.", meta={"long_answer": "no",})
68
69
  result = embedder.run(documents=[doc])
69
70
  ```
70
71
 
72
+ You can use `FastembedRanker` by importing as:
73
+
74
+ ```python
75
+ from haystack import Document
76
+
77
+ from haystack_integrations.components.rankers.fastembed import FastembedRanker
78
+
79
+ query = "Who is maintaining Qdrant?"
80
+ documents = [
81
+ Document(
82
+ content="This is built to be faster and lighter than other embedding libraries e.g. Transformers, Sentence-Transformers, etc."
83
+ ),
84
+ Document(content="fastembed is supported by and maintained by Qdrant."),
85
+ ]
86
+
87
+ ranker = FastembedRanker(model_name="Xenova/ms-marco-MiniLM-L-6-v2")
88
+ ranker.warm_up()
89
+ reranked_documents = ranker.run(query=query, documents=documents)["documents"]
90
+
91
+ print(reranked_documents[0])
92
+
93
+ # Document(id=...,
94
+ # content: 'fastembed is supported by and maintained by Qdrant.',
95
+ # score: 5.472434997558594..)
96
+ ```
97
+
71
98
  ## License
72
99
 
73
100
  `fastembed-haystack` is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
@@ -15,7 +15,7 @@ ranker.warm_up()
15
15
  reranked_documents = ranker.run(query=query, documents=documents)["documents"]
16
16
 
17
17
 
18
- print(reranked_documents["documents"][0])
18
+ print(reranked_documents[0])
19
19
 
20
20
  # Document(id=...,
21
21
  # content: 'fastembed is supported by and maintained by Qdrant.',
@@ -7,7 +7,7 @@ name = "fastembed-haystack"
7
7
  dynamic = ["version"]
8
8
  description = "Haystack 2.x component to embed strings and Documents using fastembed embedding model"
9
9
  readme = "README.md"
10
- requires-python = ">=3.8"
10
+ requires-python = ">=3.9"
11
11
  license = "Apache-2.0"
12
12
  keywords = []
13
13
  authors = [{ name = "deepset GmbH", email = "info@deepset.ai" }]
@@ -15,11 +15,11 @@ classifiers = [
15
15
  "License :: OSI Approved :: Apache Software License",
16
16
  "Development Status :: 4 - Beta",
17
17
  "Programming Language :: Python",
18
- "Programming Language :: Python :: 3.8",
19
18
  "Programming Language :: Python :: 3.9",
20
19
  "Programming Language :: Python :: 3.10",
21
20
  "Programming Language :: Python :: 3.11",
22
21
  "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
23
  "Programming Language :: Python :: Implementation :: CPython",
24
24
  "Programming Language :: Python :: Implementation :: PyPy",
25
25
  ]
@@ -43,34 +43,36 @@ git_describe_command = 'git describe --tags --match="integrations/fastembed-v[0-
43
43
 
44
44
  [tool.hatch.envs.default]
45
45
  installer = "uv"
46
- dependencies = [
47
- "coverage[toml]>=6.5",
48
- "pytest",
49
- "pytest-rerunfailures",
50
- "ipython",
51
- "haystack-pydoc-tools",
52
- ]
46
+ dependencies = ["haystack-pydoc-tools", "ruff"]
53
47
  [tool.hatch.envs.default.scripts]
54
- test = "pytest {args:tests}"
55
- test-cov = "coverage run -m pytest {args:tests}"
56
- test-cov-retry = "test-cov --reruns 3 --reruns-delay 30 -x"
57
- cov-report = ["- coverage combine", "coverage report"]
58
- cov = ["test-cov", "cov-report"]
59
- cov-retry = ["test-cov-retry", "cov-report"]
60
48
  docs = ["pydoc-markdown pydoc/config.yml"]
49
+ fmt = "ruff check --fix {args} && ruff format {args}"
50
+ fmt-check = "ruff check {args} && ruff format --check {args}"
51
+
52
+ [tool.hatch.envs.test]
53
+ dependencies = [
54
+ "pytest",
55
+ "pytest-asyncio",
56
+ "pytest-cov",
57
+ "pytest-rerunfailures",
58
+ "mypy",
59
+ "pip",
60
+ "ipython"
61
+ ]
61
62
 
62
- [[tool.hatch.envs.all.matrix]]
63
- python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
63
+ [tool.hatch.envs.test.scripts]
64
+ unit = 'pytest -m "not integration" {args:tests}'
65
+ integration = 'pytest -m "integration" {args:tests}'
66
+ all = 'pytest {args:tests}'
67
+ cov-retry = 'all --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x'
68
+ types = """mypy -p haystack_integrations.components.embedders.fastembed \
69
+ -p haystack_integrations.components.rankers.fastembed {args}"""
64
70
 
65
- [tool.hatch.envs.lint]
66
- installer = "uv"
67
- detached = true
68
- dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243", "numpy"]
69
- [tool.hatch.envs.lint.scripts]
70
- typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
71
- style = ["ruff check {args:.}", "black --check --diff {args:.}"]
72
- fmt = ["black {args:.}", "ruff check --fix {args:.}", "style"]
73
- all = ["style", "typing"]
71
+ [tool.mypy]
72
+ install_types = true
73
+ non_interactive = true
74
+ check_untyped_defs = true
75
+ disallow_incomplete_defs = true
74
76
 
75
77
  [tool.black]
76
78
  target-version = ["py38"]
@@ -156,14 +158,5 @@ exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
156
158
 
157
159
  [tool.pytest.ini_options]
158
160
  minversion = "6.0"
159
- markers = ["unit: unit tests", "integration: integration tests"]
160
-
161
- [[tool.mypy.overrides]]
162
- module = [
163
- "haystack.*",
164
- "haystack_integrations.*",
165
- "fastembed.*",
166
- "pytest.*",
167
- "numpy.*",
168
- ]
169
- ignore_missing_imports = true
161
+ markers = ["integration: integration tests"]
162
+
@@ -20,7 +20,7 @@ class _FastembedEmbeddingBackendFactory:
20
20
  cache_dir: Optional[str] = None,
21
21
  threads: Optional[int] = None,
22
22
  local_files_only: bool = False,
23
- ):
23
+ ) -> "_FastembedEmbeddingBackend":
24
24
  embedding_backend_id = f"{model_name}{cache_dir}{threads}"
25
25
 
26
26
  if embedding_backend_id in _FastembedEmbeddingBackendFactory._instances:
@@ -49,7 +49,7 @@ class _FastembedEmbeddingBackend:
49
49
  model_name=model_name, cache_dir=cache_dir, threads=threads, local_files_only=local_files_only
50
50
  )
51
51
 
52
- def embed(self, data: List[str], progress_bar=True, **kwargs) -> List[List[float]]:
52
+ def embed(self, data: List[str], progress_bar: bool = True, **kwargs: Any) -> List[List[float]]:
53
53
  # the embed method returns a Iterable[np.ndarray], so we convert it to a list of lists
54
54
  embeddings = []
55
55
  embeddings_iterable = self.model.embed(data, **kwargs)
@@ -74,7 +74,7 @@ class _FastembedSparseEmbeddingBackendFactory:
74
74
  threads: Optional[int] = None,
75
75
  local_files_only: bool = False,
76
76
  model_kwargs: Optional[Dict[str, Any]] = None,
77
- ):
77
+ ) -> "_FastembedSparseEmbeddingBackend":
78
78
  embedding_backend_id = f"{model_name}{cache_dir}{threads}{local_files_only}{model_kwargs}"
79
79
 
80
80
  if embedding_backend_id in _FastembedSparseEmbeddingBackendFactory._instances:
@@ -114,7 +114,7 @@ class _FastembedSparseEmbeddingBackend:
114
114
  **model_kwargs,
115
115
  )
116
116
 
117
- def embed(self, data: List[List[str]], progress_bar=True, **kwargs) -> List[SparseEmbedding]:
117
+ def embed(self, data: List[str], progress_bar: bool = True, **kwargs: Any) -> List[SparseEmbedding]:
118
118
  # The embed method returns a Iterable[SparseEmbedding], so we convert to Haystack SparseEmbedding type.
119
119
  # Each SparseEmbedding contains an `indices` key containing a list of int and
120
120
  # an `values` key containing a list of floats.
@@ -150,7 +150,7 @@ class FastembedDocumentEmbedder:
150
150
  return texts_to_embed
151
151
 
152
152
  @component.output_types(documents=List[Document])
153
- def run(self, documents: List[Document]):
153
+ def run(self, documents: List[Document]) -> Dict[str, List[Document]]:
154
154
  """
155
155
  Embeds a list of Documents.
156
156
 
@@ -158,7 +158,7 @@ class FastembedDocumentEmbedder:
158
158
  :returns: A dictionary with the following keys:
159
159
  - `documents`: List of Documents with each Document's `embedding` field set to the computed embeddings.
160
160
  """
161
- if not isinstance(documents, list) or documents and not isinstance(documents[0], Document):
161
+ if not isinstance(documents, list) or (documents and not isinstance(documents[0], Document)):
162
162
  msg = (
163
163
  "FastembedDocumentEmbedder expects a list of Documents as input. "
164
164
  "In case you want to embed a list of strings, please use the FastembedTextEmbedder."
@@ -16,7 +16,7 @@ class FastembedSparseDocumentEmbedder:
16
16
  from haystack.dataclasses import Document
17
17
 
18
18
  sparse_doc_embedder = FastembedSparseDocumentEmbedder(
19
- model="prithvida/Splade_PP_en_v1",
19
+ model="prithivida/Splade_PP_en_v1",
20
20
  batch_size=32,
21
21
  )
22
22
 
@@ -53,7 +53,7 @@ class FastembedSparseDocumentEmbedder:
53
53
 
54
54
  def __init__(
55
55
  self,
56
- model: str = "prithvida/Splade_PP_en_v1",
56
+ model: str = "prithivida/Splade_PP_en_v1",
57
57
  cache_dir: Optional[str] = None,
58
58
  threads: Optional[int] = None,
59
59
  batch_size: int = 32,
@@ -68,7 +68,7 @@ class FastembedSparseDocumentEmbedder:
68
68
  Create an FastembedDocumentEmbedder component.
69
69
 
70
70
  :param model: Local path or name of the model in Hugging Face's model hub,
71
- such as `prithvida/Splade_PP_en_v1`.
71
+ such as `prithivida/Splade_PP_en_v1`.
72
72
  :param cache_dir: The path to the cache directory.
73
73
  Can be set using the `FASTEMBED_CACHE_PATH` env variable.
74
74
  Defaults to `fastembed_cache` in the system's temp directory.
@@ -141,7 +141,7 @@ class FastembedSparseDocumentEmbedder:
141
141
  return texts_to_embed
142
142
 
143
143
  @component.output_types(documents=List[Document])
144
- def run(self, documents: List[Document]):
144
+ def run(self, documents: List[Document]) -> Dict[str, List[Document]]:
145
145
  """
146
146
  Embeds a list of Documents.
147
147
 
@@ -150,7 +150,7 @@ class FastembedSparseDocumentEmbedder:
150
150
  - `documents`: List of Documents with each Document's `sparse_embedding`
151
151
  field set to the computed embeddings.
152
152
  """
153
- if not isinstance(documents, list) or documents and not isinstance(documents[0], Document):
153
+ if not isinstance(documents, list) or (documents and not isinstance(documents[0], Document)):
154
154
  msg = (
155
155
  "FastembedSparseDocumentEmbedder expects a list of Documents as input. "
156
156
  "In case you want to embed a list of strings, please use the FastembedTextEmbedder."
@@ -19,7 +19,7 @@ class FastembedSparseTextEmbedder:
19
19
  "The disk comes and it does not, only Windows. Do Not order this if you have a Mac!!")
20
20
 
21
21
  sparse_text_embedder = FastembedSparseTextEmbedder(
22
- model="prithvida/Splade_PP_en_v1"
22
+ model="prithivida/Splade_PP_en_v1"
23
23
  )
24
24
  sparse_text_embedder.warm_up()
25
25
 
@@ -29,7 +29,7 @@ class FastembedSparseTextEmbedder:
29
29
 
30
30
  def __init__(
31
31
  self,
32
- model: str = "prithvida/Splade_PP_en_v1",
32
+ model: str = "prithivida/Splade_PP_en_v1",
33
33
  cache_dir: Optional[str] = None,
34
34
  threads: Optional[int] = None,
35
35
  progress_bar: bool = True,
@@ -40,7 +40,7 @@ class FastembedSparseTextEmbedder:
40
40
  """
41
41
  Create a FastembedSparseTextEmbedder component.
42
42
 
43
- :param model: Local path or name of the model in Fastembed's model hub, such as `prithvida/Splade_PP_en_v1`
43
+ :param model: Local path or name of the model in Fastembed's model hub, such as `prithivida/Splade_PP_en_v1`
44
44
  :param cache_dir: The path to the cache directory.
45
45
  Can be set using the `FASTEMBED_CACHE_PATH` env variable.
46
46
  Defaults to `fastembed_cache` in the system's temp directory.
@@ -94,7 +94,7 @@ class FastembedSparseTextEmbedder:
94
94
  )
95
95
 
96
96
  @component.output_types(sparse_embedding=SparseEmbedding)
97
- def run(self, text: str):
97
+ def run(self, text: str) -> Dict[str, SparseEmbedding]:
98
98
  """
99
99
  Embeds text using the Fastembed model.
100
100
 
@@ -96,7 +96,7 @@ class FastembedTextEmbedder:
96
96
  )
97
97
 
98
98
  @component.output_types(embedding=List[float])
99
- def run(self, text: str):
99
+ def run(self, text: str) -> Dict[str, List[float]]:
100
100
  """
101
101
  Embeds text using the Fastembed model.
102
102
 
@@ -76,7 +76,7 @@ class FastembedRanker:
76
76
  self.local_files_only = local_files_only
77
77
  self.meta_fields_to_embed = meta_fields_to_embed or []
78
78
  self.meta_data_separator = meta_data_separator
79
- self._model = None
79
+ self._model: Optional[TextCrossEncoder] = None
80
80
 
81
81
  def to_dict(self) -> Dict[str, Any]:
82
82
  """
@@ -140,7 +140,7 @@ class FastembedRanker:
140
140
  return concatenated_input_list
141
141
 
142
142
  @component.output_types(documents=List[Document])
143
- def run(self, query: str, documents: List[Document], top_k: Optional[int] = None):
143
+ def run(self, query: str, documents: List[Document], top_k: Optional[int] = None) -> Dict[str, List[Document]]:
144
144
  """
145
145
  Returns a list of documents ranked by their similarity to the given query, using FastEmbed.
146
146
 
@@ -157,7 +157,7 @@ class FastembedRanker:
157
157
 
158
158
  :raises ValueError: If `top_k` is not > 0.
159
159
  """
160
- if not isinstance(documents, list) or documents and not isinstance(documents[0], Document):
160
+ if not isinstance(documents, list) or (documents and not isinstance(documents[0], Document)):
161
161
  msg = "FastembedRanker expects a list of Documents as input. "
162
162
  raise TypeError(msg)
163
163
  if query == "":
@@ -15,8 +15,8 @@ class TestFastembedSparseDocumentEmbedderDoc:
15
15
  """
16
16
  Test default initialization parameters for FastembedSparseDocumentEmbedder.
17
17
  """
18
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
19
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
18
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
19
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
20
20
  assert embedder.cache_dir is None
21
21
  assert embedder.threads is None
22
22
  assert embedder.batch_size == 32
@@ -31,7 +31,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
31
31
  Test custom initialization parameters for FastembedSparseDocumentEmbedder.
32
32
  """
33
33
  embedder = FastembedSparseDocumentEmbedder(
34
- model="prithvida/Splade_PP_en_v1",
34
+ model="prithivida/Splade_PP_en_v1",
35
35
  cache_dir="fake_dir",
36
36
  threads=2,
37
37
  batch_size=64,
@@ -41,7 +41,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
41
41
  meta_fields_to_embed=["test_field"],
42
42
  embedding_separator=" | ",
43
43
  )
44
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
44
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
45
45
  assert embedder.cache_dir == "fake_dir"
46
46
  assert embedder.threads == 2
47
47
  assert embedder.batch_size == 64
@@ -55,12 +55,12 @@ class TestFastembedSparseDocumentEmbedderDoc:
55
55
  """
56
56
  Test serialization of FastembedSparseDocumentEmbedder to a dictionary, using default initialization parameters.
57
57
  """
58
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
58
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
59
59
  embedder_dict = embedder.to_dict()
60
60
  assert embedder_dict == {
61
61
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_document_embedder.FastembedSparseDocumentEmbedder", # noqa
62
62
  "init_parameters": {
63
- "model": "prithvida/Splade_PP_en_v1",
63
+ "model": "prithivida/Splade_PP_en_v1",
64
64
  "cache_dir": None,
65
65
  "threads": None,
66
66
  "batch_size": 32,
@@ -78,7 +78,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
78
78
  Test serialization of FastembedSparseDocumentEmbedder to a dictionary, using custom initialization parameters.
79
79
  """
80
80
  embedder = FastembedSparseDocumentEmbedder(
81
- model="prithvida/Splade_PP_en_v1",
81
+ model="prithivida/Splade_PP_en_v1",
82
82
  cache_dir="fake_dir",
83
83
  threads=2,
84
84
  batch_size=64,
@@ -92,7 +92,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
92
92
  assert embedder_dict == {
93
93
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_document_embedder.FastembedSparseDocumentEmbedder", # noqa
94
94
  "init_parameters": {
95
- "model": "prithvida/Splade_PP_en_v1",
95
+ "model": "prithivida/Splade_PP_en_v1",
96
96
  "cache_dir": "fake_dir",
97
97
  "threads": 2,
98
98
  "batch_size": 64,
@@ -113,7 +113,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
113
113
  embedder_dict = {
114
114
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_document_embedder.FastembedSparseDocumentEmbedder", # noqa
115
115
  "init_parameters": {
116
- "model": "prithvida/Splade_PP_en_v1",
116
+ "model": "prithivida/Splade_PP_en_v1",
117
117
  "cache_dir": None,
118
118
  "threads": None,
119
119
  "batch_size": 32,
@@ -125,7 +125,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
125
125
  },
126
126
  }
127
127
  embedder = default_from_dict(FastembedSparseDocumentEmbedder, embedder_dict)
128
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
128
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
129
129
  assert embedder.cache_dir is None
130
130
  assert embedder.threads is None
131
131
  assert embedder.batch_size == 32
@@ -143,7 +143,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
143
143
  embedder_dict = {
144
144
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_document_embedder.FastembedSparseDocumentEmbedder", # noqa
145
145
  "init_parameters": {
146
- "model": "prithvida/Splade_PP_en_v1",
146
+ "model": "prithivida/Splade_PP_en_v1",
147
147
  "cache_dir": "fake_dir",
148
148
  "threads": 2,
149
149
  "batch_size": 64,
@@ -155,7 +155,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
155
155
  },
156
156
  }
157
157
  embedder = default_from_dict(FastembedSparseDocumentEmbedder, embedder_dict)
158
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
158
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
159
159
  assert embedder.cache_dir == "fake_dir"
160
160
  assert embedder.threads == 2
161
161
  assert embedder.batch_size == 64
@@ -172,11 +172,11 @@ class TestFastembedSparseDocumentEmbedderDoc:
172
172
  """
173
173
  Test for checking embedder instances after warm-up.
174
174
  """
175
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
175
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
176
176
  mocked_factory.get_embedding_backend.assert_not_called()
177
177
  embedder.warm_up()
178
178
  mocked_factory.get_embedding_backend.assert_called_once_with(
179
- model_name="prithvida/Splade_PP_en_v1",
179
+ model_name="prithivida/Splade_PP_en_v1",
180
180
  cache_dir=None,
181
181
  threads=None,
182
182
  local_files_only=False,
@@ -190,7 +190,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
190
190
  """
191
191
  Test for checking backend instances after multiple warm-ups.
192
192
  """
193
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
193
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
194
194
  mocked_factory.get_embedding_backend.assert_not_called()
195
195
  embedder.warm_up()
196
196
  embedder.warm_up()
@@ -211,7 +211,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
211
211
  """
212
212
  Test for checking output dimensions and embedding dimensions.
213
213
  """
214
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
214
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
215
215
  embedder.embedding_backend = MagicMock()
216
216
  embedder.embedding_backend.embed = lambda x, **kwargs: self._generate_mocked_sparse_embedding( # noqa: ARG005
217
217
  len(x)
@@ -235,7 +235,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
235
235
  """
236
236
  Test for checking incorrect input format when creating embedding.
237
237
  """
238
- embedder = FastembedSparseDocumentEmbedder(model="prithvida/Splade_PP_en_v1")
238
+ embedder = FastembedSparseDocumentEmbedder(model="prithivida/Splade_PP_en_v1")
239
239
 
240
240
  string_input = "text"
241
241
  list_integers_input = [1, 2, 3]
@@ -330,7 +330,7 @@ class TestFastembedSparseDocumentEmbedderDoc:
330
330
  @pytest.mark.integration
331
331
  def test_run(self):
332
332
  embedder = FastembedSparseDocumentEmbedder(
333
- model="prithvida/Splade_PP_en_v1",
333
+ model="prithivida/Splade_PP_en_v1",
334
334
  )
335
335
  embedder.warm_up()
336
336
 
@@ -15,8 +15,8 @@ class TestFastembedSparseTextEmbedder:
15
15
  """
16
16
  Test default initialization parameters for FastembedSparseTextEmbedder.
17
17
  """
18
- embedder = FastembedSparseTextEmbedder(model="prithvida/Splade_PP_en_v1")
19
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
18
+ embedder = FastembedSparseTextEmbedder(model="prithivida/Splade_PP_en_v1")
19
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
20
20
  assert embedder.cache_dir is None
21
21
  assert embedder.threads is None
22
22
  assert embedder.progress_bar is True
@@ -27,13 +27,13 @@ class TestFastembedSparseTextEmbedder:
27
27
  Test custom initialization parameters for FastembedSparseTextEmbedder.
28
28
  """
29
29
  embedder = FastembedSparseTextEmbedder(
30
- model="prithvida/Splade_PP_en_v1",
30
+ model="prithivida/Splade_PP_en_v1",
31
31
  cache_dir="fake_dir",
32
32
  threads=2,
33
33
  progress_bar=False,
34
34
  parallel=1,
35
35
  )
36
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
36
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
37
37
  assert embedder.cache_dir == "fake_dir"
38
38
  assert embedder.threads == 2
39
39
  assert embedder.progress_bar is False
@@ -43,12 +43,12 @@ class TestFastembedSparseTextEmbedder:
43
43
  """
44
44
  Test serialization of FastembedSparseTextEmbedder to a dictionary, using default initialization parameters.
45
45
  """
46
- embedder = FastembedSparseTextEmbedder(model="prithvida/Splade_PP_en_v1")
46
+ embedder = FastembedSparseTextEmbedder(model="prithivida/Splade_PP_en_v1")
47
47
  embedder_dict = embedder.to_dict()
48
48
  assert embedder_dict == {
49
49
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_text_embedder.FastembedSparseTextEmbedder", # noqa
50
50
  "init_parameters": {
51
- "model": "prithvida/Splade_PP_en_v1",
51
+ "model": "prithivida/Splade_PP_en_v1",
52
52
  "cache_dir": None,
53
53
  "threads": None,
54
54
  "progress_bar": True,
@@ -63,7 +63,7 @@ class TestFastembedSparseTextEmbedder:
63
63
  Test serialization of FastembedSparseTextEmbedder to a dictionary, using custom initialization parameters.
64
64
  """
65
65
  embedder = FastembedSparseTextEmbedder(
66
- model="prithvida/Splade_PP_en_v1",
66
+ model="prithivida/Splade_PP_en_v1",
67
67
  cache_dir="fake_dir",
68
68
  threads=2,
69
69
  progress_bar=False,
@@ -74,7 +74,7 @@ class TestFastembedSparseTextEmbedder:
74
74
  assert embedder_dict == {
75
75
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_text_embedder.FastembedSparseTextEmbedder", # noqa
76
76
  "init_parameters": {
77
- "model": "prithvida/Splade_PP_en_v1",
77
+ "model": "prithivida/Splade_PP_en_v1",
78
78
  "cache_dir": "fake_dir",
79
79
  "threads": 2,
80
80
  "progress_bar": False,
@@ -91,7 +91,7 @@ class TestFastembedSparseTextEmbedder:
91
91
  embedder_dict = {
92
92
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_text_embedder.FastembedSparseTextEmbedder", # noqa
93
93
  "init_parameters": {
94
- "model": "prithvida/Splade_PP_en_v1",
94
+ "model": "prithivida/Splade_PP_en_v1",
95
95
  "cache_dir": None,
96
96
  "threads": None,
97
97
  "progress_bar": True,
@@ -99,7 +99,7 @@ class TestFastembedSparseTextEmbedder:
99
99
  },
100
100
  }
101
101
  embedder = default_from_dict(FastembedSparseTextEmbedder, embedder_dict)
102
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
102
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
103
103
  assert embedder.cache_dir is None
104
104
  assert embedder.threads is None
105
105
  assert embedder.progress_bar is True
@@ -112,7 +112,7 @@ class TestFastembedSparseTextEmbedder:
112
112
  embedder_dict = {
113
113
  "type": "haystack_integrations.components.embedders.fastembed.fastembed_sparse_text_embedder.FastembedSparseTextEmbedder", # noqa
114
114
  "init_parameters": {
115
- "model": "prithvida/Splade_PP_en_v1",
115
+ "model": "prithivida/Splade_PP_en_v1",
116
116
  "cache_dir": "fake_dir",
117
117
  "threads": 2,
118
118
  "progress_bar": False,
@@ -120,7 +120,7 @@ class TestFastembedSparseTextEmbedder:
120
120
  },
121
121
  }
122
122
  embedder = default_from_dict(FastembedSparseTextEmbedder, embedder_dict)
123
- assert embedder.model_name == "prithvida/Splade_PP_en_v1"
123
+ assert embedder.model_name == "prithivida/Splade_PP_en_v1"
124
124
  assert embedder.cache_dir == "fake_dir"
125
125
  assert embedder.threads == 2
126
126
  assert embedder.progress_bar is False
@@ -133,11 +133,11 @@ class TestFastembedSparseTextEmbedder:
133
133
  """
134
134
  Test for checking embedder instances after warm-up.
135
135
  """
136
- embedder = FastembedSparseTextEmbedder(model="prithvida/Splade_PP_en_v1")
136
+ embedder = FastembedSparseTextEmbedder(model="prithivida/Splade_PP_en_v1")
137
137
  mocked_factory.get_embedding_backend.assert_not_called()
138
138
  embedder.warm_up()
139
139
  mocked_factory.get_embedding_backend.assert_called_once_with(
140
- model_name="prithvida/Splade_PP_en_v1",
140
+ model_name="prithivida/Splade_PP_en_v1",
141
141
  cache_dir=None,
142
142
  threads=None,
143
143
  local_files_only=False,
@@ -151,7 +151,7 @@ class TestFastembedSparseTextEmbedder:
151
151
  """
152
152
  Test for checking backend instances after multiple warm-ups.
153
153
  """
154
- embedder = FastembedSparseTextEmbedder(model="prithvida/Splade_PP_en_v1")
154
+ embedder = FastembedSparseTextEmbedder(model="prithivida/Splade_PP_en_v1")
155
155
  mocked_factory.get_embedding_backend.assert_not_called()
156
156
  embedder.warm_up()
157
157
  embedder.warm_up()
@@ -252,7 +252,7 @@ class TestFastembedSparseTextEmbedder:
252
252
  @pytest.mark.integration
253
253
  def test_run(self):
254
254
  embedder = FastembedSparseTextEmbedder(
255
- model="prithvida/Splade_PP_en_v1",
255
+ model="prithivida/Splade_PP_en_v1",
256
256
  )
257
257
  embedder.warm_up()
258
258
 
@@ -1,72 +0,0 @@
1
- # Changelog
2
-
3
- ## [integrations/fastembed-v1.3.0] - 2024-10-07
4
-
5
- ### 🚀 Features
6
-
7
- - Introduce `model_kwargs` in Sparse Embedders (can be used for BM25 parameters) (#1126)
8
-
9
- ### 🧪 Testing
10
-
11
- - Do not retry tests in `hatch run test` command (#954)
12
-
13
- ### ⚙️ Miscellaneous Tasks
14
-
15
- - Retry tests to reduce flakyness (#836)
16
- - Update ruff invocation to include check parameter (#853)
17
- - Update ruff linting scripts and settings (#1105)
18
-
19
- ### Fix
20
-
21
- - Typo on Sparse embedders. The parameter should be "progress_bar" … (#814)
22
-
23
- ## [integrations/fastembed-v1.1.0] - 2024-05-15
24
-
25
- ## [integrations/fastembed-v1.0.0] - 2024-05-06
26
-
27
- ## [integrations/fastembed-v0.1.0] - 2024-04-10
28
-
29
- ### 🚀 Features
30
-
31
- - *(FastEmbed)* Support for SPLADE Sparse Embedder (#579)
32
-
33
- ### 📚 Documentation
34
-
35
- - Disable-class-def (#556)
36
-
37
- ## [integrations/fastembed-v0.0.6] - 2024-03-07
38
-
39
- ### 📚 Documentation
40
-
41
- - Review and normalize docstrings - `integrations.fastembed` (#519)
42
- - Small consistency improvements (#536)
43
-
44
- ## [integrations/fastembed-v0.0.5] - 2024-02-20
45
-
46
- ### 🐛 Bug Fixes
47
-
48
- - Fix order of API docs (#447)
49
-
50
- This PR will also push the docs to Readme
51
-
52
- ### 📚 Documentation
53
-
54
- - Update category slug (#442)
55
-
56
- ## [integrations/fastembed-v0.0.4] - 2024-02-16
57
-
58
- ## [integrations/fastembed-v0.0.3] - 2024-02-12
59
-
60
- ### 🐛 Bug Fixes
61
-
62
- - From numpy float to float (#391)
63
-
64
- ### 📚 Documentation
65
-
66
- - Update paths and titles (#397)
67
-
68
- ## [integrations/fastembed-v0.0.2] - 2024-02-11
69
-
70
- ## [integrations/fastembed-v0.0.1] - 2024-02-10
71
-
72
- <!-- generated by git-cliff -->
@@ -8,7 +8,7 @@ from .fastembed_text_embedder import FastembedTextEmbedder
8
8
 
9
9
  __all__ = [
10
10
  "FastembedDocumentEmbedder",
11
- "FastembedTextEmbedder",
12
11
  "FastembedSparseDocumentEmbedder",
13
12
  "FastembedSparseTextEmbedder",
13
+ "FastembedTextEmbedder",
14
14
  ]