-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove lazy_import and enable IDE code completion and jump (#63)
Signed-off-by: ChengZi <[email protected]>
- Loading branch information
1 parent
0da992b
commit fa4021e
Showing
25 changed files
with
352 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
__all__ = ["BGEM3EmbeddingFunction", "MGTEEmbeddingFunction"] | ||
|
||
from pymilvus.model.utils.lazy_import import LazyImport | ||
|
||
bge_m3 = LazyImport("bge_m3", globals(), "pymilvus.model.hybrid.bge_m3") | ||
mgte = LazyImport("mgte", globals(), "pymilvus.model.hybrid.mgte") | ||
from pymilvus.model.hybrid.bge_m3 import BGEM3EmbeddingFunction | ||
from pymilvus.model.hybrid.mgte import MGTEEmbeddingFunction | ||
|
||
def BGEM3EmbeddingFunction(*args, **kwargs): | ||
return bge_m3.BGEM3EmbeddingFunction(*args, **kwargs) | ||
|
||
def MGTEEmbeddingFunction(*args, **kwargs): | ||
return mgte.MGTEEmbeddingFunction(*args, **kwargs) | ||
__all__ = ["BGEM3EmbeddingFunction", "MGTEEmbeddingFunction"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.