您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

__init__.py 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #
  2. # Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. from .embedding_model import *
  17. from .chat_model import *
  18. from .cv_model import *
  19. from .rerank_model import *
  20. EmbeddingModel = {
  21. "Ollama": OllamaEmbed,
  22. "OpenAI": OpenAIEmbed,
  23. "Azure-OpenAI": AzureEmbed,
  24. "Xinference": XinferenceEmbed,
  25. "Tongyi-Qianwen": QWenEmbed,
  26. "ZHIPU-AI": ZhipuEmbed,
  27. "FastEmbed": FastEmbed,
  28. "Youdao": YoudaoEmbed,
  29. "BaiChuan": BaiChuanEmbed,
  30. "Jina": JinaEmbed,
  31. "BAAI": DefaultEmbedding,
  32. "Mistral": MistralEmbed
  33. }
  34. CvModel = {
  35. "OpenAI": GptV4,
  36. "Azure-OpenAI": AzureGptV4,
  37. "Ollama": OllamaCV,
  38. "Xinference": XinferenceCV,
  39. "Tongyi-Qianwen": QWenCV,
  40. "ZHIPU-AI": Zhipu4V,
  41. "Moonshot": LocalCV
  42. }
  43. ChatModel = {
  44. "OpenAI": GptTurbo,
  45. "Azure-OpenAI": AzureChat,
  46. "ZHIPU-AI": ZhipuChat,
  47. "Tongyi-Qianwen": QWenChat,
  48. "Ollama": OllamaChat,
  49. "Xinference": XinferenceChat,
  50. "Moonshot": MoonshotChat,
  51. "DeepSeek": DeepSeekChat,
  52. "VolcEngine": VolcEngineChat,
  53. "BaiChuan": BaiChuanChat,
  54. "MiniMax": MiniMaxChat,
  55. "Mistral": MistralChat
  56. }
  57. RerankModel = {
  58. "BAAI": DefaultRerank,
  59. "Jina": JinaRerank,
  60. "Youdao": YoudaoRerank,
  61. }