Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ffc5e91
1965 - Init the module
nablabits Apr 11, 2024
1c28da4
1965 - Move over `AmazonBedrockEmbeddingFunction`
nablabits Apr 13, 2024
6e4f190
1965 - Move over `create_langchain_embedding`
nablabits Apr 13, 2024
40dee43
1965 - Move over `CohereEmbeddingFunction`
nablabits Apr 13, 2024
385dcc0
1965 - Move over `google_embedding_function`
nablabits Apr 13, 2024
ed206d6
1965 - Move over `huggingface_embedding_function`
nablabits Apr 13, 2024
50076e4
1965 - Move over `InstructorEmbeddingFunction`
nablabits Apr 13, 2024
0aeb92e
1965 - Move over `JinaEmbeddingFunction`
nablabits Apr 13, 2024
18926e9
1965 - Move over `OllamaEmbeddingFunction`
nablabits Apr 13, 2024
1ec3d2a
1965 - Move over `ONNXMiniLM_L6_V2`
nablabits Apr 13, 2024
3642058
1965 - Move over `OpenCLIPEmbeddingFunction`
nablabits Apr 13, 2024
0196264
1965 - Move over `OpenAIEmbeddingFunction`
nablabits Apr 13, 2024
929a8d4
1965 - Move over `RoboflowEmbeddingFunction`
nablabits Apr 13, 2024
c2e2cc8
1965 - Move over `SentenceTransformerEmbeddingFunction`
nablabits Apr 13, 2024
2632601
1965 - Move over `Text2VecEmbeddingFunction`
nablabits Apr 13, 2024
6770d21
1965 - Move remaining functions
nablabits Apr 13, 2024
6ad7598
1965 - Lint Files
nablabits Apr 20, 2024
8f08d60
1965 - Lint onnx embedding function
nablabits Apr 20, 2024
fc6b3c8
1965 - Ensure that `get_builtins()` holds after the migration.
nablabits Apr 24, 2024
97dc885
Merge branch 'main' into feature/1965-split-up-embedding-functions
nablabits May 14, 2024
5c56387
Automate imports of EF in module
atroyn Jun 20, 2024
a548218
Automate imports of EF in module
atroyn Jun 20, 2024
cbb0b03
Additional tests
atroyn Jun 20, 2024
84aa4cf
Merge branch 'main' into feature/1965-split-up-embedding-functions
atroyn Jun 20, 2024
41a3e91
httpx everywhere
atroyn Jun 20, 2024
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
34 changes: 34 additions & 0 deletions chromadb/test/ef/test_ef.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from chromadb.utils import embedding_functions


def test_get_builtins_holds() -> None:
"""
Ensure that `get_builtins` is consistent after the ef migration.

This test is intended to be temporary until the ef migration is complete as
these expected builtins are likely to grow as long as users add new
embedding functions.

The hardcoded list of builtins was generated by running `get_builtins()`
on this commit: df65e5a65628ef9231f67ccc748a7d6b114c9c02
"""
expected_builtins = {
"AmazonBedrockEmbeddingFunction",
"CohereEmbeddingFunction",
"GoogleGenerativeAiEmbeddingFunction",
"GooglePalmEmbeddingFunction",
"GoogleVertexEmbeddingFunction",
"HuggingFaceEmbeddingFunction",
"HuggingFaceEmbeddingServer",
"InstructorEmbeddingFunction",
"JinaEmbeddingFunction",
"ONNXMiniLM_L6_V2",
"OllamaEmbeddingFunction",
"OpenAIEmbeddingFunction",
"OpenCLIPEmbeddingFunction",
"RoboflowEmbeddingFunction",
"SentenceTransformerEmbeddingFunction",
"Text2VecEmbeddingFunction",
}

assert expected_builtins == set(embedding_functions.get_builtins())
Loading