Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

__init__.py 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "Bedrock": BedrockEmbed,
  34. "Groq": GroqChat
  35. }
  36. CvModel = {
  37. "OpenAI": GptV4,
  38. "Azure-OpenAI": AzureGptV4,
  39. "Ollama": OllamaCV,
  40. "Xinference": XinferenceCV,
  41. "Tongyi-Qianwen": QWenCV,
  42. "ZHIPU-AI": Zhipu4V,
  43. "Moonshot": LocalCV
  44. }
  45. ChatModel = {
  46. "OpenAI": GptTurbo,
  47. "Azure-OpenAI": AzureChat,
  48. "ZHIPU-AI": ZhipuChat,
  49. "Tongyi-Qianwen": QWenChat,
  50. "Ollama": OllamaChat,
  51. "Xinference": XinferenceChat,
  52. "Moonshot": MoonshotChat,
  53. "DeepSeek": DeepSeekChat,
  54. "VolcEngine": VolcEngineChat,
  55. "BaiChuan": BaiChuanChat,
  56. "MiniMax": MiniMaxChat,
  57. "Mistral": MistralChat,
  58. "Bedrock": BedrockChat
  59. }
  60. RerankModel = {
  61. "BAAI": DefaultRerank,
  62. "Jina": JinaRerank,
  63. "Youdao": YoudaoRerank,
  64. "Xinference": XInferenceRerank
  65. }