Skip to content

Commit

Permalink
[Update] add test for passing vector dimension in embedder config (#1196
Browse files Browse the repository at this point in the history
)

Co-authored-by: Deven Patel <[email protected]>
  • Loading branch information
deven298 and Deven Patel authored Jan 19, 2024
1 parent 0b5b125 commit 9afc687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "embedchain"
version = "0.1.65"
version = "0.1.66"
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
authors = [
"Taranjeet Singh <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_llm_factory_create(self, provider_name, config_data, expected_class):
("gpt4all", {}, embedchain.embedder.gpt4all.GPT4AllEmbedder),
(
"huggingface",
{"model": "sentence-transformers/all-mpnet-base-v2"},
{"model": "sentence-transformers/all-mpnet-base-v2", "vector_dimension": 768},
embedchain.embedder.huggingface.HuggingFaceEmbedder,
),
("vertexai", {"model": "textembedding-gecko"}, embedchain.embedder.vertexai.VertexAIEmbedder),
Expand Down

0 comments on commit 9afc687

Please sign in to comment.