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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. "LocalAI": LocalAIEmbed,
  23. "OpenAI": OpenAIEmbed,
  24. "Azure-OpenAI": AzureEmbed,
  25. "Xinference": XinferenceEmbed,
  26. "Tongyi-Qianwen": QWenEmbed,
  27. "ZHIPU-AI": ZhipuEmbed,
  28. "FastEmbed": FastEmbed,
  29. "Youdao": YoudaoEmbed,
  30. "BaiChuan": BaiChuanEmbed,
  31. "Jina": JinaEmbed,
  32. "BAAI": DefaultEmbedding,
  33. "Mistral": MistralEmbed,
  34. "Bedrock": BedrockEmbed,
  35. "Gemini":GeminiEmbed
  36. }
  37. CvModel = {
  38. "OpenAI": GptV4,
  39. "Azure-OpenAI": AzureGptV4,
  40. "Ollama": OllamaCV,
  41. "Xinference": XinferenceCV,
  42. "Tongyi-Qianwen": QWenCV,
  43. "ZHIPU-AI": Zhipu4V,
  44. "Moonshot": LocalCV,
  45. 'Gemini':GeminiCV,
  46. 'OpenRouter':OpenRouterCV,
  47. "LocalAI":LocalAICV
  48. }
  49. ChatModel = {
  50. "OpenAI": GptTurbo,
  51. "Azure-OpenAI": AzureChat,
  52. "ZHIPU-AI": ZhipuChat,
  53. "Tongyi-Qianwen": QWenChat,
  54. "Ollama": OllamaChat,
  55. "LocalAI": LocalAIChat,
  56. "Xinference": XinferenceChat,
  57. "Moonshot": MoonshotChat,
  58. "DeepSeek": DeepSeekChat,
  59. "VolcEngine": VolcEngineChat,
  60. "BaiChuan": BaiChuanChat,
  61. "MiniMax": MiniMaxChat,
  62. "Minimax": MiniMaxChat,
  63. "Mistral": MistralChat,
  64. 'Gemini' : GeminiChat,
  65. "Bedrock": BedrockChat,
  66. "Groq": GroqChat,
  67. 'OpenRouter':OpenRouterChat,
  68. }
  69. RerankModel = {
  70. "BAAI": DefaultRerank,
  71. "Jina": JinaRerank,
  72. "Youdao": YoudaoRerank,
  73. "Xinference": XInferenceRerank
  74. }