Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

__init__.py 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright 2025 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 beartype.claw import beartype_this_package
  17. beartype_this_package()
  18. import importlib.metadata
  19. from .ragflow import RAGFlow
  20. from .modules.dataset import DataSet
  21. from .modules.chat import Chat
  22. from .modules.session import Session
  23. from .modules.document import Document
  24. from .modules.chunk import Chunk
  25. from .modules.agent import Agent
  26. __version__ = importlib.metadata.version("ragflow_sdk")
  27. __all__ = [
  28. "RAGFlow",
  29. "DataSet",
  30. "Chat",
  31. "Session",
  32. "Document",
  33. "Chunk",
  34. "Agent"
  35. ]