Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "Xinference": XinferenceEmbed,
  24. "Tongyi-Qianwen": QWenEmbed,
  25. "ZHIPU-AI": ZhipuEmbed,
  26. "FastEmbed": FastEmbed,
  27. "Youdao": YoudaoEmbed,
  28. "BaiChuan": BaiChuanEmbed,
  29. "Jina": JinaEmbed,
  30. "BAAI": DefaultEmbedding,
  31. "Mistral": MistralEmbed
  32. }
  33. CvModel = {
  34. "OpenAI": GptV4,
  35. "Ollama": OllamaCV,
  36. "Xinference": XinferenceCV,
  37. "Tongyi-Qianwen": QWenCV,
  38. "ZHIPU-AI": Zhipu4V,
  39. "Moonshot": LocalCV
  40. }
  41. ChatModel = {
  42. "OpenAI": GptTurbo,
  43. "ZHIPU-AI": ZhipuChat,
  44. "Tongyi-Qianwen": QWenChat,
  45. "Ollama": OllamaChat,
  46. "Xinference": XinferenceChat,
  47. "Moonshot": MoonshotChat,
  48. "DeepSeek": DeepSeekChat,
  49. "BaiChuan": BaiChuanChat,
  50. "MiniMax": MiniMaxChat,
  51. "Mistral": MistralChat
  52. }
  53. RerankModel = {
  54. "BAAI": DefaultRerank,
  55. "Jina": JinaRerank,
  56. "Youdao": YoudaoRerank,
  57. }