[Feat] Add Isaacus embeddings provider #15886
Open
+764
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
Add Isaacus embeddings provider with kanon-2-embedder support
Relevant issues
N/A - New provider integration
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailstests/llm_translation/test_isaacus_embedding.pywith 14 unit tests and 6 e2e testsmake test-unit- Isaacus-specific and related tests pass, there are 3 unrelated tests that do not pass at the time of this PR on my machineType
🆕 New Feature
Changes
This PR adds support for the Isaacus embeddings provider (kanon-2-embedder model) to LiteLLM.
Implementation:
litellm/llms/isaacus/embedding/transformation.pywithIsaacusEmbeddingConfigclassinputparameter → Isaacustextsparameter__init__.py,constants.py,main.py,types/utils.py,utils.py,get_llm_provider_logic.pyFeatures:
aembedding()task- Optimize for "retrieval/query" or "retrieval/document"dimensions- Optionally reduce embedding dimensionalityoverflow_strategy- Handle text overflow with "drop_end"Testing:
Documentation:
docs/my-website/docs/embedding/supported_embedding.mdFiles changed:
litellm/llms/isaacus/__init__.py(new)litellm/llms/isaacus/embedding/__init__.py(new)litellm/llms/isaacus/embedding/transformation.py(new)litellm/__init__.py(addedisaacus_key, importedIsaacusEmbeddingConfig)litellm/constants.py(registered isaacus provider)litellm/main.py(added isaacus routing logic)litellm/types/utils.py(added ISAACUS toLlmProvidersenum)litellm/utils.py(registeredIsaacusEmbeddingConfiginProviderConfigManager)litellm/litellm_core_utils/get_llm_provider_logic.py(added isaacus provider detection)tests/llm_translation/test_isaacus_embedding.py(new - 14 unit tests, 6 e2e tests requiring API key, skipped)tests/test_litellm/llms/isaacus/embedding/__init__.py(new)tests/test_litellm/llms/isaacus/embedding/test_transformation.py(new)docs/my-website/docs/embedding/supported_embedding.md(added Isaacus documentation)Example usage:
This is my first time contributing to LiteLLM so please let me know of any errors or mistakes.